/* TIE Premium V7 — focused correction pass */

/* ── Typography — Exclusive Lama Sans Suite (User Provided) ── */
@font-face {
  font-family: 'Lama Sans';
  src: url('/assets/fonts/LamaSans-Regular.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans';
  src: url('/assets/fonts/LamaSans-Medium.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans';
  src: url('/assets/fonts/LamaSans-SemiBold.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans';
  src: url('/assets/fonts/LamaSans-Bold.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans';
  src: url('/assets/fonts/LamaSans-ExtraBold.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans';
  src: url('/assets/fonts/LamaSans-Black.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans';
  src: url('/assets/fonts/LamaSans-ExtraBoldItalic.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-ExtraBoldItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Backward compatibility aliases mapping to the new Lama Sans files */
@font-face {
  font-family: 'Lama Sans Expanded';
  src: url('/assets/fonts/LamaSans-Bold.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans Expanded';
  src: url('/assets/fonts/LamaSans-ExtraBold.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans Expanded';
  src: url('/assets/fonts/LamaSans-Regular.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lama Sans Expanded';
  src: url('/assets/fonts/LamaSans-SemiBold.woff2') format('woff2'),
       url('/assets/fonts/LamaSans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Global alignment / typography ---------- */
:root {
  --container: 1280px;
  --font-sans: 'Lama Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Lama Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --font: var(--font-sans);
}

html, body, * {
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6, .hero-title, .hero-line, .display, .page-hero h1 {
  font-family: var(--font-sans) !important;
}

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section > .container,
.page-hero > .container,
.hero > .container { margin-inline: auto; }
.section-head { max-width: 900px; }

/* ---------- HERO: centered, two-line, no ecosystem strip ---------- */
.home .hero { min-height: 640px; padding-block: clamp(130px, 15vh, 160px) 70px; display:flex; align-items:center; position:relative; overflow:hidden; }
.home .hero-inner { text-align:center; display:flex; flex-direction:column; align-items:center; position:relative; z-index:2; width:100%; max-width:1160px; margin-inline:auto; }
.home .hero .eyebrow { margin-inline:auto; margin-bottom:12px; position:relative; z-index:10; }
.home .hero-title-wrap { position:relative; width:100%; max-width:1100px; margin: 12px auto 20px; z-index:10; }
.home .hero h1,
.home .hero .hero-title {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: -.03em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home .hero h1 .hero-line,
.home .hero h1 .hero-line-1,
.home .hero h1 .hero-line-2 {
  display: block;
  white-space: nowrap;
}
.home .hero h1 .hero-line-1 {
  color: var(--text);
}
.home .hero h1 .hero-line-2 {
  background: linear-gradient(135deg, #FF4606 0%, #FF7A45 50%, #E02E00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
:root[data-theme="light"] .home .hero h1 .hero-line-2 {
  background: linear-gradient(135deg, #E02E00 0%, #FF4606 60%, #B82200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home .hero .lead { max-width:720px; margin-inline:auto; font-size:clamp(1rem,1.3vw,1.15rem); line-height:1.7; margin-bottom:28px; position:relative; z-index:10; }
.home .hero-ctas { justify-content:center; margin-top:0; position:relative; z-index:10; }
.home .hero-ecosystem { display:none !important; }

/* Floating Capability Badges Stage: Framed Around Perimeter, Never Under Navbar or On Text */
.hero-floating-stage {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: 1440px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

[dir="rtl"] .hero-floating-stage {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.hero-float-badge {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  user-select: none;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  background: rgba(18, 22, 34, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F3F4F6;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .hero-float-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 24, 40, 0.14);
  color: #111827;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.09), 0 2px 6px rgba(16, 24, 40, 0.04);
}

.hero-float-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 70, 6, 0.7);
  flex-shrink: 0;
}

.hero-float-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 0.95rem;
  line-height: 1;
}

.hero-float-badge .badge-icon svg {
  width: 16px;
  height: 16px;
}

.hero-float-badge:hover {
  transform: scale(1.06) translateY(-3px) !important;
  border-color: rgba(255, 70, 6, 0.6);
  box-shadow: 0 20px 40px rgba(255, 70, 6, 0.22);
  color: var(--orange);
}

/* Coordinates in LTR (Top badges clamped safely ~50px below the 68px floating navbar) */
.badge-tl {
  top: clamp(140px, 22%, 180px);
  left: 2.5% !important;
  right: auto !important;
  animation: floatBadge1 7.2s ease-in-out infinite alternate;
}
.badge-bl {
  top: clamp(480px, 72%, 560px);
  left: 3.5% !important;
  right: auto !important;
  animation: floatBadge3 8.4s ease-in-out infinite alternate;
}
.badge-tr {
  top: clamp(140px, 22%, 180px);
  right: 2.5% !important;
  left: auto !important;
  animation: floatBadge4 8.0s ease-in-out infinite alternate;
}
.badge-br {
  top: clamp(480px, 72%, 560px);
  right: 3.5% !important;
  left: auto !important;
  animation: floatBadge6 7.6s ease-in-out infinite alternate;
}

/* Explicit Coordinates in RTL Arabic ([dir="rtl"]) */
[dir="rtl"] .badge-tl {
  right: 2.5% !important;
  left: auto !important;
}
[dir="rtl"] .badge-bl {
  right: 3.5% !important;
  left: auto !important;
}
[dir="rtl"] .badge-tr {
  left: 2.5% !important;
  right: auto !important;
}
[dir="rtl"] .badge-br {
  left: 3.5% !important;
  right: auto !important;
}

/* Hide mid-badges to eliminate clutter and prevent collisions */
.badge-ml,
.badge-mr {
  display: none !important;
}

@keyframes floatBadge1 {
  0% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(4px, -6px) rotate(-0.5deg); }
  100% { transform: translate(-3px, 5px) rotate(-3deg); }
}
@keyframes floatBadge3 {
  0% { transform: translate(0, 0) rotate(-1.5deg); }
  50% { transform: translate(4px, -5px) rotate(0.5deg); }
  100% { transform: translate(-3px, 6px) rotate(-2.5deg); }
}
@keyframes floatBadge4 {
  0% { transform: translate(0, 0) rotate(2deg); }
  50% { transform: translate(-4px, -6px) rotate(0.5deg); }
  100% { transform: translate(3px, 5px) rotate(3deg); }
}
@keyframes floatBadge6 {
  0% { transform: translate(0, 0) rotate(1.5deg); }
  50% { transform: translate(-5px, -6px) rotate(2.5deg); }
  100% { transform: translate(4px, 4px) rotate(0.5deg); }
}

@media (max-width: 1200px) {
  .hero-floating-stage {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .home .hero h1,
  .home .hero .hero-title {
    font-size: clamp(1.9rem, 6.5vw, 2.75rem);
    line-height: 1.22;
  }
  .home .hero h1 .hero-line,
  .home .hero h1 .hero-line-1,
  .home .hero h1 .hero-line-2 {
    white-space: normal;
  }
}

:root[data-theme="light"] .home .hero { background:transparent; }
:root[data-theme="light"] .home .hero h1 { color:#17122d; }

/* ---------- CORE CAPABILITIES: vertical service list + wide readable detail ---------- */
.home .capability-showcase .container {
  display:grid;
  grid-template-columns: 330px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:clamp(38px,5.5vw,76px);
  align-items:stretch;
}
.home .capability-showcase .section-head { grid-column:1/-1; margin-bottom:36px; }
.home .capability-showcase .capability-tabs {
  grid-column:1; grid-row:2;
  width:100%; height:max-content;
  margin:0; padding:10px;
  display:flex; flex-direction:column; gap:8px;
  border:1px solid var(--glass-edge);
  border-radius:24px;
  background:rgba(255,255,255,.035);
  overflow:visible;
}
.home .capability-showcase .capability-tab {
  width: 100%;
  min-height: 64px;
  padding: 16px 22px;
  border-radius: 16px;
  text-align: start;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.home .capability-showcase .capability-tab::before {
  content: attr(data-index);
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-inline-end: 4px;
}
:root[data-theme="light"] .home .capability-showcase .capability-tab::before {
  background: rgba(0, 0, 0, 0.05);
  color: #64748B;
}
.home .capability-showcase .capability-tab::after {
  content: '→' !important;
  position: static !important; /* In normal flex flow, NEVER overlap text */
  inset-inline-end: auto !important;
  left: auto !important;
  right: auto !important;
  margin-inline-start: auto !important; /* Firmly anchored at far end of tab */
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.45;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}
[dir="rtl"] .home .capability-showcase .capability-tab::after {
  content: '←' !important;
}
.home .capability-showcase .capability-tab.active {
  color: #fff !important;
  background: linear-gradient(110deg, #C91F2A, #FF4606) !important;
  box-shadow: 0 12px 28px -14px rgba(255, 70, 6, 0.7) !important;
  border-color: rgba(255, 70, 6, 0.3) !important;
}
.home .capability-showcase .capability-tab.active::before {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.22) !important;
}
.home .capability-showcase .capability-tab.active::after {
  color: #fff !important;
  opacity: 1 !important;
  transform: translateX(4px);
}
[dir="rtl"] .home .capability-showcase .capability-tab.active::after {
  transform: translateX(-4px);
}
.home .capability-showcase .capability-feature[hidden],
.capability-feature[hidden] {
  display: none !important;
}
.home .capability-showcase .capability-feature {
  grid-column: 2;
  grid-row: 2;
  min-height: 320px;
  height: 100%;
  padding: clamp(34px, 4.2vw, 58px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 70, 6, 0.025));
}
.home .capability-showcase .capability-feature:not([hidden]) {
  display: grid !important;
  animation: capFadeIn 0.35s ease forwards;
}
@keyframes capFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.home .capability-showcase .capability-feature-copy { max-width: 900px; }
.home .capability-showcase .capability-kicker { margin-bottom: 12px; }
.home .capability-showcase .capability-feature h3 {
  max-width: 850px; margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.04em;
}
.home .capability-showcase .capability-feature p { max-width: 820px; font-size: 1.03rem; line-height: 1.8; }
.home .capability-showcase .capability-feature-index { font-size: 2.2rem; line-height: 1; padding-top: 3px; }
.home .capability-showcase .capability-feature-link,
.capability-feature-link {
  width: auto !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 1px solid var(--glass-edge) !important;
  background: var(--glass) !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.25s var(--ease) !important;
  align-self: end;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.capability-feature-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange) !important;
  font-size: 1.05rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.capability-feature-link:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(255, 70, 6, 0.45);
}
.capability-feature-link:hover span {
  color: #FFFFFF !important;
  transform: translate(2px, -2px);
}
[dir="rtl"] .capability-feature-link:hover span {
  transform: translate(-2px, -2px);
}
:root[data-theme="light"] .home .capability-showcase .capability-tabs { background: #F6F7F9; border-color: #E2E6EA; }
:root[data-theme="light"] .home .capability-showcase .capability-feature { background: #fff; border-color: #E1E5EA; box-shadow: 0 24px 60px -44px rgba(16, 24, 40, 0.3); }
:root[data-theme="light"] .capability-feature-link {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}
:root[data-theme="light"] .capability-feature-link:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #FFFFFF !important;
}

/* ---------- DELIVERY METHODOLOGY: Premium Modular Step Cards ---------- */
.home .steps-timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  padding-top: 10px;
}
.home .steps-timeline-grid::before {
  display: none !important;
}
.home .step-item-card {
  position: relative;
  z-index: 1;
  min-height: 250px;
  padding: 28px 22px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.home .step-item-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 70, 6, 0.45);
  box-shadow: 0 20px 45px -12px rgba(255, 70, 6, 0.22);
}
.home .step-header {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.home .step-header .card-icon {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px;
  border-radius: 14px;
  background: rgba(255, 70, 6, 0.1) !important;
  border: 1px solid rgba(255, 70, 6, 0.25) !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}
.home .step-item-card:hover .card-icon {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
}
.home .step-header .card-icon svg {
  display: none !important;
}
.home .step-header .card-icon::before {
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.home .step-item-card:hover .card-icon::before {
  color: #FFFFFF !important;
}
.home .step-item-card:nth-child(1) .card-icon::before { content: '01'; }
.home .step-item-card:nth-child(2) .card-icon::before { content: '02'; }
.home .step-item-card:nth-child(3) .card-icon::before { content: '03'; }
.home .step-item-card:nth-child(4) .card-icon::before { content: '04'; }
.home .step-item-card:nth-child(5) .card-icon::before { content: '05'; }
.home .step-badge {
  display: none;
}
.home .step-item-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}
.home .step-item-card p {
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--text-2);
  margin: 0;
  max-width: none;
}
:root[data-theme="light"] .home .step-item-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 10px 30px -12px rgba(16, 24, 40, 0.08);
}
:root[data-theme="light"] .home .step-item-card:hover {
  border-color: rgba(255, 70, 6, 0.5);
  box-shadow: 0 18px 40px -12px rgba(255, 70, 6, 0.2);
}
:root[data-theme="light"] .home .step-header .card-icon {
  background: rgba(255, 70, 6, 0.08) !important;
  border-color: rgba(255, 70, 6, 0.2) !important;
}

/* ---------- WHY TIE: exactly four, equal, balanced ---------- */
.home .why-tie-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; align-items:stretch; }
.home .why-tie-card { min-height:250px; padding:28px 24px; border-radius:22px; }
.home .why-tie-card .card-icon { margin-bottom:10px; }
.home .why-tie-card h3 { font-size:1.05rem; line-height:1.35; }
.home .why-tie-card p { font-size:.87rem; line-height:1.7; }

/* ---------- Light mode: premium, less haze, stronger hierarchy ---------- */
:root[data-theme="light"] body { background:#FBFCFD; color:#101828; }
:root[data-theme="light"] .section-alt { background:#F7F9FB; }
:root[data-theme="light"] .card,
:root[data-theme="light"] .glass,
:root[data-theme="light"] .why-tie-card,
:root[data-theme="light"] .odoo-spotlight,
:root[data-theme="light"] .capability-feature {
  background:#fff; border-color:#E5E7EB; box-shadow:0 20px 50px -42px rgba(16,24,40,.28);
}
:root[data-theme="light"] .card:hover,
:root[data-theme="light"] .why-tie-card:hover { box-shadow:0 26px 60px -40px rgba(16,24,40,.28); }

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  .home .capability-showcase .container { grid-template-columns:240px minmax(0,1fr); }
  .home .why-tie-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home .steps-timeline-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:38px 0; }
  .home .steps-timeline-grid::before { display:none; }
}
@media(max-width:760px){
  .container { width:min(100% - 32px,var(--container)); }
  .home .hero { min-height:auto; padding-block:115px 48px; }
  .home .hero h1 { font-size:clamp(1.8rem, 7vw, 2.4rem) !important; }
  .home .hero h1 .hero-line,
  .home .hero h1 .hero-line-1,
  .home .hero h1 .hero-line-2 {
    white-space: normal !important;
    word-break: normal !important;
  }
  .home .capability-showcase .container { display:block; }
  .home .capability-showcase .capability-tabs { margin-bottom:14px; }
  .home .capability-showcase .capability-feature { display:grid; grid-template-columns:42px minmax(0,1fr); min-height:0; padding:28px 24px; }
  .home .capability-showcase .capability-feature-link { grid-column:2; justify-self:start; }
  .home .steps-timeline-grid { grid-template-columns:1fr; gap:22px; }
  .home .step-item-card { padding:0; }
  .home .step-item-card p { max-width:none; }
  .home .why-tie-grid { grid-template-columns:1fr; }
}

/* ---------- PREMIUM ENTERPRISE ERP PRACTICE SHOWCASE ---------- */
.home .odoo-section {
  padding-block: clamp(48px, 6vw, 80px);
}

.home .odoo-spotlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(32px, 4.5vw, 56px);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 70, 6, 0.02) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .home .odoo-spotlight {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F6 100%);
  border-color: #E2E6EA;
  box-shadow: 0 24px 60px -30px rgba(16, 24, 40, 0.12);
}

.home .odoo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home .odoo-copy .eyebrow {
  margin-bottom: 14px;
}

.home .odoo-copy h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  max-width: 620px;
}

.home .odoo-copy .lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 24px;
  max-width: 580px;
}

.home .odoo-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.home .odoo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 70, 6, 0.08);
  border: 1px solid rgba(255, 70, 6, 0.22);
  color: var(--orange);
}

:root[data-theme="light"] .home .odoo-badge-pill {
  background: #FFF1EB;
  border-color: rgba(255, 70, 6, 0.25);
  color: #D83B01;
}

.home .odoo-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.home .odoo-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
}

.home .odoo-point-card {
  padding: 22px 20px;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

:root[data-theme="light"] .home .odoo-point-card {
  background: #FFFFFF;
  border-color: #E6E9EE;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.home .odoo-point-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 70, 6, 0.4);
  box-shadow: 0 16px 36px -12px rgba(255, 70, 6, 0.15);
}

.home .odoo-point-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home .odoo-point-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 70, 6, 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .odoo-point-icon svg {
  width: 20px;
  height: 20px;
}

.home .odoo-point-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.home .odoo-point-card strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.home .odoo-point-card p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

.home .odoo-point-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 70, 6, 0.08);
}

:root[data-theme="light"] .home .odoo-point-tag {
  background: #FFF1EB;
  color: #D83B01;
}

@media (max-width: 992px) {
  .home .odoo-spotlight {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 36px;
  }
}

@media (max-width: 580px) {
  .home .odoo-points-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- DEDICATED MODERN INSIGHTS HUB & CARDS STYLING ---------- */
.home #home-blog-grid {
  min-height: 240px;
}

.home .post-card.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.home .insights-view-all {
  margin-top: 36px;
  text-align: center;
}

.insights-hub-section {
  padding-bottom: 80px;
}

.insights-filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 auto 50px auto !important;
  padding: 8px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 999px !important;
  width: fit-content !important;
  max-width: 100% !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

:root[data-theme="light"] .insights-filter-bar {
  background: #FFFFFF !important;
  border-color: #E2E6EA !important;
  box-shadow: 0 10px 30px -10px rgba(16, 24, 40, 0.08) !important;
}

.insights-filter-bar .chip {
  width: auto !important;
  min-height: 40px !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-2) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.insights-filter-bar .chip:hover:not(.active) {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

:root[data-theme="light"] .insights-filter-bar .chip:hover:not(.active) {
  background: #F2F4F7 !important;
  color: #101828 !important;
}

.insights-filter-bar .chip.active {
  background: linear-gradient(110deg, #CE1D28, #FF4606) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px -6px rgba(255, 70, 6, 0.55) !important;
}

.insights-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 30px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 680px) {
  .insights-grid {
    grid-template-columns: 1fr !important;
  }
  .insights-filter-bar {
    border-radius: 20px !important;
    padding: 6px !important;
  }
}

.insights-grid .post-card,
#home-blog-grid .post-card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.insights-grid .post-card:hover,
#home-blog-grid .post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 70, 6, 0.45);
  box-shadow: 0 20px 48px -14px rgba(255, 70, 6, 0.25);
}

.post-thumb,
.insights-grid .post-thumb,
#home-blog-grid .post-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 70, 6, 0.1), rgba(206, 29, 40, 0.05));
  border-bottom: 1px solid var(--glass-edge);
}

.post-thumb img,
.insights-grid .post-thumb img,
#home-blog-grid .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-thumb img {
  transform: scale(1.07);
}

.post-thumb-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 75% 25%, rgba(255, 70, 6, 0.22), transparent 70%),
              radial-gradient(circle at 20% 80%, rgba(206, 29, 40, 0.16), transparent 70%),
              #11142b;
}

.thumb-fallback-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.thumb-fallback-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 70, 6, 0.14);
  border: 1px solid rgba(255, 70, 6, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 14px rgba(255, 70, 6, 0.2);
}

.post-card:hover .thumb-fallback-icon {
  transform: translateY(-3px) scale(1.08);
  background: rgba(255, 70, 6, 0.25);
  box-shadow: 0 8px 20px rgba(255, 70, 6, 0.35);
}

.thumb-fallback-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.thumb-fallback-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
}

.article-featured-image {
  margin-bottom: 34px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.article-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

:root[data-theme="light"] .post-thumb-fallback {
  background: radial-gradient(circle at 75% 25%, rgba(255, 70, 6, 0.12), transparent 70%),
              radial-gradient(circle at 20% 80%, rgba(206, 29, 40, 0.08), transparent 70%),
              #f5f7fb;
}

:root[data-theme="light"] .thumb-fallback-icon {
  background: #ffffff;
  border-color: rgba(255, 70, 6, 0.25);
  box-shadow: 0 4px 12px rgba(255, 70, 6, 0.1);
}

.insights-grid .post-body,
#home-blog-grid .post-body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insights-grid .post-meta,
#home-blog-grid .post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
}

.insights-grid .card-tag,
#home-blog-grid .card-tag {
  background: rgba(255, 70, 6, 0.12);
  color: var(--orange);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.insights-grid h3,
#home-blog-grid h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.insights-grid .post-card:hover h3,
#home-blog-grid .post-card:hover h3 {
  color: var(--orange);
}

.insights-grid p,
#home-blog-grid p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.insights-grid .card-link,
#home-blog-grid .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: auto;
}

:root[data-theme="light"] .insights-grid .post-card,
:root[data-theme="light"] #home-blog-grid .post-card {
  background: #FFFFFF;
  border-color: #E2E6EA;
  box-shadow: 0 12px 32px -16px rgba(16, 24, 40, 0.1);
}

:root[data-theme="light"] .insights-grid .post-thumb,
:root[data-theme="light"] #home-blog-grid .post-thumb {
  background: linear-gradient(135deg, rgba(255, 70, 6, 0.08), rgba(206, 29, 40, 0.03));
  border-bottom-color: #EAECEF;
}

/* ---------- CONTACT SECTION POLISH ---------- */
.home .contact-redesign {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.home .contact-pitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.home .contact-pitch h2 {
  margin-bottom: 16px;
  line-height: 1.25;
}

.home .contact-pitch .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

.home .contact-form-card {
  padding: 32px 30px;
}

@media (max-width: 900px) {
  .home .contact-redesign {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home .contact-pitch {
    padding: 0;
  }
}

/* ==========================================================================
   VERTICAL SERVICES DROPDOWN (بالطول) WITH FLYOUT SUBMENUS
   ========================================================================== */
.nav-item-dropdown {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.services-vmenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 370px;
  background: #FFFFFF !important;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  overflow: visible !important;
}

[dir="rtl"] .services-vmenu {
  left: auto;
  right: 0;
}

/* Hover bridge between navbar and dropdown */
.services-vmenu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-item-dropdown:hover .services-vmenu,
.nav-item-dropdown:focus-within .services-vmenu,
.nav-item-dropdown.menu-active .services-vmenu,
.services-vmenu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.services-vlist {
  list-style: none;
  margin: 0;
  padding: 8px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-vitem {
  position: relative;
  margin: 0;
  padding: 0;
}

.services-vlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px !important;
  color: #1E293B !important;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none !important;
  border-radius: 10px !important;
  transition: background 0.18s ease, color 0.18s ease;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.services-vitem:first-child > .services-vlink,
.services-vitem:last-child > .services-vlink {
  border-radius: 10px !important;
  border-bottom: none !important;
}

.services-vitem:hover > .services-vlink,
.services-vitem.is-active > .services-vlink {
  background: #FF4606 !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
}

.services-vitem:hover > .services-vlink .vmenu-arrow,
.services-vitem.is-active > .services-vlink .vmenu-arrow {
  color: #FFFFFF !important;
}

.vmenu-arrow {
  width: 14px;
  height: 14px;
  color: #FF4606;
  flex-shrink: 0;
  margin-left: 20px;
  transition: color 0.15s ease;
}

[dir="rtl"] .vmenu-arrow {
  margin-left: 0;
  margin-right: 20px;
  transform: rotate(180deg);
}

/* Orange Submenu Flyout */
.services-vsubmenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 350px;
  background: #FF4606 !important;
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(255, 70, 6, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 8px !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  overflow: hidden;
}

[dir="rtl"] .services-vsubmenu {
  left: auto;
  right: 100%;
  transform: translateX(-4px);
}

/* Seam bridge so mouse motion across border never drops hover */
.services-vsubmenu::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  width: 16px;
}

[dir="rtl"] .services-vsubmenu::before {
  left: auto;
  right: -14px;
}

.services-vitem.has-submenu:hover > .services-vsubmenu,
.services-vitem.has-submenu.is-active > .services-vsubmenu,
.services-vsubmenu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
}

.services-vsubmenu a {
  display: block;
  padding: 12px 18px !important;
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px !important;
  border-bottom: none !important;
  transition: background 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.services-vsubmenu a:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px !important;
}

.services-vsubmenu a:last-child {
  border-bottom: none;
}

.services-vsubmenu a:hover {
  background: rgba(0, 0, 0, 0.14) !important;
}





/* Products grid & Case studies fix */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
}
.products-grid .card-featured {
  width: 100%;
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
}

.case-studies-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.case-studies-list > .card {
  width: 100%;
}
.case-studies-list .split {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: start;
  width: 100%;
}
@media (max-width: 900px) {
  .case-studies-list .split { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ABOUT PAGE: INTERACTIVE MILESTONES, STATS STRIP, VISION 2030 CARDS
   ========================================================================== */
.about-milestones-section {
  padding-top: 10px;
}
.about-timeline-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  margin-bottom: 28px;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-x: auto;
}
.about-timeline-tab {
  flex: 1;
  min-width: 140px;
  padding: 14px 18px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s var(--ease);
}
.about-timeline-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateY(-2px);
}
:root[data-theme="light"] .about-timeline-tab:hover {
  background: rgba(14, 17, 38, 0.05);
}
.about-timeline-tab.active {
  background: linear-gradient(110deg, #C91F2A, #FF4606) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px -10px rgba(255, 70, 6, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}
.about-timeline-tab .tab-year {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.about-timeline-tab .tab-label {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
}
.about-timeline-tab.active .tab-label {
  opacity: 1;
  color: #FFFFFF;
}

.about-timeline-display {
  padding: clamp(30px, 4.5vw, 50px);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.about-timeline-panel {
  display: none;
}
.about-timeline-panel.active {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: center;
  animation: tabFadeIn 0.35s ease forwards;
}
@media (max-width: 850px) {
  .about-timeline-panel.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-badge-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 70, 6, 0.09), rgba(206, 29, 40, 0.06));
  border: 1px solid rgba(255, 70, 6, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
:root[data-theme="light"] .timeline-badge-card {
  background: #FFF5F2;
  border-color: rgba(255, 70, 6, 0.3);
}
.timeline-badge-card .tb-year {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.timeline-badge-card .tb-stat {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

/* About metrics strip */
.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) {
  .about-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .about-metrics-grid { grid-template-columns: 1fr; }
}
.about-metric-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.about-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 70, 6, 0.45);
}
.about-metric-card .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), #FF8A00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 10px;
}
.about-metric-card .metric-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.about-metric-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* Vision 2030 Pillars */
.vision2030-grid .vision-card {
  position: relative;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.vision2030-grid .vision-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 70, 6, 0.5);
}
.vision-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 70, 6, 0.1);
  color: var(--orange);
  border: 1px solid rgba(255, 70, 6, 0.2);
}

/* ---------- FOOTER SOCIAL MEDIA (Interactive & Clickable: Facebook, LinkedIn, WhatsApp) ---------- */
.footer-bottom .socials,
.socials,
.footer-socials {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.social-icon,
.socials a,
.footer-bottom .socials a,
.footer-socials a {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: auto !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.social-icon:hover,
.socials a:hover,
.footer-bottom .socials a:hover,
.footer-socials a:hover {
  background: #FF4606 !important;
  color: #FFFFFF !important;
  border-color: #FF4606 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(255, 70, 6, 0.4) !important;
}

:root[data-theme="light"] .social-icon,
:root[data-theme="light"] .socials a,
:root[data-theme="light"] .footer-bottom .socials a,
:root[data-theme="light"] .footer-socials a {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}

:root[data-theme="light"] .social-icon:hover,
:root[data-theme="light"] .socials a:hover,
:root[data-theme="light"] .footer-bottom .socials a:hover,
:root[data-theme="light"] .footer-socials a:hover {
  background: #FF4606 !important;
  border-color: #FF4606 !important;
  color: #FFFFFF !important;
}

.social-icon svg,
.socials a svg,
.footer-bottom .socials a svg {
  width: 17px !important;
  height: 17px !important;
  pointer-events: none !important;
}

/* ---------- GLOBAL RESPONSIVE & MOBILE NAVIGATION FIXES ---------- */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

.mobile-nav {
  position: fixed !important;
  top: 70px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: calc(100vh - 70px) !important;
  max-height: none !important;
  z-index: 9999 !important;
  background: var(--bg) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 20px 20px 60px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  transform: translateY(-6px);
}

.mobile-nav.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

:root[data-theme="light"] .mobile-nav {
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
}

.mobile-nav a,
.mobile-nav .mob-accordion-btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav .mob-accordion-btn:hover {
  background: rgba(255, 70, 6, 0.08);
  color: var(--orange);
}

.mobile-nav .mob-item {
  border-bottom: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.08));
  padding-bottom: 6px;
}

.mobile-nav .mob-sublink {
  min-height: 40px;
  font-size: 0.92rem;
  padding: 8px 12px;
}

/* Ensure accessible minimum touch targets on interactive controls */
.theme-toggle,
.lang-switch,
.hamburger {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Submenu hover bridge to prevent mouse drop-off on diagonal movement */
.services-vsubmenu::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -28px;
  width: 36px;
}

[dir="rtl"] .services-vsubmenu::before {
  left: auto;
  right: -28px;
}

/* Form validation & inline error feedback */
.form-input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.form-feedback {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
}

/* ---------- CLIENTS & PARTNERS HUB STYLING ---------- */
.clients-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.clients-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.clients-filter-btn:hover {
  background: rgba(255, 70, 6, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 70, 6, 0.3);
}

.clients-filter-btn.active {
  background: #FF4606 !important;
  color: #FFFFFF !important;
  border-color: #FF4606 !important;
  box-shadow: 0 4px 14px rgba(255, 70, 6, 0.35);
}

:root[data-theme="light"] .clients-filter-btn {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #475569;
}

:root[data-theme="light"] .clients-filter-btn:hover {
  background: rgba(255, 70, 6, 0.08);
  color: #FF4606;
  border-color: rgba(255, 70, 6, 0.25);
}

:root[data-theme="light"] .clients-filter-btn.active {
  background: #FF4606 !important;
  color: #FFFFFF !important;
  border-color: #FF4606 !important;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.client-card {
  display: flex;
  flex-direction: column;
  padding: 22px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s !important;
}

.client-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 70, 6, 0.35) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 70, 6, 0.15) !important;
}

:root[data-theme="light"] .client-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .client-card:hover {
  border-color: #FF4606 !important;
  box-shadow: 0 10px 25px rgba(255, 70, 6, 0.12) !important;
}

.client-logo-box {
  width: 100%;
  height: 120px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.client-logo-box img {
  max-width: 85%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.client-card:hover .client-logo-box img {
  transform: scale(1.05);
}

.client-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.client-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.client-name {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

.client-card .card-tag {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 99px;
  margin: 0;
  background: rgba(255, 70, 6, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 70, 6, 0.25);
  white-space: nowrap;
}

.client-scope {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .client-scope {
  border-top-color: #F1F5F9;
}

/* Home Clients Strip Showcase */
.home-clients-showcase {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .home-clients-showcase {
  border-bottom-color: #E2E8F0;
}

.home-clients-header {
  text-align: center;
  margin-bottom: 24px;
}

.home-clients-title {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--text-2);
  margin-top: 6px;
}

.home-clients-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  align-items: center;
}

.home-client-item {
  height: 76px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  overflow: hidden;
}

.home-client-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 70, 6, 0.3);
}

.home-client-item img {
  max-width: 85%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.card-icon svg {
  width: 25px !important;
  height: 25px !important;
}

/* ── Phone Country Code & Pure Number Input Group ── */
.phone-input-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.phone-country-select {
  flex: 0 0 auto;
  width: clamp(110px, 30%, 140px);
  min-width: 105px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid var(--glass-edge);
  background-color: var(--glass);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  direction: ltr;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.phone-country-select:focus {
  outline: none;
  border-color: rgba(255, 70, 6, 0.6);
  background-color: var(--glass-strong);
  box-shadow: 0 0 0 4px rgba(255, 70, 6, 0.14);
}

.phone-country-select option {
  background: #0B1120;
  color: #F3F4F6;
  font-size: 0.9rem;
  padding: 8px 10px;
}

:root[data-theme="light"] .phone-country-select {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

:root[data-theme="light"] .phone-country-select option {
  background: #FFFFFF;
  color: #0F172A;
}

.phone-number-input {
  flex: 1 1 auto;
  min-width: 0;
  direction: ltr;
  text-align: start;
}

@media (max-width: 480px) {
  .phone-input-group {
    gap: 8px;
  }
  .phone-country-select {
    width: 110px;
    padding: 13px 8px;
    font-size: 0.82rem;
  }
}



/* Hero Immediate Paint for Core Web Vitals (LCP < 1.0s) */
.hero .reveal,
.hero .reveal.in-view,
.hero-compact .reveal,
.hero-compact .reveal.in-view {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}
