
/* ── Arabic: IBM Plex Sans Arabic ─────────────────────────── */
:lang(ar), [dir="rtl"], body.rtl {
  --font-body:    'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', Georgia, serif;
  --font-label:   'IBM Plex Sans Arabic', system-ui, sans-serif;
}

/* ============================================================
   CISO Consulting Business Portal — Portal CSS
   Design System: Meridian | Luxury Corporate Cybersecurity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   Design Tokens — Light Theme
   ============================================================ */
:root {
  --bg:            #FFFFFF;
  --bg-2:          #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-glass:      rgba(255, 255, 255, 0.95);
  --fg:            #0B1226;
  --fg-2:          #3A4258;
  --fg-muted:      #5C6480;
  --fg-subtle:     #9098B0;
  --accent:        #006C35;
  --accent-2:      #008844;
  --accent-light:  rgba(0, 108, 53, 0.08);
  --accent-rgb:    0, 108, 53;
  --accent-b:      #00A652;
  --accent-b-rgb:  0, 166, 82;
  --accent-purple: #7C3AED;
  --accent-purple-rgb: 124, 58, 237;
  --accent-amber:  #F59E0B;
  --accent-amber-rgb: 245, 158, 11;
  --accent-green:  #65A30D;
  --accent-green-rgb: 101, 163, 13;
  --grad: linear-gradient(135deg, #00A652 0%, #006C35 60%, #004d26 100%);
  --border:        rgba(11, 18, 38, 0.08);
  --border-2:      rgba(11, 18, 38, 0.15);
  --shadow-sm:     0 2px 8px rgba(11, 18, 38, 0.05);
  --shadow:        0 8px 32px rgba(11, 18, 38, 0.08);
  --shadow-lg:     0 24px 72px rgba(11, 18, 38, 0.12);
  --shadow-glow:   0 0 48px rgba(0, 108, 53, 0.15);
  --radius:        3px;
  --radius-md:     6px;
  --radius-lg:     12px;
  --header-h:      0px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --t:             300ms;
  --font-display:  'DM Serif Display', Georgia, serif;
  --font-label:    'Inter', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:            #000000;
  --bg-2:          #0A0A0A;
  --bg-card:       #111111;
  --bg-glass:      rgba(0, 0, 0, 0.95);
  --fg:            #EEF1FA;
  --fg-2:          #AEB4C9;
  --fg-muted:      #878EA8;
  --fg-subtle:     #565D78;
  --accent:        #00A652;
  --accent-2:      #00C96A;
  --accent-light:  rgba(0, 166, 82, 0.12);
  --accent-rgb:    0, 166, 82;
  --accent-b:      #00C96A;
  --accent-b-rgb:  0, 201, 106;
  --accent-purple: #A78BFA;
  --accent-purple-rgb: 167, 139, 250;
  --accent-amber:  #FBBF24;
  --accent-amber-rgb: 251, 191, 36;
  --accent-green:  #A3E635;
  --accent-green-rgb: 163, 230, 53;
  --grad: linear-gradient(135deg, #00A652 0%, #006C35 60%, #004d26 100%);
  --border:        rgba(238, 241, 250, 0.08);
  --border-2:      rgba(238, 241, 250, 0.15);
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.40);
  --shadow-lg:     0 24px 72px rgba(0, 0, 0, 0.60);
  --shadow-glow:   0 0 64px rgba(0, 166, 82, 0.12);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  min-height: 100vh;
  overflow-x: hidden;
}

body.rtl { direction: rtl; text-align: right; }

::selection { background: rgba(var(--accent-rgb), 0.18); color: var(--fg); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   Typography Scale
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.t-label {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
}

/* ============================================================
   Noise Texture Overlay
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  /* Explicit background so logo always sits on a solid surface regardless
     of what's behind it — light mode = white, dark mode = black (#000).
     Avoids the logo looking odd against whatever page content is behind
     a transparent/translucent header. */
  background: var(--bg);
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 64px;
  height: 64px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.nav-logo-mark svg { width: 36px; height: 36px; fill: white; }

.nav-logo-text {
  font-family: var(--font-label);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
  line-height: 1.2;
}

.nav-logo-sub {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

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

/* Sliding magnetic highlight pill */
.nav-pill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: var(--radius);
  background: var(--accent-light);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.45, 0.4, 1),
              width 0.45s cubic-bezier(0.34, 1.45, 0.4, 1),
              opacity 0.2s ease;
  z-index: 0;
}
.nav-links.pill-active .nav-pill { opacity: 1; }

.nav-item { position: relative; }

.nav-link {
  font-family: var(--font-label);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color var(--t) var(--ease), letter-spacing 0.3s ease, transform 0.25s ease;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-link .chev {
  width: 9px; height: 9px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
}
.nav-item.has-mega.open .nav-link .chev { transform: rotate(180deg); opacity: 1; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.9rem; right: 0.9rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad, linear-gradient(90deg, var(--accent-b, var(--accent)), var(--accent), var(--accent-purple, var(--accent))));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.34, 1.45, 0.4, 1);
}

.rtl .nav-link::after { transform-origin: right; }

.nav-link:hover { color: var(--fg); letter-spacing: 0.13em; transform: translateY(-1px); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { transform: scaleX(1); }

/* Small pulsing dot beside the active link */
.nav-link.active::before {
  content: '';
  position: absolute;
  top: 6px; right: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: nav-dot-pulse 1.8s ease-in-out infinite;
}
.rtl .nav-link.active::before { right: auto; left: 4px; }
@keyframes nav-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

/* ============================================================
   MEGA MENU — Multi-level dropdown panel
   ============================================================ */
.mega-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  display: block;
  transition: opacity 0.25s cubic-bezier(0.2, 0.9, 0.25, 1),
              transform 0.25s cubic-bezier(0.2, 0.9, 0.25, 1);
  z-index: 9999;
}
[data-theme="dark"] .mega-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
}
.nav-item.has-mega.open .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.mega-panel::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 3px 0 0 0;
}
[data-theme="dark"] .mega-panel::before { background: var(--bg-2); }

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  transition: background 0.25s ease, transform 0.25s ease;
}
.mega-item:hover { background: var(--accent-light); transform: translateX(3px); }
.rtl .mega-item:hover { transform: translateX(-3px); }

.mega-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.45, 0.4, 1);
}
.mega-item:hover .mega-icon { transform: scale(1.08) rotate(-4deg); }
.mega-icon svg { width: 17px; height: 17px; stroke: var(--accent); }

.mega-text-title {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.mega-text-desc {
  font-size: 0.74rem;
  color: var(--fg-muted);
  line-height: 1.45;
}

.mega-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-footer-link {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mega-footer-badge {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-amber, var(--accent));
  background: rgba(var(--accent-amber-rgb, var(--accent-rgb)), 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border-2);
  background: transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all var(--t) var(--ease);
}
.theme-toggle:hover { color: var(--fg); background: var(--accent-light); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Lang Toggle */
.lang-toggle {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg-muted);
  transition: all var(--t) var(--ease);
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* CTA Button in Nav */
.btn-nav-cta {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--t) var(--ease);
}
.btn-nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  position: relative;
  z-index: 201;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav-toggle:hover { border-color: var(--accent); background: var(--accent-light); }
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}
.nav-toggle span:nth-child(1) { width: 18px; }
.nav-toggle span:nth-child(2) { width: 14px; }
.nav-toggle span:nth-child(3) { width: 18px; }

/* Morph to X when menu open */
.nav-mobile-open .nav-toggle span:nth-child(1) {
  width: 18px;
  transform: translateY(6.5px) rotate(45deg);
}
.nav-mobile-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-mobile-open .nav-toggle span:nth-child(3) {
  width: 18px;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   Layout Containers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.container-sm { max-width: 900px; }
.container-xs { max-width: 680px; }

section { position: relative; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-2);
  color: var(--fg-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  padding-left: 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost svg { transition: transform var(--t) var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }
.rtl .btn-ghost:hover svg { transform: translateX(-4px); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   Section Labels
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 100svh;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  display: none; /* grid pattern + glow orb removed — plain background */
}

/* Geometric grid pattern — disabled */
.hero-grid {
  display: none;
}

/* Gold accent orb — disabled */
.hero-orb {
  display: none;
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  margin-bottom: 2.5rem;
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-badge span {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.75rem;
  animation: fade-up 0.8s 0.1s var(--ease-out) both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 2.75rem;
  animation: fade-up 0.8s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: fade-up 0.8s 0.3s var(--ease-out) both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fade-in 1s 1s var(--ease-out) both;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Stats strip */
.hero-stats {
  position: absolute;
  bottom: 5rem;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fade-in 0.8s 0.5s var(--ease-out) both;
}

.rtl .hero-stats { right: auto; left: 0; }

.hero-stat {
  text-align: right;
  padding-right: 2.5rem;
  border-right: 1px solid var(--border-2);
}

.rtl .hero-stat {
  text-align: left;
  padding-right: 0;
  padding-left: 2.5rem;
  border-right: none;
  border-left: 1px solid var(--border-2);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
  display: block;
  margin-top: 0.25rem;
}

/* ============================================================
   Services Grid Section
   ============================================================ */
.section-services {
  padding: 7rem 0;
  background: var(--bg-2);
  position: relative;
}

.section-services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.12;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-top: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.service-card {
  background: var(--bg-2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--t) var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.service-card:hover { background: var(--bg-card); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.75rem;
  position: relative;
}

.service-icon-bg {
  width: 48px; height: 48px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t) var(--ease);
}

.service-card:hover .service-icon-bg {
  border-color: var(--accent);
  background: var(--accent-light);
}

.service-icon-bg svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.service-card-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
}

.service-card-link {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--t) var(--ease);
}

.service-card-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.service-card:hover .service-card-link { gap: 0.9rem; }

/* Number accent */
.service-card-num {
  position: absolute;
  top: 2rem; right: 2rem;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--border-2);
  line-height: 1;
  pointer-events: none;
  transition: color var(--t) var(--ease);
}

.rtl .service-card-num { right: auto; left: 2rem; }
.service-card:hover .service-card-num { color: rgba(var(--accent-rgb), 0.12); }

.services-footer {
  margin-top: 3.5rem;
  text-align: center;
}

/* ============================================================
   About Section
   ============================================================ */
.section-about {
  padding: 7rem 0;
  overflow: hidden;
}

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

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-visual-main {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Geometric abstract visual */
.about-geo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-geo svg {
  width: 75%;
  height: 75%;
  opacity: 0.9;
}

.about-tag {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.rtl .about-tag { flex-direction: row-reverse; }

.about-tag-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: white;
  flex-shrink: 0;
}

.about-tag-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.82);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.about-content { }

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t) var(--ease);
}

.about-pillar:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.about-pillar-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-pillar-icon svg {
  width: 20px; height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.about-pillar-text strong {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.about-pillar-text span {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ============================================================
   CTA Banner
   ============================================================ */
.section-cta {
  padding: 7rem 0;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.10) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.cta-title em { font-style: italic; color: var(--accent); }

.cta-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

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

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all var(--t) var(--ease);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col-title {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--fg-muted);
  transition: color var(--t) var(--ease);
}
.footer-links a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.footer-contact-item svg {
  width: 15px; height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--fg-subtle);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--fg-subtle);
  transition: color var(--t) var(--ease);
}
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   Contact Page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {}

.contact-info-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.contact-info-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--fg-2);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow);
}

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

.field-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.field-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.field-label .req { color: var(--accent); margin-left: 0.2rem; }

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--t) var(--ease);
  outline: none;
  appearance: none;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.field-textarea {
  resize: vertical;
  min-height: 140px;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--fg-subtle); }

/* ============================================================
   Page Content (Custom Pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.page-content {
  padding: 4rem 0 7rem;
}

.page-content-body {
  max-width: 780px;
  font-size: 1.025rem;
  line-height: 1.85;
  color: var(--fg-2);
}

.page-content-body h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--fg);
  margin: 2.5rem 0 1rem;
}

.page-content-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}

.page-content-body p { margin-bottom: 1.25rem; }

.page-content-body ul, .page-content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.rtl .page-content-body ul, .rtl .page-content-body ol {
  padding-left: 0;
  padding-right: 1.5rem;
}

/* ============================================================
   Alert Flash Messages
   ============================================================ */
.flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.flash-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: #16a34a; }
.flash-error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #dc2626; }
.flash-warning { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.25); color: #ca8a04; }
.flash-info    { background: var(--accent-light); border: 1px solid rgba(var(--accent-rgb),0.25); color: var(--accent); }

[data-theme="dark"] .flash-success { color: #4ade80; }
[data-theme="dark"] .flash-error   { color: #f87171; }
[data-theme="dark"] .flash-warning { color: #facc15; }

/* ============================================================
   Services Detail Page
   ============================================================ */
.service-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  background: var(--bg-2);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}

.service-sidebar-card {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.service-sidebar-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up { opacity: 0; animation: fade-up 0.7s var(--ease-out) forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* Scroll reveal (JS-driven) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 110px; }
  .container { padding: 0 1.5rem; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 2rem) 0 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  section { padding: 4rem 0 !important; }

  /* ============================================================
     Mobile Menu — Full-screen animated overlay
     ============================================================ */
  .nav-links {
    display: flex !important; /* always in DOM for overlay, visibility controlled below */
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    background: var(--bg);
    padding: 2rem 2.25rem;
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1),
                visibility 0.4s,
                transform 0.4s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }
  .nav-links::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 70vw; height: 70vw;
    max-width: 480px; max-height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
  }
  .nav-pill { display: none; }

  .nav-mobile-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .nav-item {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    display: flex;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg);
    padding: 0.95rem 0;
    border-radius: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: color 0.25s ease, transform 0.25s ease;
  }
  .nav-mobile-open .nav-item .nav-link {
    animation: nav-link-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.05) forwards;
    animation-delay: calc(var(--nav-i, 0) * 0.06s + 0.1s);
  }
  @keyframes nav-link-in {
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--accent); }
  .nav-link.active::before { display: none; }
  .nav-link:active { color: var(--accent); }
  .nav-link .chev { width: 13px; height: 13px; opacity: 0.6; }

  /* Mobile accordion submenu */
  .mega-panel {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  }
  .mega-panel::before { display: none; }
  .nav-item.has-mega.open .mega-panel {
    max-height: 600px;
    padding-bottom: 1rem;
  }
  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-item { padding: 0.65rem 0.25rem; }
  .mega-icon { width: 32px; height: 32px; }
  .mega-footer { display: none; }

  .nav-actions {
    display: flex !important;
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    padding: 1.25rem 2.25rem 1.75rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    justify-content: flex-start;
    gap: 0.75rem;
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.4s ease 0.1s, visibility 0.4s, transform 0.4s ease 0.1s;
  }
  .nav-mobile-open .nav-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ============================================================
   Footer Bottom — Powered By + Compliance Badges
============================================================ */
.footer-bottom {
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom-left { display:flex; flex-direction:column; gap:0.3rem; }
.footer-powered {
  font-size: 0.78rem;
  color: var(--fg-subtle);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.footer-powered a { color: var(--fg-subtle); transition: color var(--t) var(--ease); }
.footer-powered a:hover { color: var(--accent); }
.footer-powered-brand { color: var(--accent) !important; font-weight: 600; }
.footer-bottom-right {}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  transition: all var(--t) var(--ease);
}
.footer-badge:hover { border-color: var(--accent); color: var(--accent); }
.footer-badge svg {
  width: 10px; height: 10px;
  fill: none; stroke: currentColor;
  stroke-width: 2; flex-shrink: 0;
}

/* ============================================================
   Cookie Consent Banner
============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--border-2);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.10);
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fg-muted);
  min-width: 260px;
}
.cookie-text a { color: var(--accent); }
.cookie-actions { display:flex; gap:0.75rem; flex-shrink:0; }

/* ============================================================
   WhatsApp Floating Button
============================================================ */
#whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 190;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: all var(--t) var(--ease);
  cursor: pointer;
  text-decoration: none;
}
#whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
#whatsapp-fab svg { width: 28px; height: 28px; fill: white; }
.rtl #whatsapp-fab { right: auto; left: 2rem; }

/* Pulse animation on fab */
#whatsapp-fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   Back to Top Button
============================================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 190;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--t) var(--ease);
  color: var(--fg-muted);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
#back-to-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.rtl #back-to-top { left: auto; right: 2rem; }

/* ============================================================
   Page Loading Progress Bar
============================================================ */
#nprogress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

/* ============================================================
   Breadcrumbs (public)
============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--fg-subtle); transition: color var(--t) var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--fg-subtle); }
.breadcrumbs .current { color: var(--fg-muted); }

/* ============================================================
   PRELOADER — Cinematic Iris-Out
   ============================================================ */
body.preloading { overflow: hidden; }
body.nav-lock { overflow: hidden; }

#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1), filter 1.1s ease;
}

#site-preloader.pl-closing {
  clip-path: circle(0% at 50% 50%);
  filter: brightness(1.3);
}

#site-preloader.pl-exit {
  visibility: hidden;
  pointer-events: none;
}

/* Punctuation flash ring at the exact moment iris starts closing */
.pl-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.pl-flash.go {
  animation: pl-flash-ring 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes pl-flash-ring {
  0%   { width: 10px;   height: 10px;   opacity: 0.9; }
  100% { width: 160vmax; height: 160vmax; opacity: 0; }
}

.pl-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#site-preloader.pl-closing .pl-core {
  opacity: 0;
  transform: scale(0.92);
}

/* Kinetic wordmark — letters animate in one by one */
.pl-word {
  display: flex;
  gap: 0.05em;
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.pl-letter {
  font-family: var(--font-label, 'Syne', sans-serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--fg);
  display: inline-block;
  opacity: 0;
  transform: translateY(70%);
  animation: pl-letter-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.1) forwards;
}
@keyframes pl-letter-in {
  to { opacity: 1; transform: translateY(0); }
}

.pl-sub {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.74rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: pl-fade 0.6s 0.9s ease forwards;
}
@keyframes pl-fade { to { opacity: 1; } }

/* Equalizer-style loading pulse */
.pl-eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: pl-fade 0.5s 1s ease forwards;
}
.pl-eq-bar {
  width: 4px;
  border-radius: 3px;
  background: var(--bar-color);
  animation: pl-eq-bounce 1.1s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes pl-eq-bounce {
  0%, 100% { height: 6px;  opacity: 0.5; }
  50%      { height: 28px; opacity: 1; }
}

.pl-pct {
  font-family: var(--font-label, 'Syne', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
  opacity: 0;
  animation: pl-fade 0.5s 1s ease forwards;
}
.pl-pct b {
  color: var(--accent);
  font-size: 0.78rem;
}

/* ============================================================
   HERO ANIMATE — Post-preloader entrance
   ============================================================ */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero-animate.hero-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CUSTOM CURSOR — disabled, using normal system cursor
   ============================================================ */
.cur-dot, .cur-ring { display: none; }

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================================
   HEADER — Hide on scroll down
   ============================================================ */
.site-header {
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.header-hidden {
  transform: translateY(-100%) translateZ(0);
}

/* ============================================================
   SCROLL REVEAL — Enhanced with directional variants
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }

/* Homepage element transitions for JS-driven scroll reveal */
.hp-bc,.hp-step,.hp-scard,.hp-tc,
.hp-h1,.hp-hero-sub,.hp-hero-btns,
.hp-abt-h,.hp-abt-b,.hp-checks,
.hp-cta-h,.hp-cta-s,.hp-cta-btns,.hp-cta-badge,
.hp-badge,.hp-badge-txt,.hp-hbadge-t,.hstats {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hp-bc.visible,.hp-step.visible,.hp-scard.visible,.hp-tc.visible,
.hp-h1.visible,.hp-hero-sub.visible,.hp-hero-btns.visible,
.hp-abt-h.visible,.hp-abt-b.visible,.hp-checks.visible,
.hp-cta-h.visible,.hp-cta-s.visible,.hp-cta-btns.visible,.hp-cta-badge.visible,
.hp-badge.visible,.hp-badge-txt.visible,.hp-hbadge-t.visible,.hstats.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards in a row */
.hp-bc:nth-child(2).visible { transition-delay: 80ms; }
.hp-bc:nth-child(3).visible { transition-delay: 160ms; }
.hp-bc:nth-child(4).visible { transition-delay: 240ms; }
.hp-step:nth-child(2).visible { transition-delay: 80ms; }
.hp-step:nth-child(3).visible { transition-delay: 160ms; }
.hp-step:nth-child(4).visible { transition-delay: 240ms; }
.hp-step:nth-child(5).visible { transition-delay: 320ms; }
.hp-scard:nth-child(2).visible { transition-delay: 80ms; }
.hp-scard:nth-child(3).visible { transition-delay: 160ms; }
.hp-scard:nth-child(4).visible { transition-delay: 240ms; }
.reveal.reveal-scale { transform: scale(0.92); }
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SERVICE CARDS — Enhanced 3D + glow spotlight
   ============================================================ */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    140px circle at var(--card-gx, 50%) var(--card-gy, 50%),
    rgba(var(--accent-rgb), 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

/* ============================================================
   ANIMATED GRADIENT BORDER (on hero badge + stat cards)
   ============================================================ */
.grad-border {
  position: relative;
}
.grad-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
  background-size: 200% 200%;
  animation: border-spin 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.5;
  pointer-events: none;
}
@keyframes border-spin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   GLITCH TEXT — Optional on hero headline
   ============================================================ */
@keyframes glitch-1 {
  0%,100%  { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
  25%      { clip-path: inset(30% 0 60% 0); transform: translate(2px, 0); }
  50%      { clip-path: inset(60% 0 30% 0); transform: translate(-1px, 0); }
  75%      { clip-path: inset(80% 0 5% 0); transform: translate(1px, 0); }
}

/* ============================================================
   TYPING CURSOR
   ============================================================ */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  margin-left: 2px;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ============================================================
   NUMBER COUNTER ANIMATED LABEL
   ============================================================ */
[data-count] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   HEADER — Enhanced active nav indicator
   ============================================================ */
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  animation: slide-in 0.3s var(--ease-out);
}
@keyframes slide-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   PAGE TRANSITION — Smooth curtain on navigation
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}
.page-transition.trans-in {
  animation: trans-in 0.4s var(--ease) forwards;
}
.page-transition.trans-out {
  transform-origin: top;
  animation: trans-out 0.4s var(--ease) forwards;
}
@keyframes trans-in  { to { transform: scaleY(1); } }
@keyframes trans-out { to { transform: scaleY(0); } }

/* ============================================================
   ENHANCED HERO STATS — Animated underline
   ============================================================ */
.hero-stat::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  margin-top: 0.4rem;
  transition: width 1s 0.5s var(--ease-out);
}
.hero-stat.visible::after { width: 40px; }

/* ============================================================
   GLOW BUTTON — Primary CTA enhancement
   ============================================================ */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-primary:hover::after { opacity: 1; }

/* ============================================================
   DUAL THEME LOGO SWITCHING
   ============================================================ */
.logo-hidden { display: none !important; }

/* JS-controlled switching (overrides PHP initial state on theme toggle) */
[data-theme="light"] .logo-dark  { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }
[data-theme="dark"]  .logo-light { display: none !important; }
[data-theme="dark"]  .logo-dark  { display: block !important; }

/* ============================================================
   CAPTCHA WIDGET — All Methods
   ============================================================ */
.captcha-wrap {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s ease;
}
.captcha-wrap.cap-done {
  border-color: rgba(74,222,128,0.4);
}
.captcha-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.captcha-header svg { stroke: var(--accent); }
.captcha-header span { flex: 1; }
.captcha-refresh {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--fg-subtle);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
}
.captcha-refresh:hover { color: var(--accent); background: var(--accent-light); }

.captcha-body {
  padding: 1.25rem;
  background: var(--bg-card);
}

.captcha-input-wrap {
  padding: 0 1rem 0.75rem;
}
.captcha-input-wrap .field-input {
  margin: 0;
}

.captcha-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.75rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
}
.cap-st-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.cap-st-dot.ok  { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.5); }
.cap-st-dot.err { background: #f87171; }

/* ── METHOD: MATH ─────────────────────────────────────────── */
.cap-math-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}
.cap-math-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.cap-math-op, .cap-math-eq {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
}
.cap-math-q {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  animation: cap-blink 1.2s ease-in-out infinite;
}
@keyframes cap-blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── METHOD: TEXT ─────────────────────────────────────────── */
.cap-text-display {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
  user-select: none;
  overflow: hidden;
}
.cap-text-chars {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cap-text-noise {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.cap-text-hint {
  font-size: 0.68rem;
  color: var(--fg-subtle);
  text-align: center;
}

/* ── METHOD: WORD ─────────────────────────────────────────── */
.cap-word-display {
  text-align: center;
  margin-bottom: 0.75rem;
}
.cap-word-q {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: 0.1em;
}
.cap-word-hint {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

/* ── METHOD: LOGIC ────────────────────────────────────────── */
.cap-logic-q {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.cap-logic-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.cap-logic-btn {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--fg-muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.cap-logic-btn:hover { border-color: var(--accent); color: var(--fg); }
.cap-logic-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* ── Captcha dark mode — ensure readable text ─────────────── */
[data-theme="dark"] .cap-logic-q {
  color: #e4ede7;
}
[data-theme="dark"] .cap-logic-btn {
  background: #0d1c13;
  border-color: rgba(0,166,82,0.25);
  color: #c8ddd0;
}
[data-theme="dark"] .cap-logic-btn:hover {
  border-color: var(--accent);
  background: rgba(0,166,82,0.12);
  color: #e4ede7;
}
[data-theme="dark"] .cap-logic-btn.selected {
  border-color: #00A652;
  background: rgba(0,166,82,0.18);
  color: #00E875;
}
[data-theme="dark"] .cap-slider-track {
  background: #0d1c13;
  border-color: rgba(0,166,82,0.2);
}
[data-theme="dark"] .cap-slider-hint,
[data-theme="dark"] .cap-slider-labels {
  color: #c8ddd0;
}
[data-theme="dark"] .cap-img-cell {
  background: #0d1c13;
  border-color: rgba(0,166,82,0.2);
  color: #c8ddd0;
}
[data-theme="dark"] .cap-img-cell:hover {
  border-color: var(--accent);
  color: #e4ede7;
}
[data-theme="dark"] .cap-img-cell.selected {
  border-color: #00A652;
  background: rgba(0,166,82,0.15);
  color: #00E875;
}
/* Math / text captcha image text */
[data-theme="dark"] .captcha-body svg text,
[data-theme="dark"] .captcha-body canvas {
  filter: brightness(1.4);
}

/* ── METHOD: SLIDER ───────────────────────────────────────── */
.cap-slider { padding: 0.25rem 0; }
.cap-slider-track {
  position: relative;
  height: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  overflow: visible;
}
.cap-slider-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.4), var(--accent));
  border-radius: 100px;
  pointer-events: none;
  transition: width 0.05s linear;
}
.cap-slider-target {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.cap-slider-target-line {
  width: 2px;
  height: 16px;
  background: var(--accent);
  border-radius: 1px;
}
.cap-slider-target-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  color: var(--accent);
  margin-top: 2px;
}
.cap-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px; height: 20px;
  margin-top: -10px;
  background: var(--accent);
  border-radius: 50%;
  cursor: grab;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb),0.4);
  transition: box-shadow 0.2s;
}
.cap-slider-thumb:active { cursor: grabbing; }
.cap-slider.cap-done .cap-slider-thumb {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74,222,128,0.5);
}
.cap-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-label);
  font-size: 0.6rem;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
}
.cap-slider-hint { font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 0.25rem; }

/* ── METHOD: IMAGE PICK ───────────────────────────────────── */
.cap-image-prompt {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.cap-image-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cap-img-cell {
  border: 2px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--fg-muted);
  aspect-ratio: 1;
}
.cap-img-cell:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.cap-img-cell.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cap-image-hint { font-size: 0.72rem; color: var(--fg-subtle); margin-bottom: 0.25rem; }

/* ============================================================
   PROCESS SECTION — How We Work
   ============================================================ */
.section-process {
  padding: 7rem 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.section-process::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.section-process::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.process-track {
  position: relative;
  margin-top: 4rem;
}

/* Horizontal connector line */
.process-connector {
  position: absolute;
  top: 44px;
  left: calc(12.5% - 1px);
  right: calc(12.5% - 1px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process-connector-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb),0.4));
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}
.process-connector-fill.drawn { width: 100%; }

.rtl .process-connector { left: calc(12.5% - 1px); right: calc(12.5% - 1px); }
.rtl .process-connector-fill { background: linear-gradient(270deg, var(--accent), rgba(var(--accent-rgb),0.4)); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* Node circle */
.process-step-node {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.process-step-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0);
  transition: border-color 0.5s ease, transform 0.5s ease;
}

.process-step:hover .process-step-ring {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: scale(1.05);
}

.process-step-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  color: var(--fg-muted);
}

.process-step-icon svg {
  stroke: var(--fg-muted);
  transition: stroke 0.4s ease;
}

.process-step.active .process-step-icon,
.process-step:hover .process-step-icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08), 0 8px 32px rgba(var(--accent-rgb), 0.15);
  transform: translateY(-4px);
}

.process-step.active .process-step-icon svg,
.process-step:hover .process-step-icon svg {
  stroke: var(--accent);
}

/* Pulse animation for active step */
.process-step.active .process-step-ring {
  border-color: rgba(var(--accent-rgb), 0.4);
  animation: process-pulse 2s ease-in-out infinite;
}

@keyframes process-pulse {
  0%,100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.12); opacity: 0.6; }
}

.process-step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.process-step-num {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.7;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  margin: 0;
}

.process-step-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 220px;
  margin: 0;
}

/* ============================================================
   THREAT MAP — Animated Visual
   ============================================================ */
.tm-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
  opacity: 0.6;
}
.tm-corner-tl { top: 12px; left: 12px;  border-top: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.tm-corner-tr { top: 12px; right: 12px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); }
.tm-corner-bl { bottom: 12px; left: 12px;  border-bottom: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.tm-corner-br { bottom: 12px; right: 12px; border-bottom: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); }

.tm-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.5), transparent);
  animation: tm-scan 3.5s linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes tm-scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.tm-status {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  z-index: 3;
}
.tm-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.tm-counter {
  position: absolute;
  bottom: 16px;
  right: 20px;
  text-align: right;
  z-index: 3;
}
.rtl .tm-counter { right: auto; left: 20px; text-align: left; }
.tm-counter-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.tm-counter-lbl {
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 0.2rem;
}

/* ============================================================
   PAGE TRANSITION CURTAIN — Gold wipe
   ============================================================ */
#page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;  /* hidden until curtain-enter/exit added by JS */
}

#page-curtain.curtain-enter,
#page-curtain.curtain-exit {
  visibility: visible;
}

.curtain-fill {
  position: absolute;
  inset: 0;
  background: #080B14;
  transform: scaleY(0);
  transform-origin: bottom;
  will-change: transform;
}

.curtain-logo {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* States driven by JS classes on #page-curtain */
#page-curtain.curtain-enter .curtain-fill {
  animation: curtain-in 0.55s cubic-bezier(0.76,0,0.24,1) forwards;
}
#page-curtain.curtain-enter .curtain-logo {
  animation: curtain-logo-in 0.3s 0.2s ease forwards;
}
#page-curtain.curtain-exit .curtain-fill {
  transform: scaleY(1);
  transform-origin: top;
  animation: curtain-out 0.5s 0.1s cubic-bezier(0.76,0,0.24,1) forwards;
}
#page-curtain.curtain-exit .curtain-logo {
  opacity: 1;
  animation: curtain-logo-out 0.2s ease forwards;
}

@keyframes curtain-in {
  0%   { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes curtain-out {
  0%   { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}
@keyframes curtain-logo-in  {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes curtain-logo-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .process-connector { display: none; }
}
@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   TRUST / FRAMEWORKS TICKER STRIP
   ============================================================ */
.section-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.trust-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  white-space: nowrap;
  padding: 1.25rem 2rem;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.rtl .trust-label {
  border-right: none;
  border-left: 1px solid var(--border);
}

.trust-track-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trust-scroll 38s linear infinite;
}
.trust-track:hover { animation-play-state: paused; }

@keyframes trust-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.rtl .trust-track { animation-name: trust-scroll-rtl; }
@keyframes trust-scroll-rtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.25rem 1.75rem;
  white-space: nowrap;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  transition: color 0.25s ease;
}
.trust-item:hover { color: var(--accent); }
.trust-item svg { stroke: var(--accent); opacity: 0.7; flex-shrink: 0; }
.trust-item:hover svg { opacity: 1; }

.trust-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   GLASSMORPHISM SERVICE CARDS — Dark theme only
   ============================================================ */
[data-theme="dark"] .section-services {
  background: var(--bg);
}

[data-theme="dark"] .services-grid {
  background: transparent;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

[data-theme="dark"] .service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: background 0.4s ease, border-color 0.4s ease,
              transform 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] .service-card:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4),
              0 0 0 1px rgba(var(--accent-rgb), 0.12),
              inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Glass top-edge highlight */
[data-theme="dark"] .service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 1rem; right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

[data-theme="dark"] .service-card:hover .service-icon-bg {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
}

/* Card accent glow on hover */
[data-theme="dark"] .service-card::before {
  background: radial-gradient(
    ellipse 60% 40% at var(--card-gx, 50%) var(--card-gy, 50%),
    rgba(var(--accent-rgb), 0.08),
    transparent 70%
  );
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.section-testimonials {
  padding: 7rem 0;
  background: var(--bg-2);
  position: relative;
}
.section-testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--border-2);
  pointer-events: none;
}
.rtl .testimonial-card::before { right: auto; left: 1.5rem; }

.testimonial-card:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--accent);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--fg-2);
  flex: 1;
  margin: 0;
  quotes: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.testimonial-role {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}

[data-theme="dark"] .testimonial-card {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .testimonial-card:hover {
  background: rgba(var(--accent-rgb), 0.04);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(var(--accent-rgb),0.1);
}

/* Responsive */
@media (max-width: 960px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-label { display: none; }
}

/* ============================================================
   FLOATING SCHEDULE CTA — Sticky pill at bottom-center
   ============================================================ */
.schedule-cta {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 200;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.schedule-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.schedule-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 100px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 8px 32px rgba(var(--accent-rgb), 0.4),
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.schedule-cta-pill:hover {
  background: var(--accent-2);
  transform: scale(1.04);
  box-shadow:
    0 16px 48px rgba(var(--accent-rgb), 0.5),
    0 4px 12px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.schedule-cta-pill:active {
  transform: scale(0.97);
}

.schedule-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.schedule-cta-text {
  color: white;
}

/* Keep above WhatsApp FAB, below modals */
#whatsapp-fab { z-index: 190; }

/* RTL */
.rtl .schedule-cta-pill { flex-direction: row-reverse; }

/* Hide on small screens if too cramped */
@media (max-width: 400px) {
  .schedule-cta { display: none; }
}

/* ============================================================
   PROCESS STEP ICONS — CSS mask-based (avoids WAF blocking inline SVG paths)
   ============================================================ */
[class^="process-icon-"] {
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--fg-muted);
  transition: background-color 0.4s ease;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}
.process-step.active [class^="process-icon-"],
.process-step:hover [class^="process-icon-"] {
  background-color: var(--accent);
}
.process-icon-shield-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E");
}
.process-icon-template {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z'/%3E%3C/svg%3E");
}
.process-icon-cog {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z'/%3E%3Ccircle cx='12' cy='12' r='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.process-icon-chart-bar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z'/%3E%3C/svg%3E");
}

/* ============================================================
   PRODUCTS MODULE
   ============================================================ */

/* Filter bar */
.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.product-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.25s ease;
}
.product-filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.product-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.product-filter-count {
  font-size: 0.65rem;
  opacity: 0.75;
  background: rgba(0,0,0,0.12);
  padding: 0.05rem 0.4rem;
  border-radius: 100px;
}
.product-filter-pill.active .product-filter-count { background: rgba(255,255,255,0.25); }

/* Product card extras (built on top of .service-card) */
.product-card { position: relative; }

.product-badge-new {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  z-index: 2;
}
.rtl .product-badge-new { right: auto; left: 1.5rem; }

.product-card-cat {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fg);
  margin: 0.75rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Detail page — category pill in hero */
.product-detail-cat-pill {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  background: var(--accent-light);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  border-radius: 100px;
  color: var(--accent);
}

/* Sidebar price box */
.product-price-box {
  background: var(--accent-light);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.product-price-main {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
}
.product-price-main span { font-size: 0.95rem; opacity: 0.7; }
.product-price-note {
  font-size: 0.74rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
}

/* Features grid (detail page) */
.product-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0;
}
.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.5;
}
.product-feature-item svg {
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Gallery */
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.product-gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pricing tiers */
.product-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.product-tier-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.product-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-tier-card.highlighted {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.12);
}
.product-tier-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}
.product-tier-name {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.product-tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.product-tier-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
}
.product-tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  margin-bottom: 1rem;
}
.product-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--fg-2);
  line-height: 1.5;
}
.product-tier-features svg {
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Dark mode glassmorphism for product cards */
[data-theme="dark"] .product-tier-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px) saturate(160%);
}
[data-theme="dark"] .product-tier-card.highlighted {
  background: rgba(var(--accent-rgb), 0.06);
}

/* Responsive */
@media (max-width: 700px) {
  .product-features-grid { grid-template-columns: 1fr; }
  .product-tiers-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ARABIC / RTL FONT OVERRIDE
   When the page language is Arabic, switch to Noto Sans Arabic
   which is professionally designed to pair with Inter and
   DM Serif Display. Letter-spacing is removed (Arabic doesn't
   use it) and line-height is increased for better readability.
   ============================================================ */
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .section-title,
html[lang="ar"] .hero-title,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[dir="rtl"] .section-title,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}

html[lang="ar"] .nav-link,
html[dir="rtl"] .nav-link {
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}
