/* ============================================================
   FIRST ENGINEERING CO — MASTER STYLESHEET v3
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --brand: #3389c9;
  --brand-dark: #1a6fae;
  --brand-light: #5aaae0;
  --navy: #071524;
  --navy-2: #0c2035;
  --ink: #132238;
  --muted: #66778a;
  --line: rgba(51, 137, 201, 0.18);
  --silver: #edf3f8;
  --soft: #f7fafc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 21, 36, 0.13);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[dir="rtl"] {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[dir="ltr"] body {
  font-family: "Inter", "Cairo", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 14.5px;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
}
ul {
  list-style: none;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}
.section-pad {
  padding: 88px 0;
  background: var(--silver);
}
.section-pad-sm {
  padding: 56px 0;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3 {
  line-height: 1.25;
  color: inherit;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(28px, 4.8vw, 48px);
  font-weight: 800;
}
h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 12px;
}
h3 {
  font-size: 17.5px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}
p {
  font-size: 13.8px;
  line-height: 1.65;
  margin-bottom: 14px;
  color: var(--muted);
}
.eyebrow {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: none;
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal-right.visible {
  opacity: 1;
  transform: none;
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.reveal-fade.visible {
  opacity: 1;
}

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #071524 0%, #0c2035 40%, #0d2e4d 80%, #071524 100%);
  background-size: 400% 400%;
  animation: gradientMove 8s ease infinite;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  overflow: hidden;
}

/* خلفية متحركة متدرجة */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===== دوائر خلفية عائمة ===== */
.loader-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(51, 137, 201, 0.08);
  pointer-events: none;
  animation: floatCircle 12s ease-in-out infinite alternate;
}

.loader-bg-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -80px;
  animation-duration: 14s;
  animation-delay: -2s;
  background: rgba(51, 137, 201, 0.06);
}

.loader-bg-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -60px;
  animation-duration: 10s;
  animation-delay: -4s;
  background: rgba(51, 137, 201, 0.05);
}

.loader-bg-circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 20%;
  animation-duration: 16s;
  animation-delay: -6s;
  background: rgba(51, 137, 201, 0.04);
}

.loader-bg-circle:nth-child(4) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 15%;
  animation-duration: 8s;
  animation-delay: -1s;
  background: rgba(51, 137, 201, 0.07);
}

@keyframes floatCircle {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
  100% { transform: translate(10px, -10px) scale(1.05); }
}

/* ===== المحتوى الأساسي ===== */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* الشعار مع توهج خلفي */
.loader-content img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: loaderPulse 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0, 145, 255, 0.3));
  position: relative;
}

/* حلقة ضوئية خلف الشعار (Glow Ring) */
.loader-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(51, 137, 201, 0.15), transparent 70%);
  border-radius: 50%;
  animation: glowRing 2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowRing {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* نبض الشعار */
@keyframes loaderPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.92);
    filter: drop-shadow(0 0 20px rgba(51, 137, 201, 0.2));
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 40px rgba(51, 137, 201, 0.5));
  }
}

/* النصوص */
.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.loader-brand-ar {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 20px rgba(51, 137, 201, 0.2);
}

.loader-brand-en {
  color: var(--brand, #3389c9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ========== NAVBAR – TRANSPARENT + SCROLL EFFECT ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(7, 21, 36, 0.08);
  border-bottom: 1px solid rgba(7, 21, 36, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .brand img {
    height: 25px;
    width: auto;
  }
}
.brand-text b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  color: var(--brand);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

/* Desktop navigation */
.nav-links-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  padding: 4px 14px;
  border-radius: 40px;
  color: #1e2a3e;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active {
  background: none;
  color: var(--brand);
  box-shadow: 0 2px 0px rgba(51, 137, 201, 0.3);
  padding: 4px 14px;
}

/* Desktop action buttons */
.nav-actions-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-actions-mobile {
  display: none;
}

/* Buttons */
.btn {
  border: 0;
  border-radius: 40px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 12px rgba(51, 137, 201, 0.3);
}
.btn-primary:hover {
  background: #2a78b5;
}
.btn-ghost {
  background: rgba(51, 137, 201, 0.1);
  color: var(--brand);
}
.btn-ghost:hover {
  background: rgba(51, 137, 201, 0.2);
}

/* Language toggle */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: white;
  background: var(--navy);
  border: 1px solid rgba(51, 137, 201, 0.4);
  border-radius: 40px;
  cursor: pointer;
  height: 36px;
}
.language-toggle:hover {
  background: var(--brand);
  border-color: var(--brand);
}

/* Hamburger button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
}

/* ========== MOBILE (≤ 900px) ========== */
@media (max-width: 900px) {
  .nav {
    min-height: 64px;
    padding: 0 12px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand-text b {
    font-size: 13px;
  }
  .brand-text small {
    font-size: 10px;
  }

  /* Hide desktop nav and desktop actions */
  .nav-links-wrap {
    display: none;
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
  }
  .site-header.menu-open .nav-links-wrap {
    display: flex !important;
    z-index: 10000;
  }

  .nav-links {
    flex-direction: column;
    gap: 6px;
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: 16px;
    text-align: center;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px;
    border-radius: 14px;
  }

  .nav-links li a:hover {
    background: rgba(51, 137, 201, 0.08);
  }

  .nav-links a.is-active{
    box-shadow: none;
  }

  .nav-mobile-divider {
    pointer-events: none;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .nav-actions-mobile .btn,
  .nav-actions-mobile .language-toggle {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
  }
  

  .nav-actions-desktop .btn:not(.menu-toggle),
  .nav-actions-desktop .language-toggle {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Toggle icon between bars and times */
  .site-header.menu-open .menu-toggle i {
    transform: rotate(90deg);
    transition: transform 0.2s;
  }
  .site-header.menu-open .menu-toggle i:before {
    content: "\f00d";
  }
}

/* Hide dividers by default (desktop) */
.nav-mobile-divider {
  display: none;
}

/* Show dividers only on mobile (≤ 900px) */
@media (max-width: 900px) {
  .nav-mobile-divider {
    display: block;
    margin: 16px 0;
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
  }
}

/* ══════════════════════════════════════
   HERO — REFERENCE DESIGN
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #071524 0%, #0b1e35 30%, #0d2a46 60%, #071524 100%);
}

/* ── ANIMATED BACKGROUND LAYER ── */
.hero-bg-animated {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Ambient glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(51,137,201,0.12) 0%, transparent 70%);
  animation: orbDrift1 22s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 10%;
  background: radial-gradient(circle, rgba(26,111,174,0.1) 0%, transparent 70%);
  animation: orbDrift2 18s ease-in-out infinite alternate;
  animation-delay: -6s;
}
.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, rgba(51,137,201,0.07) 0%, transparent 70%);
  animation: orbDrift1 26s ease-in-out infinite alternate;
  animation-delay: -12s;
}
html[dir="rtl"] .hero-orb-1 { right: auto; left: -120px; }
html[dir="rtl"] .hero-orb-2 { left: auto; right: 10%; }
@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-20px, 50px) scale(0.95); }
}
@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30px, -20px) scale(1.06); }
  100% { transform: translate(20px, 30px) scale(1.02); }
}

/* Floating background circles (like loader) */
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(51,137,201,0.12);
  pointer-events: none;
  animation: heroBgCircleFloat 14s ease-in-out infinite alternate;
}
.hbc-1 {
  width: 500px; height: 500px;
  top: -160px; right: -80px;
  border-color: rgba(51,137,201,0.09);
  animation-duration: 18s;
  animation-delay: 0s;
  background: rgba(51,137,201,0.025);
}
.hbc-2 {
  width: 300px; height: 300px;
  top: -50px; right: 60px;
  border-color: rgba(51,137,201,0.14);
  animation-duration: 12s;
  animation-delay: -3s;
}
.hbc-3 {
  width: 220px; height: 220px;
  bottom: 80px; left: 8%;
  border-color: rgba(51,137,201,0.1);
  animation-duration: 16s;
  animation-delay: -8s;
  background: rgba(51,137,201,0.02);
}
.hbc-4 {
  width: 140px; height: 140px;
  top: 55%; left: 30%;
  border-color: rgba(255,255,255,0.05);
  animation-duration: 10s;
  animation-delay: -5s;
}
.hbc-5 {
  width: 90px; height: 90px;
  bottom: 22%; right: 22%;
  border-color: rgba(51,137,201,0.16);
  animation-duration: 8s;
  animation-delay: -2s;
  background: rgba(51,137,201,0.03);
}
html[dir="rtl"] .hbc-1 { right: auto; left: -80px; }
html[dir="rtl"] .hbc-2 { right: auto; left: 60px; }
html[dir="rtl"] .hbc-3 { left: auto; right: 8%; }
html[dir="rtl"] .hbc-4 { left: auto; right: 30%; }
html[dir="rtl"] .hbc-5 { right: auto; left: 22%; }
@keyframes heroBgCircleFloat {
  0%   { transform: translate(0,0) scale(1); opacity: 0.7; }
  33%  { transform: translate(20px,-15px) scale(1.04); opacity: 1; }
  66%  { transform: translate(-15px,20px) scale(0.97); opacity: 0.8; }
  100% { transform: translate(8px,-8px) scale(1.02); opacity: 0.9; }
}

/* Subtle grid lines overlay */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51,137,201,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,137,201,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ── FLOATING HVAC / ENGINEERING ICONS ── */
.hero-icon {
  position: absolute;
  pointer-events: none;
  color: rgba(51,137,201,0.2);
  animation: iconFloat 14s ease-in-out infinite;
}
.hero-icon svg {
  display: block;
}



/* Icon positions & sizes — tuned for each element's shape */
.hi-1 { /* Elbow duct — top right */
  width: 88px; height: 88px;
  top: 10%; right: 7%;
  animation-duration: 17s;
  animation-delay: 0s;
  color: rgba(51,137,201,0.18);
}
.hi-2 { /* Straight duct — mid right */
  width: 110px; height: 50px;
  top: 52%; right: 4%;
  animation-duration: 14s;
  animation-delay: -5s;
  color: rgba(255,255,255,0.1);
}
.hi-3 { /* Snowflake A — upper left */
  width: 64px; height: 64px;
  top: 14%; left: 7%;
  animation-duration: 19s;
  animation-delay: -2s;
  color: rgba(90,170,224,0.22);
  animation-name: iconFloat, iconSpin;
}
.hi-4 { /* T-junction — lower left */
  width: 86px; height: 76px;
  bottom: 22%; left: 6%;
  animation-duration: 16s;
  animation-delay: -8s;
  color: rgba(51, 136, 201, 0.788);
}
.hi-5 { /* Snowflake B — bottom right */
  width: 50px; height: 50px;
  bottom: 18%; right: 16%;
  animation-duration: 13s;
  animation-delay: -4s;
  color: rgba(90,170,224,0.2);
  animation-name: iconFloat, iconSpin;
}
.hi-6 { /* Circular diffuser — top center */
  width: 72px; height: 72px;
  top: 7%; left: 36%;
  animation-duration: 22s;
  animation-delay: -11s;
  color: rgba(51,137,201,0.15);
}
.hi-7 { /* Snowflake C — mid left accent */
  width: 38px; height: 38px;
  top: 62%; left: 20%;
  animation-duration: 11s;
  animation-delay: -6s;
  color: rgba(90,170,224,0.24);
  animation-name: iconFloat, iconSpin;
}
.hi-8 { /* Reducer — lower center */
  width: 96px; height: 62px;
  bottom: 26%; left: 36%;
  animation-duration: 18s;
  animation-delay: -9s;
  color: rgba(255,255,255,0.09);
}

/* RTL mirrors */
html[dir="rtl"] .hi-1 { right: auto; left: 7%; }
html[dir="rtl"] .hi-2 { right: auto; left: 4%; transform: scaleX(-1); }
html[dir="rtl"] .hi-3 { left: auto; right: 7%; }
html[dir="rtl"] .hi-4 { left: auto; right: 6%; transform: scaleX(-1); }
html[dir="rtl"] .hi-5 { right: auto; left: 16%; }
html[dir="rtl"] .hi-6 { left: auto; right: 36%; }
html[dir="rtl"] .hi-7 { left: auto; right: 20%; }
html[dir="rtl"] .hi-8 { left: auto; right: 36%; transform: scaleX(-1); }

@keyframes iconFloat {
  0%   { transform: translateY(0px) translateX(0px); }
  20%  { transform: translateY(-12px) translateX(5px); }
  45%  { transform: translateY(-7px) translateX(-4px); }
  70%  { transform: translateY(-17px) translateX(3px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes iconSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile: fewer icons, smaller sizes */
@media (max-width: 768px) {
  .hi-2, .hi-4, .hi-7, .hi-8 { display: none; }
  .hi-1 { width: 60px; height: 60px; }
  .hi-3 { width: 46px; height: 46px; }
  .hi-5 { width: 36px; height: 36px; }
  .hi-6 { width: 52px; height: 52px; }
  .hbc-1 { width: 340px; height: 340px; }
  .hbc-3 { width: 160px; height: 160px; }
  .hero-orb-1 { width: 380px; height: 380px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-icon, .hero-bg-circle, .hero-orb, .hero-grid-lines {
    animation: none;
  }
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      -90deg,
      rgb(7, 21, 36),
      rgba(7, 21, 36, 0.912),
      rgb(9, 40, 64)
    ),
    radial-gradient(circle at 24% 20%, rgba(51, 137, 201, 0.3), transparent 28%);
}
html[dir="rtl"] .hero-overlay-gradient {
  background:
    linear-gradient(
      -90deg,
      rgba(7, 21, 36, 0.88),
      rgba(7, 21, 36, 0.54),
      rgba(51, 137, 201, 0.18)
    ),
    radial-gradient(circle at 76% 20%, rgba(51, 137, 201, 0.3), transparent 28%);
}

/* Rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(51, 137, 201, 0.18);
  pointer-events: none;
  z-index: 1;
  animation: heroRingPulse 8s ease-in-out infinite;
}
.hero-ring-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -100px;
  border-color: rgba(51, 137, 201, 0.14);
  animation-delay: 0s;
}
.hero-ring-2 {
  width: 280px;
  height: 280px;
  top: -40px;
  right: -30px;
  border-color: rgba(51, 137, 201, 0.22);
  animation-delay: -2s;
}
.hero-ring-3 {
  width: 180px;
  height: 180px;
  bottom: 18%;
  left: 5%;
  border-color: rgba(51, 137, 201, 0.16);
  animation-delay: -4s;
}
html[dir="rtl"] .hero-ring-1 {
  right: auto;
  left: -100px;
}
html[dir="rtl"] .hero-ring-2 {
  right: auto;
  left: -30px;
}
html[dir="rtl"] .hero-ring-3 {
  left: auto;
  right: 5%;
}
@keyframes heroRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* Particles */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(51, 137, 201, 0.5);
  pointer-events: none;
  z-index: 1;
  animation: heroParticleFloat 12s ease-in-out infinite alternate;
}
.hero-particle-1 {
  width: 6px;
  height: 6px;
  top: 22%;
  left: 14%;
  animation-duration: 9s;
}
.hero-particle-2 {
  width: 4px;
  height: 4px;
  top: 65%;
  left: 20%;
  animation-duration: 14s;
  animation-delay: -3s;
}
.hero-particle-3 {
  width: 8px;
  height: 8px;
  top: 35%;
  right: 18%;
  background: rgba(255, 255, 255, 0.3);
  animation-duration: 11s;
  animation-delay: -6s;
}
.hero-particle-4 {
  width: 5px;
  height: 5px;
  top: 75%;
  right: 12%;
  animation-duration: 7s;
  animation-delay: -1s;
}
@keyframes heroParticleFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-28px) scale(1.3);
  }
}

/* Watermark */
.hero-logo-watermark {
  position: absolute;
  z-index: 1;
  width: min(380px, 55vw);
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  opacity: 0.045;
  pointer-events: none;
  filter: brightness(10);
}
html[dir="rtl"] .hero-logo-watermark {
  right: auto;
  left: 6%;
}

/* Main wrapper */
.hero-main-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-bottom: 110px;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0;
  text-align: right;
}
html[dir="ltr"] .hero .hero-content {
  text-align: left;
}
.hero .hero-content h1 {
  font-size: clamp(30px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51, 137, 201, 0.18);
  border: 1px solid rgba(51, 137, 201, 0.4);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #b8ddf7;
  backdrop-filter: blur(8px);
  animation: fadeBadgeIn 0.9s var(--ease) both;
}
.hero-badge i {
  color: var(--brand);
  font-size: 14px;
}
@keyframes fadeBadgeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 680px;
}
html[dir="ltr"] .hero-lead {
  margin-inline: 0;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
html[dir="ltr"] .hero-cta-row {
  justify-content: flex-start;
}
.hero-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 32px rgba(51, 137, 201, 0.45);
  font-size: 14px;
  padding: 13px 24px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  transition: all 0.25s var(--ease);
}
.hero-btn-primary:hover {
  background: #2a78b5;
  transform: translateY(-3px);
}
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.25s var(--ease);
}
.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.hero-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Trust row */
.hero-trust-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 21, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 22px;
  backdrop-filter: blur(12px);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hero-trust-item i {
  color: var(--brand);
  font-size: 13px;
}
.hero-trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}

/* Stats bar */
.hero-stats-bar {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 21, 36, 0.72);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(51, 137, 201, 0.2);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.hero-stat-item {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 20px;
  gap: 5px;
  position: relative;
  cursor: default;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  border-radius: 0;
}
.hero-stat-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(51,137,201,0);
  transition: background 0.35s var(--ease);
  pointer-events: none;
}
.hero-stat-item:hover::after {
  background: rgba(51,137,201,0.07);
}
.hero-stat-item:hover {
  transform: translateY(-3px);
}

/* Stat icon */
.hero-stat-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(51, 136, 201);
  margin-bottom: 2px;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease), filter 0.3s;
}
.hero-stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-stat-item:hover .hero-stat-icon {
  color: var(--brand);
  transform: scale(1.18) translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(51,137,201,0.5));
}

.hero-stat-item strong {
  display: block;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  transition: color 0.3s;
}
.hero-stat-item:hover strong {
  color: #7ec8f0;
}
.hero-stat-item > span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.hero-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
  margin: 16px 0;
}

/* ══════════════════════════════════════
   INNER PAGE HEROES
══════════════════════════════════════ */
.inner-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 21, 36, 0.9) 0%,
    rgba(7, 21, 36, 0.5) 60%,
    rgba(51, 137, 201, 0.18) 100%
  );
  z-index: 1;
}
html[dir="rtl"] .inner-hero-overlay {
  background: linear-gradient(
    -90deg,
    rgba(7, 21, 36, 0.9) 0%,
    rgba(7, 21, 36, 0.5) 60%,
    rgba(51, 137, 201, 0.18) 100%
  );
}
.inner-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}
.inner-hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(51, 137, 201, 0.18);
  pointer-events: none;
  z-index: 1;
  animation: heroRingPulse 8s ease-in-out infinite;
}
.inner-hero-ring-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -120px;
  animation-delay: 0s;
}
.inner-hero-ring-2 {
  width: 240px;
  height: 240px;
  top: -50px;
  right: -50px;
  border-color: rgba(51, 137, 201, 0.25);
  animation-delay: -3s;
}
html[dir="rtl"] .inner-hero-ring-1 {
  right: auto;
  left: -120px;
}
html[dir="rtl"] .inner-hero-ring-2 {
  right: auto;
  left: -50px;
}
.inner-hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 60px;
}
.inner-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51, 137, 201, 0.18);
  border: 1px solid rgba(51, 137, 201, 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #b8ddf7;
}
.inner-hero-badge i {
  color: var(--brand);
}
.inner-hero-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.inner-hero-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  max-width: 600px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--brand-light);
}
.breadcrumb i {
  font-size: 9px;
}

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}
.section-header.left {
  text-align: right;
  margin-left: 0;
  margin-right: 0;
}
html[dir="ltr"] .section-header.left {
  text-align: left;
}
.section-header h2 {
  margin-bottom: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.divider-line {
  width: 48px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 10px auto 20px;
}
.section-header.left .divider-line {
  margin-left: 0;
  margin-right: 0;
}

/* ===================== PARTNERS MARQUEE SECTION ===================== */
.section {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.section.soft {
  background: var(--soft, #f7fafc); /* fallback if variable missing */
}


.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}
@media (max-width: 720px) {
  .section-head {
    display: block;
  }
}

.eyebrow {
  color: var(--brand, #3389c9);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(15px, 1.6vw, 19px);
  display: block;
  margin-bottom: 8px;
}
html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--navy, #071524);
  font-weight: 800;
  margin: 0 0 16px;
}

/* Marquee container – masks edges for smooth effect */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
  direction: ltr;
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 16px;
  animation: marqueeFull 50s linear infinite;
}

/* Animation – moves track left continuously */
@keyframes marqueeFull {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Each logo box */
.marquee-item {
  width: 170px;
  height: 108px;
  flex: 0 0 170px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius, 8px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(7, 21, 36, 0.08);
  box-shadow: none;
  transition:
    transform 0.3s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  cursor: pointer;
  /* filter: grayscale(100%); */
}
.marquee-item:hover {
  filter: grayscale(0);
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(51, 137, 201, 0.25);
  box-shadow:
    0 16px 38px rgba(7, 21, 36, 0.08),
    0 0 12px rgba(51, 137, 201, 0.2);
}
.marquee-item img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 720px) {
  .marquee-item {
    width: 138px;
    flex-basis: 138px;
    height: 88px;
  }
  .section {
    padding: 62px 0;
  }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reverse animation (clients move right) ── */
.marquee-track.reverse {
  animation-name: marqueeReverse;
}

@keyframes marqueeReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
/* ══════════════════════════════════════
   CERTIFICATIONS — STATIC GRID
══════════════════════════════════════ */
.certs-static-section {
  padding: 80px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.certs-static-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(51, 137, 201, 0.1),
    transparent 70%
  );
}

/* ISO highlighted row */
.certs-iso-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.cert-iso-card {
  background: rgba(51, 137, 201, 0.12);
  border: 1.5px solid rgba(51, 137, 201, 0.4);
  border-radius: 14px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.cert-iso-card::before {
  content: "ISO";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 56px;
  font-weight: 900;
  color: rgba(51, 137, 201, 0.08);
  line-height: 1;
  pointer-events: none;
}

html[dir="ltr"] .cert-iso-card::before {
  right: auto;
  left: -8px;
}

.cert-iso-card.aramco-card::before {
  content: "ARAMCO";
}

.cert-iso-card:hover {
  background: rgba(51, 137, 201, 0.2);
  border-color: rgba(51, 137, 201, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(51, 137, 201, 0.25);
}

.cert-iso-card img {
  height: 200px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.cert-iso-card span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.cert-iso-badge {
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .certs-iso-row {
    grid-template-columns: 1fr;
  }
}
/* Standard certs row */
.certs-standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.cert-std-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  cursor: default;
}
.cert-std-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(51, 137, 201, 0.35);
  transform: translateY(-4px);
  cursor: pointer;
  background-color: var(--brand);
  box-shadow: 0 16px 48px rgba(51, 137, 201, 0.3);
}
.cert-std-card img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.65);
  transition: filter 0.3s;
}
.cert-std-card:hover img {
  filter: brightness(1) saturate(1.2) opacity(1);
}
.cert-std-card span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-weight: 600;
}

/* ══════════════════════════════════════
   STATS SECTION
══════════════════════════════════════ */
.stats-section {
  background: var(--navy);
  padding: 72px 0;
}
.stats-header {
  text-align: center;
  margin-bottom: 40px;
}
.stats-header h2 {
  color: #fff;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.stats-header h2::before,
.stats-header h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 1.5px;
  background: rgba(51, 137, 201, 0.6);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 44px 20px 48px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: background 0.3s;
}
.stat-cell:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.07);
}
html[dir="rtl"] .stat-cell:not(:last-child)::after {
  right: auto;
  left: 0;
}
.stat-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.stat-cell:hover::before {
  transform: scaleX(1);
}
.stat-cell:hover {
  background: rgba(255, 255, 255, 0.03);
}
.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(51, 137, 201, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  color: var(--brand-light);
  transition: background 0.3s;
}
.stat-cell:hover .stat-icon {
  background: rgba(51, 137, 201, 0.22);
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-lbl {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
}

/* ══════════════════════════════════════
   INTRO / ABOUT PREVIEW
══════════════════════════════════════ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.intro-collage {
  position: relative;
  height: 480px;
}
.collage-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 80%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(12, 30, 50, 0.16);
}
html[dir="ltr"] .collage-main {
  right: auto;
  left: 0;
}
.collage-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.collage-main:hover img {
  transform: scale(1.04);
}
.collage-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48%;
  height: 48%;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 12px 36px rgba(12, 30, 50, 0.14);
}
html[dir="ltr"] .collage-accent {
  left: auto;
  right: 0;
}
.collage-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collage-badge {
  position: absolute;
  top: 28%;
  left: 44%;
  background: var(--brand);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(51, 137, 201, 0.4);
  z-index: 2;
  line-height: 1.25;
}
.collage-badge strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  font-family: "Inter", sans-serif;
}
.collage-badge span {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 600;
}

/* ══════════════════════════════════════
   HSE SECTION
══════════════════════════════════════ */
.hse-section {
  background: var(--white);
  padding: 80px 0;
}
.hse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hse-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 16px 48px rgba(12, 30, 50, 0.14);
}
.hse-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hse-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}
.hse-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hse-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border-radius: 12px;
  border-right: 3px solid var(--brand);
  box-shadow: 0 2px 12px rgba(12, 30, 50, 0.05);
  transition: all 0.3s;
}
html[dir="ltr"] .hse-point {
  border-right: none;
  border-left: 3px solid var(--brand);
}
.hse-point:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 24px rgba(51, 137, 201, 0.1);
}
html[dir="ltr"] .hse-point:hover {
  transform: translateX(4px);
}
.hse-point-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(51, 137, 201, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.1rem;
}
.hse-point h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--navy);
}
.hse-point p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}


@media (max-width: 768px) {

  .hse-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* العمود النصي */
  .hse-grid > .reveal-right {
    display: flex;
    flex-direction: column;
  }

  /* الصورة تيجي بعد العنوان والباراجراف */
  .hse-img {
    order: 2;
    margin: 20px 0;
  }

  /* العناصر التانية بعد الصورة */
  .hse-points {
    order: 3;
  }

}
/* ══════════════════════════════════════
   SERVICES PREVIEW (HOME)
══════════════════════════════════════ */
.sp-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 14px;
  margin-top: 40px;
}
.sp-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}
.sp-card.featured {
  grid-row: 1/3;
}
.sp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.sp-card:hover img {
  transform: scale(1.06);
}
.sp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.9) 0%,
    rgba(7, 21, 36, 0.12) 55%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: background 0.4s;
}
.sp-card:hover .sp-overlay {
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.96) 0%,
    rgba(51, 137, 201, 0.22) 100%
  );
}
.sp-icon {
  width: 38px;
  height: 38px;
  background: var(--brand);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.sp-card:hover .sp-icon {
  opacity: 1;
  transform: none;
}
.sp-overlay h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 5px;
}
.sp-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}
.sp-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

/* ===== SERVICES GRID – RESPONSIVE ===== */

/* للشاشات المتوسطة (تابلت) */
@media (max-width: 1024px) {
  .sp-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 14px;
  }

  /* البطاقة المميزة تأخذ عرض كامل الصف */
  .sp-card.featured {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  /* نجعل ارتفاع البطاقات متناسب مع الصورة */
  .sp-card {
    aspect-ratio: 4 / 3;
  }

  .sp-card img {
    height: 100%;
    object-fit: cover;
  }
}

/* للشاشات الصغيرة (جوال) */
@media (max-width: 700px) {
  .sp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sp-card {
    aspect-ratio: 16 / 9;
  }

  /* إلغاء خاصية الـ aspect-ratio للبطاقة المميزة لتظهر بشكل طبيعي */
  .sp-card.featured {
    aspect-ratio: auto;
  }

  .sp-overlay h3 {
    font-size: 16px;
  }

  .sp-overlay p {
    font-size: 13px;
  }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .sp-grid {
    gap: 10px;
  }

  .sp-card {
    aspect-ratio: 4 / 3;
  }

  .sp-overlay {
    padding: 16px;
  }

  .sp-overlay h3 {
    font-size: 14px;
  }

  .sp-overlay p {
    font-size: 12px;
  }

  .sp-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════
   TECH SPECS SECTION
══════════════════════════════════════ */
.tech-section {
  background: #fff;
  padding: 80px 0;
}
.tech-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 44px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tech-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 270px;
  cursor: pointer;
}
.tech-card-img {
  position: absolute;
  inset: 0;
}
.tech-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.tech-card:hover .tech-card-img img {
  transform: scale(1.07);
}
.tech-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.93) 45%,
    rgba(7, 21, 36, 0.18) 100%
  );
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s;
}
.tech-card:hover .tech-card-overlay {
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.96) 0%,
    rgba(51, 137, 201, 0.28) 100%
  );
}
.tech-card-icon {
  width: 38px;
  height: 38px;
  background: var(--brand);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.tech-card:hover .tech-card-icon {
  opacity: 1;
  transform: none;
}
.tech-card h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}
.tech-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin: 0;
}
.tech-card:hover p {
  max-height: 120px;
}

/* ══════════════════════════════════════
   PROJECTS PREVIEW — MAP STYLE
══════════════════════════════════════ */
.proj-map-section {
  background: var(--soft);
  padding: 80px 0;
}
.map-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.map-tab-btn {
  padding: 10px 22px;
  border-radius: 8px;
  border: 1.5px solid #dde6ef;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
  color: var(--navy);
}
.map-tab-btn.active,
.map-tab-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.map-box {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(12, 30, 50, 0.09);
}
#sa-map {
  width: 100%;
  height: auto;
  display: block;
}
#sa-map path {
  fill: #d0dce8;
  stroke: #fff;
  stroke-width: 0.6;
  transition: fill 0.3s;
  cursor: pointer;
}
#sa-map path:hover {
  fill: rgba(51, 137, 201, 0.35);
}

.map-pins-layer {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  bottom: 28px;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  pointer-events: all;
  transform: translate(-50%, -50%);
}
.pin-dot {
  width: 13px;
  height: 13px;
  background: var(--brand);
  border-radius: 50%;
  border: 2.5px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(51, 137, 201, 0.5);
  animation: pinPulse 2.5s ease-in-out infinite;
  transition: transform 0.2s;
}
.map-pin:hover .pin-dot {
  transform: scale(1.4);
}
@keyframes pinPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(51, 137, 201, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(51, 137, 201, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(51, 137, 201, 0);
  }
}
.pin-tip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pin-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--navy);
}
.map-pin:hover .pin-tip {
  opacity: 1;
}

/* Project info panel */
.proj-info-panel {
  background: #fff;
  border-radius: 14px;
  padding: 26px 30px;
  border: 1px solid rgba(51, 137, 201, 0.15);
  margin-top: 24px;
  display: none;
}
.proj-info-panel.active {
  display: block;
  animation: fadePanel 0.35s ease;
}
@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.proj-info-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.proj-client-logo {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 16px;
  height: 60px;
  display: flex;
  align-items: center;
}
.proj-client-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.proj-info-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.proj-tag {
  display: inline-block;
  background: rgba(51, 137, 201, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.proj-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.proj-locs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}
.loc-chip i {
  font-size: 10px;
  color: var(--brand);
}

/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.cta-banner {
  background: var(--navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 21, 36, 0.9),
    rgba(51, 137, 201, 0.2)
  );
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  color: #fff;
}
.cta-banner-inner h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.8;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(51, 137, 201, 0.4);
  transition: all 0.3s;
}
.btn-cta-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: var(--brand);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
}
.btn-cta-white:hover {
  background: #e8f3fb;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   FOOTER — Premium Redesign
══════════════════════════════════════ */
.site-footer {
  background: var(--navy, #071524);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

/* خطوط زخرفية في الخلفية */
.site-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(51, 137, 201, 0.06), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(51, 137, 201, 0.04), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

/* ===== العمود الأول: معلومات الشركة ===== */
.footer-brand .footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo-wrap img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(51, 137, 201, 0.25));
}

.footer-brand .footer-logo-wrap div {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.footer-brand-tag {
  display: block;
  color: var(--brand, #3389c9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.65);
}

/* أيقونات التواصل الاجتماعي */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--brand, #3389c9);
  border-color: var(--brand, #3389c9);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(51, 137, 201, 0.3);
}

/* ===== الأعمدة الأخرى ===== */
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2.5px;
  background: var(--brand, #3389c9);
  border-radius: 2px;
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.footer-col ul li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand, #3389c9);
  transition: width 0.3s ease;
}

html[dir="ltr"] .footer-col ul li a::before {
  right: auto;
  left: 0;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col ul li a:hover::before {
  width: 100%;
}

/* ===== عمود الاتصال ===== */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-contact-item i {
  color: var(--brand, #3389c9);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: #fff;
}

/* ===== السطر السفلي ===== */
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.footer-bottom span:last-child {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

/* ============================================================
   RESPONSIVE — FOOTER
   ============================================================ */

/* شاشات متوسطة (لوحات) */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
  }
}

/* أجهزة لوحية (≤ 900px) */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
    padding-bottom: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-col h5 {
    margin-bottom: 14px;
  }

  .footer-col h5::after {
    width: 24px;
  }
}

/* هواتف (≤ 600px) */
@media (max-width: 600px) {
  .site-footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand .footer-logo-wrap img {
    height: 40px;
  }

  .footer-brand-name {
    font-size: 14px;
  }

  .footer-brand-tag {
    font-size: 10px;
  }

  .footer-desc {
    font-size: 13px;
    max-width: 100%;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .footer-col h5 {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .footer-col h5::after {
    width: 20px;
  }

  .footer-col ul {
    gap: 6px;
  }

  .footer-col ul li a {
    font-size: 13px;
  }

  .footer-contact-item {
    font-size: 13px;
    gap: 10px;
  }

  .footer-contact-item i {
    font-size: 14px;
    width: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 0;
    gap: 6px;
    font-size: 11px;
  }

  .footer-bottom span:last-child {
    font-size: 11px;
  }
}

/* هواتف صغيرة جداً (≤ 400px) */
@media (max-width: 400px) {
  .footer-grid {
    gap: 24px;
  }

  .footer-brand .footer-logo-wrap img {
    height: 34px;
  }

  .footer-brand-name {
    font-size: 13px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .footer-col ul li a {
    font-size: 12.5px;
  }

  .footer-contact-item {
    font-size: 12px;
  }
}

/* ══════════════════════════════════════
   WHATSAPP BUTTON — Gradient + Pulse
══════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  /* خلفية متدرجة (Gradient) */
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
  /* تأثير النبض */
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
  animation-play-state: paused; /* إيقاف النبض عند التمرير */
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* تعريف حركة النبض */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

/* تنسيق RTL */
html[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 28px;
}

/* ══════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════ */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.who-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.who-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 10px;
  border-right: 3px solid var(--brand);
  transition: all 0.3s;
}
html[dir="ltr"] .who-pillar {
  border-right: none;
  border-left: 3px solid var(--brand);
}
.who-pillar:hover {
  background: rgba(51, 137, 201, 0.06);
  transform: translateX(-3px);
}
html[dir="ltr"] .who-pillar:hover {
  transform: translateX(3px);
}
.who-pillar-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(51, 137, 201, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.who-pillar-text h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.who-pillar-text p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Org Chart */
.org-section {
  background: var(--soft);
  padding: 80px 0;
}
/* ===================== ORGANIZATIONAL CHART ===================== */

/* Wrapper & Reveal */
.org-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
}

/* Cards base */
.org-card {
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  color: var(--ink, #132238);
}

/* Top executives */
.org-card.executive {
  background: var(--navy, #071524);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  width: 280px;
  border: 2px solid var(--brand, #3389c9);
}
.org-card.executive:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(51, 137, 201, 0.25);
  background: #0d263d;
}
.org-card.executive.chairman {
  font-size: 20px;
  background: linear-gradient(135deg, var(--navy, #071524), #061829);
}
.org-card.executive.gm {
  background: var(--navy, #071524);
}
.org-card.executive.deputy-gm {
  background: var(--navy, #071524);
  cursor: pointer;
  position: relative;
}

/* Middle level – department cards */
.org-card.department-card {
  background: linear-gradient(135deg, #3389c9, #1b5a9e);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  width: 240px;
}
.org-card.department-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(27, 90, 158, 0.2);
}

/* Bottom grid headers */
.org-card.sub-dept-header {
  background: linear-gradient(135deg, #4ea3e0, #2b7bb5);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.org-card.sub-dept-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(43, 123, 181, 0.25);
}

/* Role cards */
.org-card.role-card {
  background: #f4f7fa;
  color: var(--ink, #132238);
  font-size: 13.5px;
  padding: 10px 12px;
}
.org-card.role-card:hover {
  background: #fff;
  border-color: var(--brand, #3389c9);
  transform: translateX(3px);
  color: var(--brand, #3389c9);
}
html[dir="ltr"] .org-card.role-card:hover {
  transform: translateX(3px);
}
html[dir="rtl"] .org-card.role-card:hover {
  transform: translateX(-3px);
}

/* Toggle arrow (chevron) */
.org-toggle-arrow {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.35s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.org-card.org-toggle-enabled .org-toggle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.org-card.org-expanded .org-toggle-arrow {
  transform: rotate(180deg);
}

/* Vertical connectors */
.org-connector-vertical {
  width: 2px;
  height: 24px;
  background: rgba(51, 137, 201, 0.4);
  margin: 0 auto;
}

/* Middle level layout */
.org-level-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.org-level-middle {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 30px;
  width: 100%;
  max-width: 900px;
  align-items: center;
}
.org-center-line {
  height: 100%;
  background: rgba(51, 137, 201, 0.4);
  width: 2px;
}
.org-wing {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.org-wing.left-wing {
  align-items: flex-end;
}
.org-wing.right-wing {
  align-items: flex-start;
}
.org-level-deputy {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Bottom collapsible grid */
.org-bottom-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
  transition:
    max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s ease,
    margin-top 0.55s ease;
  opacity: 1;
  max-height: 2000px;
}
.org-bottom-grid.org-collapsed {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  margin-top: 0;
}

/* Columns inside the grid */
.org-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.org-column.revealed {
  opacity: 1;
  transform: translateY(0);
}
.org-sub-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .org-bottom-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .org-level-middle {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .org-center-line {
    display: none;
  }
  .org-wing.left-wing,
  .org-wing.right-wing {
    align-items: center;
  }
  .org-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .org-card.executive,
  .org-card.department-card {
    width: 100%;
    max-width: 280px;
  }
}
@media (max-width: 480px) {
  .org-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* Optional: if you need the .reveal class for fade‑up */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* VM Cards */
.vm-section {
  background: var(--navy);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.vm-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(51, 137, 201, 0.1),
    transparent 70%
  );
}
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.vm-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}
.vm-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(51, 137, 201, 0.35);
}
.vm-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(51, 137, 201, 0.1), transparent 70%);
}
html[dir="ltr"] .vm-card::after {
  right: auto;
  left: -50px;
}
.vm-icon {
  width: 60px;
  height: 60px;
  background: rgba(51, 137, 201, 0.14);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--brand-light);
  margin-bottom: 22px;
}
.vm-card h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.vm-card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.85;
  font-size: 14px;
  margin: 0;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  border-radius: 14px;
  padding: 36px 28px;
  background: var(--soft);
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}
.value-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: right;
}
html[dir="ltr"] .value-card::after {
  transform-origin: left;
}
.value-card:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(51, 137, 201, 0.15);
}
.value-card:hover::after {
  transform: scaleX(1);
}
.value-icon {
  width: 50px;
  height: 50px;
  background: rgba(51, 137, 201, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand);
  margin-bottom: 18px;
  transition: all 0.3s;
}
.value-card:hover .value-icon {
  background: var(--brand);
  color: #fff;
}
.value-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 9px;
}
.value-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ══════════════════════════════════════
   SERVICES PAGE
══════════════════════════════════════ */
.services-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
html[dir="rtl"] .services-layout {
  direction: rtl;
}
.service-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 88px;
}
.service-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid #dde6ef;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s;
}
.service-tab:hover {
  border-color: var(--brand);
  background: rgba(51, 137, 201, 0.04);
}
.service-tab.active {
  border-color: var(--brand);
  background: rgba(51, 137, 201, 0.08);
  box-shadow: 0 4px 20px rgba(51, 137, 201, 0.12);
}
.svc-tab-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--muted);
  transition: all 0.3s;
}
.service-tab.active .svc-tab-icon,
.service-tab:hover .svc-tab-icon {
  background: var(--brand);
  color: #fff;
}
.svc-tab-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 2px;
}
.svc-tab-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.svc-tab-sub {
  font-size: 11.5px;
  color: var(--muted);
}

/* Panels */
.service-panel {
  display: none;
}
.service-panel.active {
  display: block;
  animation: panelFadeIn 0.4s ease;
}
@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel-hero-img {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/7;
  margin-bottom: 28px;
}
.panel-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.82) 0%,
    transparent 55%
  );
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.panel-hero-img-overlay h2 {
  color: #fff;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 900;
  margin: 0;
}
.panel-header {
  margin-bottom: 18px;
}
.panel-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.panel-body p {
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* HVAC sub-cards grid */
.hvac-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.hvac-sub-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.hvac-sub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.hvac-sub-card:hover img {
  transform: scale(1.06);
}
.hvac-sub-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.88) 0%,
    transparent 50%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: background 0.35s;
}
.hvac-sub-card:hover .hvac-sub-overlay {
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.96) 0%,
    rgba(51, 137, 201, 0.22) 100%
  );
}
.hvac-sub-overlay h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
}
.hvac-sub-overlay p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s;
  margin: 0;
}
.hvac-sub-card:hover .hvac-sub-overlay p {
  max-height: 80px;
}

/* Nested accordions inside panels */
.panel-accordion {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pacc-item {
  border: 1.5px solid #dde6ef;
  border-radius: 10px;
  overflow: hidden;
}
.pacc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
}
.pacc-header:hover,
.pacc-item.open .pacc-header {
  background: rgba(51, 137, 201, 0.05);
}
.pacc-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(51, 137, 201, 0.1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 0.9rem;
  transition: all 0.25s;
}
.pacc-item.open .pacc-icon {
  background: var(--brand);
  color: #fff;
}
.pacc-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}
.pacc-arrow {
  color: var(--muted);
  transition: transform 0.3s;
}
.pacc-item.open .pacc-arrow {
  transform: rotate(180deg);
}
.pacc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.pacc-body-inner {
  padding: 14px 16px 18px 60px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}
html[dir="ltr"] .pacc-body-inner {
  padding: 14px 60px 18px 16px;
}

/* Mobile accordion (services) */
.service-mobile-acc {
  display: none;
}
.svc-mob-item {
  border: 1.5px solid #dde6ef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.svc-mob-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
}
.svc-mob-header:hover,
.svc-mob-item.open .svc-mob-header {
  background: rgba(51, 137, 201, 0.05);
}
.svc-mob-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--muted);
  transition: all 0.25s;
}
.svc-mob-item.open .svc-mob-icon {
  background: var(--brand);
  color: #fff;
}
.svc-mob-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}
.svc-mob-arrow {
  color: var(--muted);
  transition: transform 0.3s;
}
.svc-mob-item.open .svc-mob-arrow {
  transform: rotate(180deg);
}
.svc-mob-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.svc-mob-body-inner {
  padding: 16px 16px 20px;
}

/* Mobile services accordion – make text clear and full width */
@media (max-width: 1024px) {
  .service-mobile-acc {
    display: block;
  }
  .svc-mob-body-inner {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
  }
  .svc-mob-body-inner h4 {
    font-size: 18px;
    margin: 12px 0 8px;
  }
  .svc-mob-body-inner p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .svc-mob-body-inner .hvac-sub-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .svc-mob-body-inner .hvac-sub-card {
    aspect-ratio: 4/3;
  }
  .svc-mob-body-inner .hvac-sub-overlay h4 {
    font-size: 12px;
  }
  .svc-mob-body-inner .hvac-sub-overlay p {
    font-size: 10px;
  }
  .svc-mob-body-inner .panel-accordion .pacc-title {
    font-size: 14px;
  }
  .svc-mob-body-inner .btn-primary {
    font-size: 15px;
    padding: 12px;
  }
}

/* ══════════════════════════════════════
   PROJECTS PAGE
══════════════════════════════════════ */
.more-proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.proj-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(12, 30, 50, 0.07);
  transition: all 0.32s;
}
.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(12, 30, 50, 0.12);
}
.proj-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.proj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.proj-card:hover .proj-card-img img {
  transform: scale(1.05);
}
.proj-card-body {
  padding: 18px 20px;
  
}
.proj-tag {
  display: inline-block;
  background: rgba(51, 137, 201, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 7px;
}
.proj-card-body h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
  margin-top: 15px;
}
.proj-card-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ===============================++++++++=====++++++++======++++++++= */
.proj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.proj-tag {
  display: inline-block;
  background: rgba(51, 137, 201, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.proj-service-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 11px;

  /* أخف من 800 */
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;

  border: 1px solid rgba(34, 197, 94, 0.18);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover */
.proj-service-tag:hover {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25);
  cursor: pointer;
}

.proj-tag {
  display: inline-block;
  background: rgba(51, 137, 201, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.proj-tag:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(51, 137, 201, 0.25);
  cursor: pointer;
}
/* ===============================++++++++=====++++++++======++++++++= */



.portfolio-dark {
  background: var(--navy);
  padding: 72px 0;
}
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.port-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
  transition: all 0.3s;
}
.port-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(51, 137, 201, 0.3);
  transform: translateY(-3px);
}
.port-item-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.port-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.port-item span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ══════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 52px;
  align-items: start;
}
.info-card-c {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 14px rgba(12, 30, 50, 0.06);
  margin-bottom: 14px;
  transition: all 0.3s;
}
.info-card-c:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(51, 137, 201, 0.1);
}
.info-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(51, 137, 201, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.2rem;
  transition: all 0.3s;
}
.info-card-c:hover .info-card-icon {
  background: var(--brand);
  color: #fff;
}
.info-card-body h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.info-card-body p,
.info-card-body a {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.7;
  display: block;
  text-decoration: none;
}
.info-card-body a:hover {
  color: var(--brand);
}
.branch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.branch-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border-right: 3px solid var(--brand);
  box-shadow: 0 2px 10px rgba(12, 30, 50, 0.05);
}
html[dir="ltr"] .branch-card {
  border-right: none;
  border-left: 3px solid var(--brand);
}
.branch-badge {
  display: inline-block;
  background: rgba(51, 137, 201, 0.1);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 5px;
}
.branch-card h5 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.branch-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}


.contact-form-box {
  background: var(--soft);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 6px 36px rgba(12, 30, 50, 0.08);
}
.form-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #dde6ef;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(51, 137, 201, 0.12);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}
.form-error-msg {
  font-size: 11px;
  color: #ef4444;
  display: none;
}
.form-error-msg.show {
  display: block;
}
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(51, 137, 201, 0.35);
}
.btn-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}


/* ===================================================================================================== */
/* ============================================================
   CONTACT PAGE – حل المسافة بين الزر وآخر Input
   ============================================================ */

/* ===== نموذج التواصل ===== */
.contact-form-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(12, 30, 50, 0.06);
  border: 1px solid rgba(51, 137, 201, 0.04);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-box:hover {
  box-shadow: 0 16px 60px rgba(12, 30, 50, 0.08);
}

/* جعل النموذج يمتد للمساحة المتاحة */
.contact-form-box form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* دفع الزر إلى أسفل النموذج */
.contact-form-box .form-submit {
  margin-top: auto;
  margin-bottom: 0;
}

/* ===== شارات الثقة (فوق النموذج) ===== */
.trust-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(51, 137, 201, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(51, 137, 201, 0.06);
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.trust-badges span i {
  color: var(--brand);
  font-size: 13px;
}

/* ===== روابط أسفل النموذج (تصميم احترافي) ===== */
.form-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px solid var(--soft);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.footer-link:hover {
  color: var(--brand);
  background: rgba(51, 137, 201, 0.06);
  transform: translateY(-1px);
}

.footer-link i {
  font-size: 14px;
}

.footer-link span {
  font-weight: 500;
}

/* ===== تحسينات إضافية ===== */
.form-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.form-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .contact-form-box {
    padding: 24px 18px;
  }

  .trust-badges {
    gap: 10px;
    padding: 10px 14px;
  }

  .trust-badges span {
    font-size: 11px;
  }

  .form-footer-links {
    gap: 14px;
    flex-wrap: wrap;
  }

  .footer-link {
    font-size: 11px;
    padding: 4px 6px;
  }

  .footer-link i {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .contact-form-box {
    padding: 18px 14px;
  }

  .form-title {
    font-size: 18px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
  }

  .form-footer-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .footer-link {
    font-size: 12px;
  }
}

/* ===== SOCIAL ICONS – التصميم الأصلي ===== */

.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--soft, #f7fafc);
  border: 1.5px solid #dde6ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #66778a);
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* TikTok */
.social-tiktok:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* LinkedIn */
.social-linkedin:hover {
  background: #0077b5;
  color: #fff;
  border-color: #0077b5;
}

/* Instagram */
.social-instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: #bc1888;
}

/* WhatsApp */
.social-whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

/* Email */
.social-email:hover {
  background: var(--brand, #3389c9);
  color: #fff;
  border-color: var(--brand, #3389c9);
}


/* ========================================
   PREMIUM CONTACT SECTION REDESIGN
======================================== */

.contact-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:40px;
    align-items:start;
}

.contact-info-column,
.contact-form-box{
    position:relative;
}

.contact-form-box,
.map-card,
.branch-card{
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(14px);
    border:1px solid rgba(51,137,201,.08);
    box-shadow:
        0 20px 50px rgba(15,23,42,.08),
        0 4px 12px rgba(15,23,42,.04);
}

/* =====================
   MAP CARD
===================== */

.map-card{
    overflow:hidden;
    border-radius:28px;
    transition:.4s;
}

.map-card:hover{
    transform:translateY(-6px);
    box-shadow:
        0 28px 60px rgba(15,23,42,.12),
        0 10px 20px rgba(15,23,42,.08);
}

.map-header{
    padding:28px 28px 18px;
}

.map-header h3{
    font-size:24px;
    font-weight:800;
    color:var(--navy);
    margin:12px 0;
}

.map-header p{
    color:var(--muted);
    line-height:1.8;
}

.map-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 16px;
    border-radius:999px;
    background:rgba(51,137,201,.08);
    color:var(--brand);
    font-weight:700;
}

.map-wrapper{
    padding:0 20px;
}

.map-wrapper iframe{
    border-radius:18px !important;
}

.map-footer{
    padding:20px 28px 28px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

/* =====================
   BRANCHES
===================== */

.branch-cards{
    display:grid;
    gap:16px;
}

.branch-card{
    padding:22px;
    border-radius:22px;
    transition:.35s;
}

.branch-card:hover{
    transform:translateY(-5px);
    border-color:rgba(51,137,201,.25);
}

.branch-card h5{
    font-size:20px;
    color:var(--navy);
    margin:12px 0 8px;
}

.branch-card p{
    color:var(--muted);
    line-height:1.8;
}

.branch-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 14px;
    border-radius:999px;
    background:rgba(51,137,201,.08);
    color:var(--brand);
    font-weight:700;
    font-size:12px;
}

/* =====================
   SOCIALS
===================== */

.social-icons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.social-icon{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#fff;
    border:1px solid rgba(0,0,0,.05);
    font-size:20px;
    transition:.35s;
    box-shadow:0 10px 25px rgba(15,23,42,.05);
}

.social-icon:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 30px rgba(51,137,201,.18);
}

/* =====================
   FORM CARD
===================== */

.contact-form-box{
    border-radius:32px;
    padding:36px;
}

.form-title{
    font-size:30px;
    font-weight:800;
    color:var(--navy);
    margin-bottom:10px;
}

.form-sub{
    color:var(--muted);
    margin-bottom:24px;
}

/* =====================
   TRUST BADGES
===================== */

.trust-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.trust-badges span{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:999px;
    background:rgba(51,137,201,.08);
    color:var(--navy);
    font-size:13px;
    font-weight:700;
}

.trust-badges i{
    color:var(--brand);
}

/* =====================
   FORM FIELDS
===================== */

.form-group label{
    font-weight:700;
    color:var(--navy);
    margin-bottom:10px;
    display:block;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border-radius:16px;
    border:1px solid rgba(15,23,42,.08);
    background:#fff;
    padding:15px 18px;
    transition:.3s;
    font-size:15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:var(--brand);
    box-shadow:0 0 0 5px rgba(51,137,201,.12);
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

/* =====================
   SUBMIT BUTTON
===================== */

.form-submit{
    width:100%;
    border:none;
    border-radius:18px;
    padding:18px;
    font-size:16px;
    font-weight:800;
    letter-spacing:.3px;
    transition:.35s;
    box-shadow:0 14px 30px rgba(51,137,201,.25);
}

.form-submit:hover{
    transform:translateY(-3px);
    box-shadow:0 22px 40px rgba(51,137,201,.35);
}

/* =====================
   FOOTER LINKS
===================== */

.form-footer-links{
    margin-top:28px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.footer-link{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px;
    border-radius:16px;
    background:rgba(51,137,201,.05);
    transition:.3s;
}

.footer-link:hover{
    background:rgba(51,137,201,.10);
    transform:translateY(-3px);
}

/* =====================
   MOBILE
===================== */

@media(max-width:992px){

    .contact-grid{
        grid-template-columns:1fr;
    }

    .contact-form-box{
        padding:28px;
    }

    .form-row{
        grid-template-columns:1fr;
    }

    .form-footer-links{
        grid-template-columns:1fr;
    }

    .map-footer{
        flex-direction:column;
        align-items:flex-start;
    }
}


/* ============================================================
   CONTACT – ترتيب الموبايل (الفورم أولاً)
   ============================================================ */

/* تأكد من أن الحاوية تستخدم Grid مع إمكانية إعادة الترتيب */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

/* على الشاشات التي يقل عرضها عن 1024px (تابلت وجوال) */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;     /* عمود واحد */
    gap: 40px;
  }

  /* جعل الفورم في الأعلى (order: 1) والمعلومات في الأسفل (order: 2) */
  .contact-form-wrapper {
    order: 1;
  }

  .contact-info-column {
    order: 2;
  }
  .trust-badges{
    display:none;
  }
}

/* تحسين إضافي للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .contact-grid {
    gap: 28px;
  }

}
/* ============================================================
   CONTACT SECTION – PREMIUM REDESIGN
   ============================================================ */

/* ===== خلفيات وزخارف ===== */
.contact-bg-ornament {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.contact-bg-ornament-1 {
  width: 500px;
  height: 500px;
  top: -250px;
  right: -150px;
  background: radial-gradient(circle, rgba(51, 137, 201, 0.05), transparent 70%);
}

.contact-bg-ornament-2 {
  width: 350px;
  height: 350px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(51, 137, 201, 0.04), transparent 70%);
}

.contact-bg-ornament-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(51, 137, 201, 0.03), transparent 70%);
}

html[dir="rtl"] .contact-bg-ornament-1 {
  right: auto;
  left: -150px;
}

html[dir="rtl"] .contact-bg-ornament-2 {
  left: auto;
  right: -100px;
}

html[dir="rtl"] .contact-bg-ornament-3 {
  left: auto;
  right: 30%;
}

/* ===== Grid الرئيسي ===== */
.contact-premium-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ===== العمود الأيسر ===== */
.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== الهيدر ===== */
.premium-header {
  margin-bottom: 8px;
}

.premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.premium-eyebrow i {
  font-size: 14px;
}

.premium-divider {
  width: 48px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 10px 0 16px;
}

.premium-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.premium-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ===== بطاقة الخريطة ===== */
.map-card {
  background: #fff;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 4px 28px rgba(12, 30, 50, 0.06);
  border: 1px solid rgba(51, 137, 201, 0.06);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  margin-bottom: 24px;
}

.map-card:hover {
  box-shadow: 0 16px 56px rgba(12, 30, 50, 0.12);
  transform: translateY(-4px);
}

.map-card-inner {
  padding: 22px 24px 20px;
}

.map-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(51, 137, 201, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.map-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
}

.map-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.premium-map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: var(--soft);
}

.premium-map-wrapper iframe {
  width: 100%;
  height: 260px;
  display: block;
  border: none;
  transition: transform 0.6s ease;
}

.premium-map-wrapper iframe:hover {
  transform: scale(1.01);
}

.premium-map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(51, 137, 201, 0.06);
}

.premium-map-footer span {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.premium-map-footer span i {
  color: var(--brand);
}

.premium-direction-btn {
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 13px;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
}

.premium-direction-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(51, 137, 201, 0.35);
}

/* ===== الفروع ===== */
.branches-section {
  margin-top: 4px;
}

.branches-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branches-title i {
  color: var(--brand);
}

.premium-branch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.premium-branch-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  border-right: 4px solid var(--brand);
  box-shadow: 0 2px 16px rgba(12, 30, 50, 0.05);
  transition: all 0.3s ease;
}

html[dir="ltr"] .premium-branch-card {
  border-right: none;
  border-left: 4px solid var(--brand);
}

.premium-branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(51, 137, 201, 0.12);
}

.premium-branch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(51, 137, 201, 0.08);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.premium-branch-badge i {
  font-size: 9px;
}

.premium-branch-card h5 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 3px;
}

.premium-branch-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== السوشيال ميديا ===== */
.social-section {
  margin-top: 28px;
}

.social-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-title i {
  color: var(--brand);
}

.premium-social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.premium-social-icon {
  width: 42px;
  height: 42px;
  background: var(--soft);
  border: 1.5px solid #dde6ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.premium-social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.social-tiktok:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.social-linkedin:hover {
  background: #0077b5;
  color: #fff;
  border-color: #0077b5;
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.3);
}

.social-instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: #bc1888;
  box-shadow: 0 8px 24px rgba(188, 24, 136, 0.3);
}

.social-whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.social-email:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(51, 137, 201, 0.3);
}

/* ===== العمود الأيمن – نموذج التواصل ===== */
.contact-form-side {
  display: flex;
  align-items: stretch;
}

.premium-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 34px;
  box-shadow: 0 8px 40px rgba(12, 30, 50, 0.06);
  border: 1px solid rgba(51, 137, 201, 0.04);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.premium-form-card:hover {
  box-shadow: 0 16px 64px rgba(12, 30, 50, 0.1);
}

/* ===== رأس النموذج ===== */
.form-card-header {
  margin-bottom: 6px;
}

.form-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card-title i {
  color: var(--brand);
}

.form-card-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ===== شارات الثقة ===== */
.premium-trust-badges {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(51, 137, 201, 0.04), rgba(51, 137, 201, 0.01));
  border-radius: 12px;
  border: 1px solid rgba(51, 137, 201, 0.06);
}

.premium-trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 2px;
  color: var(--muted);
  font-weight: 600;
}

.premium-trust-badges span i {
  color: var(--brand);
  font-size: 13px;
}

/* ===== النموذج ===== */
.premium-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.premium-form-group {
  margin-bottom: 16px;
}

.premium-form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
}

.premium-form-group input,
.premium-form-group textarea,
.premium-form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid #e4eaf0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafcfe;
  color: var(--ink);
}

.premium-form-group input:focus,
.premium-form-group textarea:focus,
.premium-form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(51, 137, 201, 0.08);
  background: #fff;
}

.premium-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ===== زر الإرسال ===== */
.premium-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 24px rgba(51, 137, 201, 0.35);
  margin-top: auto;
}

.premium-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(51, 137, 201, 0.45);
}

.premium-submit-btn i {
  font-size: 16px;
}

/* ===== روابط أسفل النموذج ===== */
.premium-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(51, 137, 201, 0.06);
}

.premium-footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: default;
}

.premium-footer-link i {
  font-size: 14px;
}

.premium-footer-link i.fa-check-circle {
  color: #22c55e;
}

.premium-footer-link i.fa-lock,
.premium-footer-link i.fa-user-tie,
.premium-footer-link i.fa-phone {
  color: var(--brand);
}

.premium-footer-link span {
  font-weight: 500;
}

/* ===== تحسينات RTL ===== */
html[dir="rtl"] .premium-divider {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .premium-form-card .form-card-title i {
  margin-left: 8px;
  margin-right: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contact-premium-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .premium-map-wrapper iframe {
    height: 220px;
  }
}

@media (max-width: 700px) {
  .premium-form-card {
    padding: 24px 18px;
  }

  .premium-branch-cards {
    grid-template-columns: 1fr;
  }

  .premium-trust-badges {
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
  }

  .premium-footer-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .premium-map-wrapper iframe {
    height: 180px;
  }

  .map-card-inner {
    padding: 16px 18px 16px;
  }

  .premium-map-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .premium-submit-btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .form-card-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .premium-form-card {
    padding: 18px 14px;
  }

  .premium-title {
    font-size: 22px;
  }

  .premium-social-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .premium-trust-badges span {
    font-size: 11px;
  }

  .premium-footer-link {
    font-size: 11px;
    padding: 3px 6px;
  }

  .premium-footer-links {
    gap: 8px;
  }

  .premium-map-wrapper iframe {
    height: 150px;
  }
}
/* ===================================================================================================== */

/* ══════════════════════════════════════
   BLOG PAGE
══════════════════════════════════════ */
.blog-hero {
  background: var(--navy);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.blog-filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:36px;}
.filter-btn{padding:8px 18px;border-radius:999px;border:1.5px solid #dde6ef;font-size:12.5px;font-weight:700;cursor:pointer;background:#fff;color:var(--muted);transition:all .25s;}
.filter-btn.active,.filter-btn:hover{background:var(--brand);border-color:var(--brand);color:#fff;}
.blog-feat-card{display:grid;grid-template-columns:1.3fr 1fr;border-radius:20px;overflow:hidden;box-shadow:0 16px 60px rgba(12,30,50,.12);background:#fff;text-decoration:none;transition:transform .35s;}
.blog-feat-card:hover{transform:translateY(-5px);}
.blog-feat-img{position:relative;min-height:420px;overflow:hidden;}
.blog-feat-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s;}
.blog-feat-card:hover .blog-feat-img img{transform:scale(1.04);}
.blog-feat-cat-badge{position:absolute;top:22px;right:22px;background:var(--brand);color:#fff;font-size:11px;font-weight:800;letter-spacing:.08em;padding:6px 16px;border-radius:999px;}
html[dir="ltr"] .blog-feat-cat-badge{right:auto;left:22px;}
.blog-feat-body{padding:48px 44px;display:flex;flex-direction:column;justify-content:center;}
.blog-feat-meta{display:flex;align-items:center;gap:12px;margin-bottom:18px;font-size:12px;color:var(--muted);}
.blog-feat-meta .meta-dot{width:3px;height:3px;border-radius:50%;background:var(--muted);}
.blog-feat-body h2{font-size:clamp(20px,2.8vw,30px);font-weight:900;color:var(--navy);margin-bottom:14px;line-height:1.3;}
.blog-feat-body p{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:24px;}
.read-more{display:inline-flex;align-items:center;gap:8px;color:var(--brand);font-weight:700;font-size:14px;transition:gap .25s;}
.read-more:hover{gap:13px;}
.blog-masonry{columns:3;gap:22px;margin-top:40px;}
.blog-masonry-card{break-inside:avoid;margin-bottom:22px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 3px 18px rgba(12,30,50,.07);transition:all .32s;display:block;text-decoration:none;}
.blog-masonry-card:hover{transform:translateY(-5px);box-shadow:0 16px 48px rgba(12,30,50,.12);}
.blog-masonry-img{overflow:hidden;position:relative;}
.blog-masonry-img img{width:100%;display:block;transition:transform .5s;}
.blog-masonry-card:hover .blog-masonry-img img{transform:scale(1.05);}
.blog-masonry-cat{position:absolute;top:12px;right:12px;background:var(--brand);color:#fff;font-size:10px;font-weight:800;letter-spacing:.08em;padding:4px 12px;border-radius:999px;}
html[dir="ltr"] .blog-masonry-cat{right:auto;left:12px;}
.blog-masonry-body{padding:20px 22px 24px;}
.blog-masonry-meta{font-size:11.5px;color:var(--muted);margin-bottom:9px;display:flex;gap:10px;}
.blog-masonry-body h3{font-size:15.5px;font-weight:800;color:var(--navy);margin-bottom:8px;line-height:1.35;}
.blog-masonry-body p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:14px;}
.blog-card-link{display:inline-flex;align-items:center;gap:6px;color:var(--brand);font-size:13px;font-weight:700;transition:gap .2s;}
.blog-card-link:hover{gap:10px;}
.blog-stats-strip{background:var(--navy);padding:36px 0;}
.blog-stats-inner{display:flex;justify-content:center;gap:60px;flex-wrap:wrap;}
.blog-stat{text-align:center;}
.blog-stat strong{display:block;font-size:2.2rem;font-weight:900;color:var(--brand-light);}
.blog-stat span{font-size:12px;color:rgba(255,255,255,.6);font-weight:600;}

@media(max-width:900px){
  .blog-feat-card{grid-template-columns:1fr;}
  .blog-feat-img{min-height:280px;}
  .blog-masonry{columns:2;}
  .blog-feat-body{padding:28px 24px;}
}
@media(max-width:600px){
  .blog-masonry{columns:1;}
  .blog-stats-inner{gap:28px;}
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/bg4.webp") center/cover;
  opacity: 0.15;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 21, 36, 0.92),
    rgba(51, 137, 201, 0.18)
  );
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
}
.blog-hero-inner h1 {
  color: #fff;
  margin-bottom: 10px;
}
.blog-hero-inner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

/* Featured post — editorial large card */
.blog-featured {
  padding: 72px 0;
  background: #fff;
}

.blog-featured .container{
   margin-bottom: 35px;
}
.blog-feat-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(12, 30, 50, 0.12);
  background: #fff;
  transition: transform 0.35s;
}
.blog-feat-card:hover {
  transform: translateY(-4px);
}
.blog-feat-img {
  aspect-ratio: unset;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}
.blog-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.blog-feat-card:hover .blog-feat-img img {
  transform: scale(1.04);
}
.blog-feat-cat {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
html[dir="ltr"] .blog-feat-cat {
  right: auto;
  left: 20px;
}
.blog-feat-body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-feat-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}
.blog-feat-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}
.blog-feat-body h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}
.blog-feat-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
}
.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13.5px;
  transition: gap 0.25s;
}
.blog-read-link:hover {
  gap: 12px;
}

/* Grid of posts */
.blog-grid-section {
  padding: 60px 0 88px;
  background: var(--soft);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(12, 30, 50, 0.07);
  transition: all 0.32s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(12, 30, 50, 0.12);
}
.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.blog-card-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
html[dir="ltr"] .blog-card-cat {
  right: auto;
  left: 12px;
}
.blog-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
.blog-card-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 9px;
  line-height: 1.35;
  flex: 1;
}
.blog-card-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: auto;
  transition: gap 0.2s;
}
.blog-card-link:hover {
  gap: 10px;
}

/* Post detail page */
.post-hero{position:relative;height:500px;overflow:hidden;background:var(--navy);}
.post-hero img{width:100%;height:100%;object-fit:cover;opacity:.45;}
.post-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(7,21,36,.96) 0%,rgba(7,21,36,.3) 65%);}
.post-hero-content{position:absolute;bottom:0;left:0;right:0;padding:48px 0;}
.post-meta-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;}
.post-cat-pill{background:var(--brand);color:#fff;padding:5px 16px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.06em;}
.post-meta-item{display:flex;align-items:center;gap:5px;font-size:12.5px;color:rgba(255,255,255,.6);}
.post-meta-item i{color:var(--brand);}
.post-hero-content h1{font-size:clamp(22px,4vw,40px);font-weight:900;color:#fff;max-width:820px;line-height:1.25;}

.post-layout{display:grid;grid-template-columns:1fr 300px;gap:52px;padding:72px 0 96px;align-items:start;}
html[dir="ltr"] .post-layout{grid-template-columns:300px 1fr;}

.post-body h2{font-size:clamp(18px,2.5vw,24px);font-weight:800;color:var(--navy);margin:36px 0 12px;border-right:4px solid var(--brand);padding-right:14px;}
html[dir="ltr"] .post-body h2{border-right:none;border-left:4px solid var(--brand);padding-right:0;padding-left:14px;}
.post-body h3{font-size:17px;font-weight:700;color:var(--navy);margin:26px 0 10px;}
.post-body p{font-size:15px;color:#384a5e;line-height:1.9;margin-bottom:18px;}
.post-body img{width:100%;border-radius:14px;margin:28px 0;box-shadow:0 8px 32px rgba(12,30,50,.1);}
.post-body ul{margin:14px 0 20px;padding-right:20px;}
html[dir="ltr"] .post-body ul{padding-right:0;padding-left:20px;}
.post-body ul li{font-size:14.5px;color:#384a5e;line-height:1.8;margin-bottom:6px;position:relative;}
.post-body ul li::before{content:"▸";color:var(--brand);position:absolute;right:calc(-20px);font-size:12px;top:3px;}
html[dir="ltr"] .post-body ul li::before{right:auto;left:-20px;}
.highlight-box{background:rgba(51,137,201,.07);border-right:4px solid var(--brand);border-radius:8px;padding:20px 22px;margin:24px 0;}
html[dir="ltr"] .highlight-box{border-right:none;border-left:4px solid var(--brand);}
.highlight-box p{color:var(--navy);font-weight:600;font-size:14.5px;margin:0;}

/* Gallery inside post */
.post-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0;}
.post-gallery img{border-radius:10px;aspect-ratio:4/3;object-fit:cover;transition:transform .3s;cursor:pointer;}
.post-gallery img:hover{transform:scale(1.03);}

/* Share row */
.share-row{display:flex;align-items:center;gap:12px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:36px 0;}
.share-label{font-size:13px;font-weight:700;color:var(--muted);}
.share-btn{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff;transition:transform .2s;}
.share-btn:hover{transform:scale(1.1);}
.share-linkedin{background:#0077b5;}
.share-twitter{background:#000;}
.share-whatsapp{background:#25D366;}
.share-copy{background:var(--muted);cursor:pointer;}

/* Author card */
.author-card{background:var(--soft);border-radius:14px;padding:24px;display:flex;gap:18px;align-items:center;margin-top:36px;}
.author-avatar{width:64px;height:64px;border-radius:50%;background:var(--brand);display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff;flex-shrink:0;}
.author-info h4{font-size:15px;font-weight:800;color:var(--navy);margin-bottom:3px;}
.author-info p{font-size:13px;color:var(--muted);margin:0;}

/* Sidebar */
.post-sidebar{position:sticky;top:88px;display:flex;flex-direction:column;gap:20px;}
.sidebar-widget{background:var(--soft);border-radius:14px;padding:22px;}
.sidebar-widget h4{font-size:14px;font-weight:800;color:var(--navy);margin-bottom:14px;border-bottom:2px solid var(--brand);padding-bottom:8px;}
.toc-item{display:flex;align-items:flex-start;gap:8px;padding:7px 0;border-bottom:1px solid #edf3f8;cursor:pointer;}
.toc-item:last-child{border-bottom:none;}
.toc-num{width:22px;height:22px;background:rgba(51,137,201,.1);border-radius:50%;font-size:11px;font-weight:800;color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;}
.toc-item span{font-size:13px;color:var(--muted);line-height:1.4;transition:color .2s;}
.toc-item:hover span{color:var(--brand);}
.related-mini{display:flex;gap:12px;margin-bottom:12px;text-decoration:none;}
.related-mini:last-child{margin-bottom:0;}
.related-mini-img{width:68px;height:52px;flex-shrink:0;border-radius:8px;overflow:hidden;}
.related-mini-img img{width:100%;height:100%;object-fit:cover;}
.related-mini-info h5{font-size:12.5px;font-weight:700;color:var(--navy);margin-bottom:2px;line-height:1.35;}
.related-mini-info span{font-size:11px;color:var(--muted);}
.related-mini:hover h5{color:var(--brand);}
.tags-wrap{display:flex;flex-wrap:wrap;gap:7px;}
.tag-pill{background:rgba(51,137,201,.1);color:var(--brand);font-size:11.5px;font-weight:700;padding:5px 12px;border-radius:999px;transition:all .2s;cursor:pointer;}
.tag-pill:hover{background:var(--brand);color:#fff;}

@media(max-width:900px){
  .post-layout{grid-template-columns:1fr;}
  .post-sidebar{position:static;}
  .post-gallery{grid-template-columns:1fr 1fr;}
  .post-hero{height:360px;}
}

.post-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--navy);
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 21, 36, 0.95) 0%,
    rgba(7, 21, 36, 0.3) 60%
  );
}
.post-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 0;
  color: #fff;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.post-cat-badge {
  background: var(--brand);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.post-hero-content h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0;
  max-width: 820px;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 72px 0;
}
.post-body {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.85;
}
.post-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 12px;
}
.post-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}
.post-body p {
  margin-bottom: 18px;
}
.post-body img {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}
.post-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.post-gallery img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-gallery img:hover {
  transform: scale(1.02);
}
.post-sidebar {
  position: sticky;
  top: 88px;
}
.sidebar-widget {
  background: var(--soft);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.related-post-card {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
}
.related-post-card:last-child {
  margin-bottom: 0;
}
.related-post-img {
  width: 72px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.related-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-post-info h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.35;
}
.related-post-info span {
  font-size: 11px;
  color: var(--muted);
}
.related-post-card:hover h5 {
  color: var(--brand);
}



/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .intro-grid,
  .who-grid,
  .hse-grid,
  .contact-grid,
  .vm-grid,
  .blog-feat-card,
  .post-layout {
    grid-template-columns: 1fr;
  }
  .blog-feat-img {
    min-height: 300px;
  }
  .services-layout {
    grid-template-columns: 1fr;
  }
  .service-tabs-list {
    display: none;
  }
  .service-mobile-acc {
    display: block;
  }
  .service-panel {
    display: none !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
  .more-proj-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-list {
    grid-template-columns: 1fr 1fr;
  }
  .sp-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .sp-card.featured {
    grid-row: auto;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-cell:not(:last-child)::after {
    display: none;
  }
  .certs-iso-row {
    grid-template-columns: 1fr;
  }
  .certs-standard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .more-proj-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-list {
    grid-template-columns: 1fr;
  }
  .branch-cards {
    grid-template-columns: 1fr;
  }
  .hvac-sub-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-bar {
    flex-wrap: wrap;
  }
  .hero-stat-item {
    flex: 0 0 33.333%;
    max-width: none;
    padding: 14px 10px;
  }
  .hero-stat-divider {
    display: none;
  }
  .post-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero-stat-item {
    flex: 0 0 50%;
  }
  .sp-grid {
    grid-template-columns: 1fr;
  }
  .certs-standard-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* =========================================================
   SECTION & CONTAINER
   ========================================================= */
.section {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.section.navy {
  background: var(--navy);
  color: var(--white);
}
.section.navy h2,
.section.navy h3 {
  color: var(--white);
}

.section.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--section-bg, none) center / cover no-repeat;
  opacity: 0.12;
  transform: scale(1.04);
}
.section.navy.has-bg::after {
  background: linear-gradient(
    135deg,
    rgba(7, 21, 36, 0.96),
    rgba(7, 21, 36, 0.82)
  );
}
.section.has-bg > .container {
  position: relative;
  z-index: 1;
}


/* =========================================================
   SECTION HEADER (eyebrow + title + button)
   ========================================================= */
.eyebrow {
  color: #b8ddf7;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(15px, 1.6vw, 19px);
}
html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}

/* =========================================================
   PROJECT SHOWCASE — PREMIUM MAP SECTION
   ========================================================= */
.project-showcase {
  display: grid;
  gap: 48px;
}

.project-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
  background: linear-gradient(135deg, #060f1c 0%, #0a1929 60%, #0d2137 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(212, 175, 55, 0.08);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  position: relative;
}

.project-row::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.6) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-row:hover::before {
  opacity: 1;
}

.project-row:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.15);
}

.project-row:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}
.project-row:nth-child(even) .project-map {
  order: 2;
}

.project-map {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #071224 0%, #0c1f35 100%);
  overflow: hidden;
  border-inline-end: 1px solid rgba(212, 175, 55, 0.1);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(212, 175, 55, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.project-map img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.project-info {
  background: transparent;
  color: var(--white);
  border: none;
  box-shadow: none;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.project-info h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.project-info h3 img {
  width: 70px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)) brightness(1.1);
  border-radius: 6px;
}

.project-info p {
  color: rgba(190, 215, 240, 0.8);
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
}

.project-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-locations li {
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: rgba(230, 210, 150, 0.9);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.project-locations li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.8);
  margin-inline-end: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.project-locations li:hover,
.project-locations li.loc-item--hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
  color: #f0d98a;
  transform: translateY(-2px);
}

/* =========================================================
   MAP PINS
   ========================================================= */
.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 2.5px solid var(--white);
  box-shadow:
    0 0 0 6px rgba(51, 137, 201, 0.25),
    0 4px 10px rgba(7, 21, 36, 0.3);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  z-index: 10;
}
.pin:hover {
  transform: scale(1.4);
  background-color: #f0d98a;
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow:
    0 0 0 8px rgba(212, 175, 55, 0.25),
    0 0 0 16px rgba(212, 175, 55, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.4);
  z-index: 20;
}
.pin::after {
  content: attr(data-label);
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(7, 21, 36, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.pin:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  z-index: 150;
}
.pin.pin--hover,
.pin:hover {
  z-index: 50 !important;
  transform: scale(1.4);
  background-color: #f0d98a;
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow:
    0 0 0 8px rgba(212, 175, 55, 0.25),
    0 0 0 16px rgba(212, 175, 55, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   SCROLL REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS (mobile & tablet)
   ========================================================= */
@media (max-width: 1020px) {
  .project-row,
  .project-row:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .project-row:nth-child(even) .project-map {
    order: 0;
  }
}

@media (max-width: 720px) {
  .section-head {
    display: block;
  }
  .project-map {
    padding: 16px;
    border-inline-end: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }
  .project-map img {
    height: auto;
  }
  .project-locations {
    columns: 1;
  }
  .project-info {
    padding: 24px 20px;
  }
}
.site-header.menu-open .menu-toggle i:before {
  content: "\f00d";
}


/* ══════════════════════════════════════
   تعطيل الحركة الأفقية (Reveal) على الموبايل فقط
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  /* نلغي خاصية transform الأفقية، ونبقي فقط على تأثير الظهور (opacity) */
  .reveal-left,
  .reveal-right {
    transform: none !important; /* نلغي الانتقال من اليسار/اليمين */
    opacity: 0;
    transition: opacity 0.7s ease !important;
  }

  .reveal-left.visible,
  .reveal-right.visible {
    transform: none !important;
    opacity: 1;
  }
}


/* ============================================================
   FIX: HERO SECTION – SHORT SCREENS
   حل مشكلة زر "الملف التعريفي" على الشاشات القصيرة
   ============================================================ */

/* للشاشات التي يقل ارتفاعها عن 800px */
@media (max-height: 800px) {
  .hero-main-wrapper {
    padding-bottom: 130px; /* زيادة المساحة أسفل المحتوى */
    min-height: calc(100vh - 60px);
  }

  .hero .hero-content h1 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: clamp(13px, 1.4vw, 15px);
    margin-bottom: 20px;
    max-width: 560px;
  }

  .hero-cta-row {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-btn-primary,
  .hero-btn-outline,
  .hero-btn-ghost {
    font-size: 12px;
    padding: 10px 18px;
  }

  .hero-trust-row {
    padding: 8px 16px;
    gap: 8px;
  }

  .hero-trust-item {
    font-size: 11px;
  }

  .hero-trust-divider {
    height: 12px;
  }

  /* تقليل حجم شريط الإحصائيات */
  .hero-stats-bar {
    padding: 0 8px;
  }

  .hero-stat-item {
    padding: 10px 8px 14px;
    gap: 3px;
  }

  .hero-stat-item strong {
    font-size: clamp(16px, 2vw, 22px);
  }

  .hero-stat-item > span {
    font-size: 10px;
  }

  .hero-stat-icon {
    width: 24px;
    height: 24px;
  }

  .hero-stat-divider {
    margin: 8px 0;
  }
}

/* للشاشات القصيرة جداً (ارتفاع أقل من 650px) */
@media (max-height: 650px) {
  .hero-main-wrapper {
    padding-bottom: 140px;
    min-height: calc(100vh - 56px);
  }

  .hero .hero-content h1 {
    font-size: clamp(22px, 3.5vw, 30px);
    margin-bottom: 8px;
  }

  .hero-lead {
    font-size: 12px;
    margin-bottom: 14px;
    max-width: 480px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 14px;
    margin-bottom: 14px;
  }

  .hero-cta-row {
    gap: 6px;
    margin-bottom: 14px;
  }

  .hero-btn-primary,
  .hero-btn-outline,
  .hero-btn-ghost {
    font-size: 11px;
    padding: 8px 14px;
  }

  .hero-btn-primary i,
  .hero-btn-outline i,
  .hero-btn-ghost i {
    font-size: 12px;
  }

  .hero-trust-row {
    padding: 6px 12px;
    gap: 6px;
  }

  .hero-trust-item {
    font-size: 10px;
  }

  .hero-trust-item i {
    font-size: 11px;
  }

  .hero-trust-divider {
    height: 10px;
  }

  .hero-stat-item {
    padding: 6px 6px 10px;
    gap: 2px;
  }

  .hero-stat-item strong {
    font-size: clamp(14px, 1.6vw, 18px);
  }

  .hero-stat-item > span {
    font-size: 9px;
  }

  .hero-stat-icon {
    width: 20px;
    height: 20px;
  }

  .hero-stat-divider {
    margin: 4px 0;
  }

  /* إخفاء بعض العناصر الزخرفية في الشاشات القصيرة جداً لتوفير مساحة */
  .hero-bg-circle,
  .hero-icon,
  .hero-orb,
  .hero-ring-3 {
    display: none;
  }

  .hero-particle-3,
  .hero-particle-4 {
    display: none;
  }
}

/* للشاشات القصيرة جداً جداً (ارتفاع أقل من 550px) */
@media (max-height: 550px) {
  .hero-main-wrapper {
    padding-bottom: 150px;
    min-height: calc(100vh - 50px);
  }

  .hero .hero-content h1 {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 6px;
  }

  .hero-lead {
    font-size: 11px;
    margin-bottom: 10px;
    max-width: 400px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .hero-cta-row {
    gap: 4px;
    margin-bottom: 10px;
  }

  .hero-btn-primary,
  .hero-btn-outline,
  .hero-btn-ghost {
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 6px;
  }

  .hero-btn-primary i,
  .hero-btn-outline i,
  .hero-btn-ghost i {
    font-size: 10px;
  }

  .hero-trust-row {
    padding: 4px 10px;
    gap: 4px;
    border-radius: 999px;
  }

  .hero-trust-item {
    font-size: 9px;
  }

  .hero-trust-item i {
    font-size: 10px;
  }

  .hero-trust-divider {
    height: 8px;
  }

  .hero-stat-item {
    padding: 4px 4px 8px;
    gap: 1px;
  }

  .hero-stat-item strong {
    font-size: clamp(12px, 1.2vw, 16px);
  }

  .hero-stat-item > span {
    font-size: 8px;
  }

  .hero-stat-icon {
    width: 16px;
    height: 16px;
  }

  /* إخفاء جميع العناصر الزخرفية */
  .hero-ring,
  .hero-particle,
  .hero-bg-circle,
  .hero-icon,
  .hero-orb {
    display: none;
  }

  .hero-logo-watermark {
    display: none;
  }
}

/* تحسين العرض على الشاشات الأفقية (Landscape) للجوال */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-main-wrapper {
    padding-bottom: 140px;
    min-height: calc(100vh - 48px);
    display: none;
  }

  .hero .hero-content {
    max-width: 70%;
  }

  .hero .hero-content h1 {
    font-size: clamp(18px, 3vw, 26px);
  }

  .hero-lead {
    font-size: 11px;
    max-width: 90%;
  }

  .hero-cta-row {
    gap: 6px;
  }

  .hero-btn-primary,
  .hero-btn-outline,
  .hero-btn-ghost {
    font-size: 10px;
    padding: 6px 12px;
  }

  .hero-trust-row {
    padding: 4px 10px;
  }

  .hero-trust-item {
    font-size: 9px;
  }

  /* إخفاء الزخارف في الوضع الأفقي */
  .hero-ring,
  .hero-particle,
  .hero-bg-circle,
  .hero-icon,
  .hero-orb {
    display: none;
  }
}


/* حجم اللوجو على سطح المكتب */
.brand img {
  height: 40px;
  width: auto;
}

/* حجم اللوجو على الموبايل */
@media (max-width: 900px) {
  .brand img {
    height: 25px;
    width: auto;
  }
}


/* ============================================================
   EMPTY STATE – عرض احترافي عند عدم وجود محتوى
   ============================================================ */

/* ============================================================
   EMPTY STATE – متجاوب مع CSS Columns
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 24px;
  border: 1px solid rgba(51, 137, 201, 0.08);
  box-shadow: 0 4px 20px rgba(7, 21, 36, 0.04);
  transition: all 0.3s ease;
  min-height: 280px;
  width: 100%;
  gap: 12px;

  /* منع التقطيع عبر الأعمدة */
  break-inside: avoid;
  page-break-inside: avoid;
  column-span: all; /* يجعل العنصر يمتد على كامل عرض الحاوية */
}

.empty-state i {
  font-size: 56px;
  color: var(--brand-light, #5aaae0);
  opacity: 0.3;
  margin-bottom: 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.empty-state:hover i {
  opacity: 0.5;
  transform: scale(1.05) translateY(-4px);
}

.empty-state h4 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy, #071524);
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.empty-state p {
  font-size: 15px;
  color: var(--muted, #66778a);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* ===== تنسيق خاص داخل شبكة الماسونية (CSS Columns) ===== */
.blog-masonry .empty-state {
  margin: 20px auto;
  max-width: 600px;
  grid-column: 1 / -1; /* احتياطي لو استخدمنا Grid */
}

/* ===== تنسيق خاص داخل العنصر المميز ===== */
#featuredContainer .empty-state,
#featured-post .empty-state {
  margin: 0;
  min-height: 240px;
}

/* ===== استجابة للشاشات الصغيرة ===== */
@media (max-width: 768px) {
  .empty-state {
    padding: 40px 16px;
    min-height: 200px;
    border-radius: 16px;
    column-span: none; /* لا داعي للامتداد على الشاشات الصغيرة */
  }

  .empty-state i {
    font-size: 42px;
  }

  .empty-state h4 {
    font-size: 18px;
  }

  .empty-state p {
    font-size: 13px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .empty-state {
    padding: 30px 14px;
    min-height: 160px;
  }

  .empty-state i {
    font-size: 32px;
  }

  .empty-state h4 {
    font-size: 16px;
  }

  .empty-state p {
    font-size: 12px;
  }
}