/**
 * Sohar Operation Services (SOS) - Our Expertise (صفحة خبراتنا) Stylesheet
 * Ultra-Premium Design System & Moving Lightning / Water Conduits Animation
 */

/* ==========================================================================
   1. HERO SECTION & ATMOSPHERIC STAGE
   ========================================================================== */

.sos-expertise-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 640px;
  overflow: hidden;
  background-color: #071524;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .sos-expertise-hero {
    aspect-ratio: 21 / 9;
    min-height: 520px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .sos-expertise-hero {
    aspect-ratio: auto !important;
    min-height: 480px !important;
    height: auto !important;
    padding-bottom: 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .sos-expertise-hero__stage {
    position: relative !important;
    padding-top: calc(75px + max(1rem, env(safe-area-inset-top, 0px))) !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Panoramic Facility Backdrop & Synchronized Stage */
.sos-expertise-hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.sos-hero-img-day,
.sos-expertise-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center 22% !important;
  display: block;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 1024px) {
  .sos-hero-img-day,
  .sos-expertise-hero__img {
    object-fit: cover !important;
    object-position: center 22% !important;
  }
}

/* Multi-layer Cinematic Overlays (Crystal-clear photorealistic clarity, no murky fog) */
.sos-expertise-hero__overlay-base {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 36, 0.40) 0%,
    rgba(7, 21, 36, 0.10) 22%,
    transparent 42%
  ) !important;
  pointer-events: none;
}

.sos-expertise-hero__overlay-vignette {
  display: none !important;
}

/* Light Theme Hero Overlay adjustment for text contrast */
[data-theme="light"] .sos-expertise-hero__overlay-base {
  background: linear-gradient(
    180deg,
    rgba(10, 28, 48, 0.45) 0%,
    rgba(10, 28, 48, 0.12) 22%,
    transparent 42%
  ) !important;
}

/* ==========================================================================
   2. SOHAR PLANT LIVE WATER & POWER FLOW (SVG ENGINE & ZONES)
   ========================================================================== */

.sos-plant-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: auto;
  object-fit: cover;
}

.tube {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#g);
  animation: go linear infinite;
}

@keyframes go {
  to {
    stroke-dashoffset: -1;
  }
}

.zone {
  display: none !important;
  pointer-events: none !important;
}

.sos-telemetry-tooltip {
  display: none !important;
  pointer-events: none !important;
}

.lbl {
  font-family: 'Tajawal', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 32px;
  fill: #ffffff;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.8);
  stroke-width: 7px;
  pointer-events: none;
  opacity: 0.95;
  user-select: none;
}

.hide {
  display: none !important;
}

/* ==========================================================================
   3. HERO HUD & INFRASTRUCTURE CONTROLS
   ========================================================================== */

.sos-expertise-hud {
  position: absolute;
  top: 5.6rem;
  inset-inline-end: 2rem;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 21, 36, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 229, 255, 0.15);
}

@media (max-width: 900px) {
  .sos-expertise-hud {
    position: static;
    margin: 5.5rem auto 1rem;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
    max-width: fit-content;
  }
}

.sos-hud-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  padding: 0 0.5rem;
}

.sos-hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.sos-hud-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

.sos-hud-btn__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.sos-hud-btn--water.is-active {
  background: rgba(31, 182, 255, 0.18);
  border-color: #1fb6ff;
  color: #1fb6ff;
  box-shadow: 0 0 12px rgba(31, 182, 255, 0.35);
}

.sos-hud-btn--power.is-active {
  background: rgba(255, 163, 0, 0.18);
  border-color: #ffa300;
  color: #ffa300;
  box-shadow: 0 0 12px rgba(255, 163, 0, 0.35);
}

.sos-hud-btn--night.is-active {
  background: rgba(168, 85, 247, 0.22);
  border-color: #c084fc;
  color: #e9d5ff;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.35);
}

/* ==========================================================================
   3B. LIVE SCADA TELEMETRY DECK (COMPACT COCKPIT)
   ========================================================================== */

.sos-telemetry-deck-dock {
  display: none !important;
}

.sos-expertise-hero .sos-hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 75px;
  min-height: 50px;
  max-height: 100px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  line-height: 0;
}

.sos-expertise-hero .sos-waves-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  min-height: 60px;
  max-height: 140px;
  vertical-align: bottom;
}

.sos-expertise-hero .sos-wave-parallax > use {
  animation: moveWave 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.sos-expertise-hero .sos-wave-layer-1 {
  fill: rgba(0, 194, 203, 0.28);
  animation-delay: -2s !important;
  animation-duration: 7s !important;
}

.sos-expertise-hero .sos-wave-layer-2 {
  fill: rgba(10, 37, 64, 0.5);
  animation-delay: -3s !important;
  animation-duration: 10s !important;
}

.sos-expertise-hero .sos-wave-layer-3 {
  fill: rgba(255, 255, 255, 0.65);
  animation-delay: -4s !important;
  animation-duration: 13s !important;
}

.sos-expertise-hero .sos-wave-layer-4 {
  fill: #0b1a2d;
  animation-delay: -5s !important;
  animation-duration: 20s !important;
}

[data-theme="dark"] .sos-expertise-hero .sos-wave-layer-1 {
  fill: rgba(0, 194, 203, 0.28) !important;
}

[data-theme="dark"] .sos-expertise-hero .sos-wave-layer-2 {
  fill: rgba(10, 37, 64, 0.5) !important;
}

[data-theme="dark"] .sos-expertise-hero .sos-wave-layer-3 {
  fill: rgba(11, 26, 45, 0.75) !important;
}

[data-theme="dark"] .sos-expertise-hero .sos-wave-layer-4 {
  fill: #0b1a2d !important;
}

[data-theme="light"] .sos-expertise-hero .sos-hero-waves {
  background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.25) 40%, rgba(248, 250, 252, 0.6) 100%);
}

[data-theme="light"] .sos-expertise-hero .sos-wave-layer-1 {
  fill: rgba(0, 194, 203, 0.25) !important;
}

[data-theme="light"] .sos-expertise-hero .sos-wave-layer-2 {
  fill: rgba(55, 176, 229, 0.35) !important;
}

[data-theme="light"] .sos-expertise-hero .sos-wave-layer-3 {
  fill: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .sos-expertise-hero .sos-wave-layer-4 {
  fill: #f8fafc !important;
}

.sos-telemetry-deck {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
}

.sos-telemetry-deck .sos-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .sos-telemetry-deck .sos-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .sos-telemetry-deck .sos-stats-grid {
    grid-template-columns: 1fr;
  }
}

.sos-stat-card {
  background: rgba(11, 22, 36, 0.88);
  border: 1px solid rgba(55, 176, 229, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.sos-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.6);
}

.sos-stat-card span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.sos-stat-card b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
}

/* ==========================================================================
   4. HERO CONTENT STAGE (TYPOGRAPHY & CTAS)
   Centered in open sky to leave the plant panorama & conduits 100% visible
   ========================================================================== */

.sos-expertise-hero__stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(5.2rem, 6.5vw, 7.2rem) 1.25rem 0 1.25rem;
  text-align: center;
  pointer-events: none;
}

.sos-expertise-hero__stage * {
  pointer-events: auto;
}

/* Hide raw SVG text stamps to keep facility photorealistic and crystal clear */
.lbl {
  display: none;
}

.sos-expertise-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  background: rgba(55, 176, 229, 0.16);
  border: 1px solid rgba(55, 176, 229, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #38bdf8;
  font-size: clamp(0.68rem, 0.78vw, 0.78rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.3px;
  box-shadow: 0 0 16px rgba(55, 176, 229, 0.22);
}

.sos-expertise-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.sos-expertise-hero__title,
.sos-expertise-hero__title *,
.sos-expertise-hero__title span,
.sos-expertise-hero__title .hero-title-white,
.sos-expertise-hero__title .highlight-cyan,
[data-theme="light"] .sos-expertise-hero__title,
[data-theme="light"] .sos-expertise-hero__title *,
[data-theme="light"] .sos-expertise-hero__title span,
[data-theme="light"] .sos-expertise-hero__title .hero-title-white,
[data-theme="light"] .sos-expertise-hero__title .highlight-cyan {
  font-family: 'Tajawal', sans-serif !important;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  margin: 0 auto 1.25rem !important;
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.8) !important;
  letter-spacing: -0.02em !important;
}

.sos-expertise-hero__title .highlight-gold {
  color: #ffbe0b !important;
  text-shadow: 0 0 25px rgba(255, 190, 11, 0.5), 0 4px 24px rgba(0, 0, 0, 0.9) !important;
  display: inline-block;
}

.sos-expertise-hero__subtitle,
[data-theme="light"] .sos-expertise-hero__subtitle {
  font-family: 'Tajawal', sans-serif !important;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem) !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  max-width: 860px !important;
  margin: 0 auto 1.5rem !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  font-weight: 400 !important;
}

.sos-expertise-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.sos-btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #37b0e5 0%, #1e66b0 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(30, 102, 176, 0.45), 0 0 20px rgba(55, 176, 229, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.sos-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 102, 176, 0.6), 0 0 30px rgba(55, 176, 229, 0.55);
}

.sos-btn-glow-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.sos-btn-glow-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #38bdf8;
  color: #38bdf8 !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   5. LIVE STATS COCKPIT STRIP (أرقام تفخر بها المحطة)
   ========================================================================== */

.sos-expertise-stats-strip {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 1320px;
  margin: -2.5rem auto -1rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.sos-expertise-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: rgba(14, 39, 65, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(55, 176, 229, 0.12);
}

[data-theme="light"] .sos-expertise-stats-grid {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(30, 102, 176, 0.2);
  box-shadow: 0 18px 45px rgba(14, 39, 65, 0.12), 0 0 25px rgba(55, 176, 229, 0.08);
}

.sos-expertise-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

.sos-expertise-stat-card:last-child {
  border-inline-end: none;
}

[data-theme="light"] .sos-expertise-stat-card {
  border-inline-end-color: rgba(0, 0, 0, 0.08);
}

.sos-expertise-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.sos-expertise-stat-icon--gold {
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.25);
}

.sos-expertise-stat-val {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
  letter-spacing: -0.01em;
}

[data-theme="light"] .sos-expertise-stat-val {
  color: #0e2741;
}

.sos-expertise-stat-lbl {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin-top: 0.2rem;
}

[data-theme="light"] .sos-expertise-stat-lbl {
  color: #64748b;
}

@media (max-width: 992px) {
  .sos-expertise-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sos-expertise-stat-card:nth-child(2) {
    border-inline-end: none;
  }
}

@media (max-width: 576px) {
  .sos-expertise-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .sos-expertise-stat-card {
    border-inline-end: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
  }
  .sos-expertise-stat-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ==========================================================================
   6. FACILITY SPECS SECTION (تفاصيل المنشأة)
   ========================================================================== */

.sos-specs-section {
  padding: 6.5rem 0 4rem;
  background: var(--bg-surface-primary, #0b1a2d);
  position: relative;
}

[data-theme="light"] .sos-specs-section {
  background: #f8fafc;
}

.sos-specs-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .sos-specs-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.sos-specs-table-card {
  background: rgba(14, 39, 65, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .sos-specs-table-card {
  background: #ffffff;
  border-color: rgba(30, 102, 176, 0.15);
  box-shadow: 0 12px 36px rgba(14, 39, 65, 0.06);
}

.sos-specs-modern-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
  transition: background 0.2s ease;
}

.sos-specs-modern-row:last-child {
  border-bottom: none;
}

.sos-specs-modern-row:hover {
  background: rgba(56, 189, 248, 0.05);
}

[data-theme="light"] .sos-specs-modern-row {
  border-bottom-color: #f1f5f9;
}

[data-theme="light"] .sos-specs-modern-row:hover {
  background: #f8fafc;
}

.sos-specs-modern-row__lbl {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
}

[data-theme="light"] .sos-specs-modern-row__lbl {
  color: #1e66b0;
}

.sos-specs-modern-row__lbl svg {
  color: #38bdf8;
  flex-shrink: 0;
}

[data-theme="light"] .sos-specs-modern-row__lbl svg {
  color: #1e66b0;
}

.sos-specs-modern-row__val {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
}

[data-theme="light"] .sos-specs-modern-row__val {
  color: #334155;
}

.sos-specs-modern-row.is-highlight {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid #00e5ff;
}

[data-theme="light"] .sos-specs-modern-row.is-highlight {
  background: rgba(30, 102, 176, 0.06);
  border-left: 3px solid #1e66b0;
}

.sos-specs-modern-row.is-highlight .sos-specs-modern-row__val {
  color: #00f0ff;
  font-weight: 700;
}

[data-theme="light"] .sos-specs-modern-row.is-highlight .sos-specs-modern-row__val {
  color: #1e66b0;
}

@media (max-width: 576px) {
  .sos-specs-modern-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1rem;
  }
}

/* Facility Visual Presentation */
.sos-facility-visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: #0f172a;
}

.sos-facility-visual-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sos-facility-visual-card:hover .sos-facility-visual-img {
  transform: scale(1.04);
}

.sos-facility-visual-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  background: rgba(14, 39, 65, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   7. OPERATION & MAINTENANCE SERVICES (خدماتنا المتخصصة)
   ========================================================================== */

.sos-services-section {
  padding: 5rem 0;
  position: relative;
  background: var(--bg-surface-secondary, #081525);
}

[data-theme="light"] .sos-services-section {
  background: #ffffff;
}

.sos-om-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 3rem;
  justify-content: center;
}

.sos-om-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(14, 39, 65, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

[data-theme="light"] .sos-om-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.sos-om-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}

.sos-om-pill svg {
  color: #38bdf8;
}

/* 3-Column Specialized Service Cards Grid */
.sos-specialized-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .sos-specialized-services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

.sos-specialized-card {
  position: relative;
  background: rgba(14, 39, 65, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] .sos-specialized-card {
  background: #ffffff;
  border-color: rgba(30, 102, 176, 0.15);
  box-shadow: 0 12px 32px rgba(14, 39, 65, 0.08);
}

.sos-specialized-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .sos-specialized-card:hover {
  box-shadow: 0 20px 48px rgba(30, 102, 176, 0.15), 0 0 20px rgba(55, 176, 229, 0.12);
}

.sos-specialized-card__thumb-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #0f172a;
}

.sos-specialized-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sos-specialized-card:nth-child(1) .sos-specialized-card__img {
  object-position: center 75%;
}

.sos-specialized-card:hover .sos-specialized-card__img {
  transform: scale(1.08);
}

.sos-specialized-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 21, 36, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[dir="ltr"] .sos-specialized-card__badge {
  right: auto;
  left: 1rem;
}

.sos-specialized-card__body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sos-specialized-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

[data-theme="light"] .sos-specialized-card__title {
  color: #0e2741;
}

.sos-specialized-card__desc {
  font-size: 0.94rem;
  line-height: 1.75;
  color: #ffffff;
  margin: 0 0 1.5rem;
  flex: 1;
}

[data-theme="light"] .sos-specialized-card__desc {
  color: #475569;
}

.sos-specialized-card__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .sos-specialized-card__highlights {
  border-top-color: #f1f5f9;
}

.sos-specialized-card__tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #38bdf8;
}

[data-theme="light"] .sos-specialized-card__tag {
  color: #1e66b0;
}

.sos-specialized-card__tag svg {
  flex-shrink: 0;
}

/* ==========================================================================
   8. WHY SOS (لماذا SOS - شريك تشغيلي تثق به)
   ========================================================================== */

.sos-why-section {
  padding: 5rem 0 6rem;
  background: var(--bg-surface-primary, #0b1a2d);
  position: relative;
}

[data-theme="light"] .sos-why-section {
  background: #f8fafc;
}

.sos-why-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 1200px) {
  .sos-why-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sos-why-grid-4 {
    grid-template-columns: 1fr;
  }
}

.sos-why-card {
  position: relative;
  background: rgba(14, 39, 65, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .sos-why-card {
  background: #ffffff;
  border-color: rgba(30, 102, 176, 0.15);
  box-shadow: 0 10px 30px rgba(14, 39, 65, 0.05);
}

.sos-why-card:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .sos-why-card:hover {
  box-shadow: 0 16px 40px rgba(30, 102, 176, 0.12);
}

.sos-why-num {
  display: none !important;
}

.sos-why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.sos-why-card:nth-child(2) .sos-why-icon {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.3);
  color: #ffd166;
}

.sos-why-card:nth-child(2) .sos-why-num {
  color: rgba(255, 209, 102, 0.25);
}

.sos-why-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

[data-theme="light"] .sos-why-title {
  color: #0e2741;
}

.sos-why-desc {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

[data-theme="light"] .sos-why-desc {
  color: #475569;
}

/* ==========================================================================
   9. CALL TO ACTION (طلب تقييم فني للمحطة)
   ========================================================================== */

.sos-expertise-cta {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 39, 65, 0.95) 0%, rgba(30, 102, 176, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3.5rem 3rem;
  margin-top: 4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 35px rgba(55, 176, 229, 0.25);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .sos-expertise-cta {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
    text-align: center;
  }
}

.sos-expertise-cta__watermark {
  position: absolute;
  left: -20px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.08;
  pointer-events: none;
}

.sos-expertise-cta__title {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.sos-expertise-cta__desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
}

.sos-expertise-cta__actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .sos-expertise-cta__actions {
    justify-content: center;
  }
}

.sos-btn-assessment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #0e2741 !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1.05rem 2.2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sos-btn-assessment:hover {
  background: #37b0e5;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(55, 176, 229, 0.5);
}

/* ==========================================================================
   10. INTERACTIVE TELEMETRY TOOLTIP MODAL
   ========================================================================== */

.sos-telemetry-tooltip {
  position: absolute;
  z-index: 20;
  background: rgba(7, 21, 36, 0.95);
  border: 1px solid #38bdf8;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  max-width: 280px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sos-telemetry-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sos-telemetry-tooltip__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sos-telemetry-tooltip__body {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #ffffff;
}

/* ==========================================================================
   11. MOBILE ENHANCEMENTS: OUR EXPERTISE HERO (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .sos-expertise-hero {
    min-height: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
    padding-top: calc(75px + 1.25rem) !important;
    padding-bottom: 4rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .sos-expertise-hero__backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
  }

  .sos-expertise-hero__stage {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    padding: 1.6rem 1.2rem !important;
    text-align: center !important;
    z-index: 10 !important;
    background: rgba(6, 17, 32, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5) !important;
  }

  .sos-expertise-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.35rem 0.95rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    background: rgba(55, 176, 229, 0.22) !important;
    border: 1px solid rgba(55, 176, 229, 0.5) !important;
    color: #38bdf8 !important;
    margin-bottom: 0.75rem !important;
  }

  .sos-expertise-hero__title,
  .sos-expertise-hero__title *,
  .sos-expertise-hero__title span,
  .sos-expertise-hero__title .hero-title-white {
    font-size: clamp(1.65rem, 5.8vw, 2.2rem) !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    margin: 0 auto 0.75rem !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8) !important;
  }

  .sos-expertise-hero__subtitle {
    font-size: clamp(0.92rem, 3.3vw, 1.05rem) !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, 0.94) !important;
    margin: 0 auto 1.25rem !important;
    max-width: 580px !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7) !important;
  }

  .sos-expertise-hero__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
  }

  .sos-btn-glow,
  .sos-btn-glow-secondary {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
    font-size: 0.85rem !important;
  }

  .sos-expertise-hud {
    position: relative !important;
    top: auto !important;
    inset-inline-end: auto !important;
    margin: 1.25rem auto 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.4rem 0.75rem !important;
    background: rgba(7, 21, 36, 0.85) !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    z-index: 12 !important;
  }

  .sos-hud-btn {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.72rem !important;
  }
}
