/* ================================================================
   RUWWAD — MAIN STYLESHEET  v1.0
   ✦ To update the brand identity, edit only the :root token block.
   ================================================================ */

/* ── 1. FONTS ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/Urbanist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/Urbanist-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ── 2. TOKENS ────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --green-900: #00261f;
  --green-800: #003f33;
  --green-700: #006350;
  --green-300: #94d6c9;
  --gold:      #cf9220;
  --gold-dark: #a87118;
  --white:     #ffffff;

  /* Dark mode (default) */
  --bg:         #080909;
  --bg-2:       #0d1410;
  --bg-3:       #0f1a16;
  --bg-card:    rgba(255,255,255,0.035);
  --bg-card-h:  rgba(255,255,255,0.06);
  --bg-pill:    rgba(0,99,80,0.18);
  --border:     rgba(148,214,201,0.10);
  --border-h:   rgba(148,214,201,0.28);
  --border-accent: rgba(207,146,32,0.30);

  --text:       #f2f5f4;
  --text-2:     #94d6c9;
  --text-3:     rgba(148,214,201,0.45);
  --text-muted: rgba(242,245,244,0.45);

  --accent:     #3D9960;
  --accent-h:   #4db472;
  --accent-rgb: 61,153,96;
  --teal:       #27b0a4;
  --teal-rgb:   39,176,164;
  --cta:        #cf9220;
  --cta-h:      #e0a82a;
  --cta-rgb:    207,146,32;

  --nav-bg:     rgba(13,20,16,0.72);
  --shadow:     0 8px 32px rgba(0,0,0,0.35);
  --shadow-sm:  0 2px 8px  rgba(0,0,0,0.25);
  --shadow-card:0 4px 24px rgba(0,0,0,0.3);

  /* Futuristic layer */
  --glass:        rgba(255,255,255,0.045);
  --glass-border: rgba(148,214,201,0.14);
  --glow-accent:  0 0 40px rgba(61,153,96,.22);
  --grad-brand:   linear-gradient(100deg, #4db472 0%, #27b0a4 55%, #94d6c9 100%);
  --grad-warm:    linear-gradient(100deg, #cf9220, #e8b94f);
  --aurora-1:     rgba(61,153,96,.16);
  --aurora-2:     rgba(39,176,164,.13);
  --aurora-3:     rgba(207,146,32,.08);
  --grid-dot:     rgba(148,214,201,.13);

  /* Fonts */
  --font-en: 'Urbanist', 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'Tajawal', 'Arabic Typesetting', sans-serif;
  --font:    var(--font-en);

  /* Spacing */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;     --sp-24: 6rem;

  /* Typography */
  --text-xs:   0.75rem;   --text-sm:  0.875rem;
  --text-base: 1rem;      --text-lg:  1.125rem;
  --text-xl:   1.25rem;   --text-2xl: 1.5rem;
  --text-3xl:  1.875rem;  --text-4xl: 2.25rem;
  --text-5xl:  3rem;      --text-6xl: 3.75rem;
  --text-7xl:  4.5rem;

  /* Radii */
  --r-sm: 4px;  --r: 8px;  --r-md: 12px;
  --r-lg: 16px; --r-xl: 24px; --r-full: 9999px;

  /* Transitions */
  --ease: 0.3s ease;
  --ease-fast: 0.15s ease;
}

/* Light mode overrides (default look) */
[data-theme="light"] {
  --bg:      #fbfdfc;
  --bg-2:    #f2f8f5;
  --bg-3:    #e8f3ee;
  --bg-card: rgba(255,255,255,0.72);
  --bg-card-h: rgba(255,255,255,0.95);
  --bg-pill:   rgba(0,99,80,0.07);
  --border:    rgba(0,99,80,0.10);
  --border-h:  rgba(0,99,80,0.30);
  --border-accent: rgba(207,146,32,0.28);

  --text:      #07211b;
  --text-2:    #006350;
  --text-3:    rgba(0,99,80,0.5);
  --text-muted:rgba(7,33,27,0.58);

  --accent:    #006350;
  --accent-h:  #003f33;
  --accent-rgb:0,99,80;
  --cta:       #cf9220;
  --cta-h:     #b07810;

  --nav-bg:    rgba(255,255,255,0.66);
  --shadow:    0 8px 32px rgba(0,38,31,0.10);
  --shadow-sm: 0 2px 8px  rgba(0,38,31,0.07);
  --shadow-card:0 12px 36px rgba(0,38,31,0.09);

  /* Futuristic layer */
  --glass:        rgba(255,255,255,0.6);
  --glass-border: rgba(0,99,80,0.12);
  --glow-accent:  0 0 40px rgba(0,99,80,.10);
  --grad-brand:   linear-gradient(100deg, #006350 0%, #0a8f7a 55%, #27b0a4 100%);
  --grad-warm:    linear-gradient(100deg, #b07810, #cf9220);
  --aurora-1:     rgba(61,153,96,.13);
  --aurora-2:     rgba(39,176,164,.11);
  --aurora-3:     rgba(207,146,32,.07);
  --grid-dot:     rgba(0,99,80,.10);
}

/* Arabic font stack */
[dir="rtl"] { --font: var(--font-ar); }

/* ── 3. RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; border: none; outline: none;
}
button { cursor: pointer; background: none; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--cta); color: #fff; padding: .5rem 1rem;
  border-radius: var(--r); z-index: 1000;
  transition: top var(--ease-fast);
}
.skip-link:focus { top: 1rem; }

/* ── 4. TYPOGRAPHY ────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3 { letter-spacing: 0; }
p { color: var(--text-muted); line-height: 1.75; }
em { font-style: normal; color: var(--accent); }
strong { font-weight: 600; color: var(--text); }

/* ── 5. UTILITIES ─────────────────────────────────────────────── */
.container {
  width: 100%; max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1380px; }

.section { padding: var(--sp-24) 0; }
.section--sm { padding: var(--sp-16) 0; }
.section--lg { padding: clamp(var(--sp-16),10vw,8rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 1.5px;
  background: var(--accent);
}
[dir="rtl"] .eyebrow::before { display: none; }
[dir="rtl"] .eyebrow::after {
  content: '';
  display: inline-block; width: 20px; height: 1.5px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.section-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-sub,
.text-center .eyebrow { margin-left: auto; margin-right: auto; }
[dir="rtl"] .text-center .eyebrow { justify-content: center; }

.divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: var(--r-full);
  margin: var(--sp-6) 0;
}
.text-center .divider { margin: var(--sp-6) auto; }
[dir="rtl"] .divider { background: linear-gradient(270deg, var(--accent), transparent); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); }

/* ── 6. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .85rem 1.8rem; border-radius: var(--r-full);
  border: 1.5px solid transparent;
  transition: all var(--ease); white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: var(--cta); color: #fff;
  border-color: var(--cta);
  box-shadow: 0 4px 18px rgba(207,146,32,.25);
}
.btn-primary:hover {
  background: var(--cta-h); border-color: var(--cta-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(207,146,32,.35);
}
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border-h);
}
.btn-outline:hover {
  background: var(--bg-card-h); border-color: var(--accent);
  color: var(--accent); transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text-2);
  border-color: transparent; padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--accent); gap: var(--sp-3); }

/* WA button */
.btn-wa {
  background: #25D366; color: #fff; border-color: #25D366;
  box-shadow: 0 4px 18px rgba(37,211,102,.22);
}
.btn-wa:hover {
  background: #20bb58; border-color: #20bb58; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.32);
}
.btn-wa .wa-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── 7. BADGE / PILL ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--bg-pill); border: 1px solid var(--border-h);
  border-radius: var(--r-full);
  padding: .3rem .9rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.4s ease infinite;
}

/* ── 8. NAVBAR — floating glass capsule ──────────────────────── */
.navbar {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: min(1180px, calc(100% - 24px));
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  box-shadow: 0 4px 24px rgba(0,38,31,.06);
  transition: border-color var(--ease), box-shadow var(--ease), top var(--ease);
  height: 64px;
}
.navbar.scrolled {
  border-color: var(--border-h);
  box-shadow: 0 12px 40px rgba(0,38,31,.12), var(--glow-accent);
}
.nav-container {
  padding: 0 var(--sp-3) 0 var(--sp-6);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6);
}
[dir="rtl"] .nav-container { padding: 0 var(--sp-6) 0 var(--sp-3); }

/* Logo */
.nav-brand { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-brand img { height: 36px; width: auto; }
.logo-white   { display: block; }
.logo-icon    { display: none; }
.logo-text-lm { display: none; font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; color: var(--green-900); letter-spacing: .02em; }
[data-theme="light"] .logo-white   { display: none; }
[data-theme="light"] .logo-icon    { display: block; height: 36px; }
[data-theme="light"] .logo-text-lm { display: block; }

/* Desktop links */
.nav-links {
  display: flex; align-items: center; gap: var(--sp-2);
}
.nav-link {
  padding: .45rem var(--sp-4);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-full);
  transition: color var(--ease), background var(--ease);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: var(--r-full);
  background: var(--accent);
}

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: var(--text-xs); font-weight: 600;
  transition: all var(--ease);
}
.nav-icon-btn:hover { border-color: var(--border-h); color: var(--text); background: var(--bg-card); }

.nav-cta { padding: .55rem 1.2rem; font-size: var(--text-sm); }

/* Hamburger */
.hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--ease);
}
.nav-overlay.visible { opacity: 1; pointer-events: all; }

.mobile-menu {
  position: fixed; top: 84px; left: 12px; right: 12px; z-index: 99;
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1; pointer-events: all;
}
.mobile-nav-link {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base); font-weight: 500; color: var(--text-muted);
  border-radius: var(--r);
  transition: color var(--ease), background var(--ease);
}
.mobile-nav-link:hover { color: var(--text); background: var(--bg-card); }
.mobile-menu-actions {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-top: var(--sp-4); margin-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

/* ── 9. FOOTER ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.footer-brand .footer-logo img { height: 32px; margin-bottom: var(--sp-4); }
.footer-tagline { font-size: var(--text-sm); color: var(--text-3); max-width: 240px; line-height: 1.65; }
.footer-socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-3);
  transition: all var(--ease);
}
.social-link:hover {
  border-color: var(--border-h); color: var(--accent);
  background: var(--bg-card); transform: translateY(-2px);
}
.footer-col h4 {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: var(--sp-5);
}
.footer-col ul li + li { margin-top: var(--sp-3); }
.footer-col ul a {
  font-size: var(--text-sm); color: var(--text-muted);
  transition: color var(--ease);
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: var(--sp-6); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
}
.footer-copy { font-size: var(--text-xs); color: var(--text-3); }
.footer-bottom-links { display: flex; gap: var(--sp-5); }
.footer-bottom-links a { font-size: var(--text-xs); color: var(--text-3); transition: color var(--ease); }
.footer-bottom-links a:hover { color: var(--text-2); }

/* ── 10. CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color var(--ease), background var(--ease),
              transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-pill);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: var(--text-xl); font-weight: 700;
  margin-bottom: var(--sp-3); color: var(--text);
}
.card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--accent); transition: gap var(--ease), color var(--ease);
}
.card-link:hover { gap: var(--sp-3); color: var(--accent-h); }
[dir="rtl"] .card-link { flex-direction: row-reverse; }

/* Service card accent bar */
.card--service {
  position: relative; overflow: hidden;
}
.card--service::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green-300));
  opacity: 0;
  transition: opacity var(--ease);
}
.card--service:hover::before { opacity: 1; }

/* Value card */
.card--value { padding: var(--sp-6); }
.card--value h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.card--value p  { font-size: var(--text-sm); }

/* Sub-service card */
.card--sub {
  padding: var(--sp-6);
  border-radius: var(--r-md);
}
.card--sub h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--sp-2); color: var(--text); }
.card--sub p  { font-size: var(--text-sm); }

/* ── 11. IMAGE PLACEHOLDER ────────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-3);
  color: var(--text-3);
  font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase;
}
.img-placeholder .ph-icon {
  width: 40px; height: 40px; opacity: .4;
  border: 1.5px solid currentColor; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder .ph-prompt {
  font-size: 0.65rem; max-width: 200px; text-align: center;
  opacity: .5; line-height: 1.5;
}

/* ── 12. PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  padding-top: calc(72px + var(--sp-20));
  padding-bottom: var(--sp-20);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(46,125,82,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 90% 100%, rgba(0,63,51,.06) 0%, transparent 60%);
}
[data-theme="light"] .page-hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0,99,80,.04) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 90% 100%, rgba(0,63,51,.04) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: var(--sp-5); }
.page-hero-title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 800; margin-bottom: var(--sp-6); max-width: 800px;
}
.page-hero-sub {
  font-size: var(--text-xl); color: var(--text-muted);
  max-width: 600px; line-height: 1.7;
}

/* ── 13. HOME — HERO SECTION ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 72px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,9,9,.92) 0%,
    rgba(0,38,31,.80) 50%,
    rgba(0,63,51,.70) 100%
  );
}
[data-theme="light"] .hero-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.90) 0%,
    rgba(240,252,248,.85) 100%
  );
}
/* When no image is available, CSS gradient fills in */
.hero-bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(46,125,82,.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 100%,  rgba(0,63,51,.07)  0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5%  80%,   rgba(46,125,82,.05) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-deco-line {
  position: absolute; top:0; bottom:0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(148,214,201,.06) 40%, rgba(148,214,201,.06) 60%, transparent);
}
.hero-deco-line:first-child  { left: 12%; }
.hero-deco-line:last-child   { right: 12%; }

.hero-container {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: var(--sp-24) var(--sp-6);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16);
  align-items: center;
}
.hero-content .eyebrow { margin-bottom: var(--sp-5); }
.hero-title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 800; line-height: 1.1;
  margin-bottom: var(--sp-6);
  background: linear-gradient(135deg, var(--text) 40%, var(--text-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, var(--green-900) 40%, var(--green-700) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub {
  font-size: var(--text-lg); color: var(--text-muted);
  max-width: 520px; line-height: 1.75;
  margin-bottom: var(--sp-10);
}
.hero-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.hero-img-wrap {
  width: 100%; max-width: 500px;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Placeholder look for hero image */
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.hero-badge-wrap {
  position: absolute; bottom: var(--sp-6); left: var(--sp-6);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  min-width: 160px;
}
[dir="rtl"] .hero-badge-wrap { left: auto; right: var(--sp-6); }
.hero-badge-stat { font-size: var(--text-2xl); font-weight: 800; color: var(--accent); }
.hero-badge-label { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* ── 14. HOME — INTRO SECTION ─────────────────────────────────── */
.intro { background: var(--bg-2); }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-16); align-items: center;
}
.intro-text .section-title { margin-bottom: var(--sp-5); }
.intro-text .section-sub   { margin-bottom: var(--sp-8); }
.intro-pillars {
  display: flex; flex-direction: column; gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.intro-pillar {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--ease), background var(--ease);
}
.intro-pillar:hover { border-color: var(--border-h); background: var(--bg-card-h); }
.intro-pillar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 5px;
}
.intro-pillar-text strong { font-size: var(--text-base); display: block; margin-bottom: 2px; }
.intro-pillar-text span   { font-size: var(--text-sm); color: var(--text-muted); }

/* ── 15. HOME — SERVICES OVERVIEW ────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: var(--sp-6); margin-top: var(--sp-12);
}
.service-card-img {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden; margin-bottom: var(--sp-6);
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── 16. HOME — STATS ─────────────────────────────────────────── */
.stats { background: var(--bg-2); overflow: hidden; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--sp-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.stat-item {
  padding: var(--sp-10) var(--sp-8);
  background: var(--bg-card);
  text-align: center;
  border-inline-end: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background var(--ease);
}
.stat-item:last-child { border-inline-end: none; }
.stat-item:hover { background: var(--bg-card-h); }
.stat-item::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity var(--ease);
}
.stat-item:hover::before { opacity: 1; }
.stat-number {
  font-size: clamp(var(--text-4xl),5vw,var(--text-6xl));
  font-weight: 800; color: var(--accent);
  line-height: 1; display: block; margin-bottom: var(--sp-2);
}
.stat-label { font-size: var(--text-sm); color: var(--text-muted); }

/* ── 17. HOME — TEAM ──────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-8); margin-top: var(--sp-12);
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.team-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.team-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-info {
  padding: var(--sp-6) var(--sp-8);
}
.team-role {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--sp-1);
}
.team-name {
  font-size: var(--text-2xl); font-weight: 700;
  margin-bottom: var(--sp-1);
}
.team-sub {
  font-size: var(--text-sm); color: var(--text-3);
  margin-bottom: var(--sp-4);
}
.team-bio {
  font-size: var(--text-sm); color: var(--text-muted);
  line-height: 1.75;
}

/* ── 18. HOME — CTA BANNER ────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%,  rgba(148,214,201,.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(207,146,32,.04)  0%, transparent 55%);
}
[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
}
.cta-banner .container { position: relative; z-index: 1; text-align: center; }
.cta-banner .eyebrow { color: var(--green-300); }
.cta-banner .eyebrow::before, [dir="rtl"] .cta-banner .eyebrow::after {
  background: var(--green-300);
}
.cta-banner-title {
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: 800; color: #fff;
  margin-bottom: var(--sp-4);
}
.cta-banner-sub {
  font-size: var(--text-lg); color: rgba(148,214,201,.8);
  max-width: 500px; margin: 0 auto var(--sp-10);
}
.cta-banner-actions { display: flex; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* ── 19. SERVICES PAGE ────────────────────────────────────────── */
.services-tabs {
  display: flex; gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.services-tabs::-webkit-scrollbar { display: none; }
.services-tab {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.services-tab.active, .services-tab:hover {
  color: var(--accent); border-color: var(--accent);
}

.service-section { margin-bottom: var(--sp-24); }
.service-section:last-child { margin-bottom: 0; }
.service-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-12); align-items: center;
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--border);
}
.service-header-img {
  aspect-ratio: 16/10; border-radius: var(--r-xl); overflow: hidden;
}
.service-header-img img { width: 100%; height: 100%; object-fit: cover; }
.service-num {
  font-family: var(--font-en);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .2em;
  color: var(--text-3); text-transform: uppercase; margin-bottom: var(--sp-3);
}
.service-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 800; margin-bottom: var(--sp-5);
}
.service-desc {
  font-size: var(--text-base); color: var(--text-muted);
  line-height: 1.8; margin-bottom: var(--sp-6);
}
.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: var(--sp-4);
}
.sub-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.sub-service-card:hover {
  border-color: var(--border-h); background: var(--bg-card-h); transform: translateY(-2px);
}
.sub-service-num {
  font-size: var(--text-xs); font-weight: 700; color: var(--accent);
  letter-spacing: .1em; margin-bottom: var(--sp-3);
}
.sub-service-card h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--sp-2); }
.sub-service-card p  { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* Founder note on services page */
.service-founder {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-8);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); margin-top: var(--sp-10);
}
.service-founder-photo {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; border: 2px solid var(--border-h);
  background: var(--bg-3);
}
.service-founder-photo img { width:100%; height:100%; object-fit: cover; }
.service-founder-name { font-size: var(--text-base); font-weight: 700; margin-bottom: 2px; }
.service-founder-title { font-size: var(--text-sm); color: var(--text-muted); }
.service-founder-exp { font-size: var(--text-xs); color: var(--accent); margin-top: 2px; }

/* ── 20. ABOUT PAGE ───────────────────────────────────────────── */
.about-story {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-16); align-items: center;
}
.about-story-img {
  aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden;
}
.about-story-img img { width: 100%; height: 100%; object-fit: cover; }
.about-story-text p + p { margin-top: var(--sp-5); }

.values-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--sp-4);
}
.value-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: border-color var(--ease), transform var(--ease);
}
.value-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.value-num {
  font-size: var(--text-3xl); font-weight: 800;
  color: var(--accent); opacity: .25; line-height: 1;
  margin-bottom: var(--sp-4);
}
.value-card h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.value-card p  { font-size: var(--text-sm); }

.about-team-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-12); margin-top: var(--sp-12);
}
.about-team-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-8); align-items: start;
}
.about-team-photo {
  aspect-ratio: 3/4; border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-3);
}
.about-team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-team-role {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-1);
}
.about-team-name { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 4px; }
.about-team-sub  { font-size: var(--text-sm); color: var(--text-3); margin-bottom: var(--sp-5); }
.about-team-bios p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.75; }
.about-team-bios p + p { margin-top: var(--sp-4); }

/* ── 21. CONTACT PAGE ─────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-16); align-items: start;
}
.contact-channels { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-channel {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-7);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.contact-channel:hover { border-color: var(--border-h); background: var(--bg-card-h); transform: translateY(-2px); }
.contact-channel-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-pill); border-radius: var(--r-md);
  color: var(--accent);
}
.contact-channel-info h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 4px; }
.contact-channel-info p  { font-size: var(--text-sm); color: var(--text-muted); }
.contact-channel-link { margin-top: var(--sp-3); }

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
}
.contact-form-title { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--sp-2); }
.contact-form-sub   { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--sp-8); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .05em; color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .8rem var(--sp-4);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: var(--text-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,153,96,.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888897' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
[dir="rtl"] .form-select { background-position: left 1rem center; padding-right: var(--sp-4); padding-left: 2.5rem; }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-submit { width: 100%; padding: var(--sp-4); font-size: var(--text-sm); font-weight: 600; }
.form-success {
  display: none; align-items: center; justify-content: center;
  gap: var(--sp-3); padding: var(--sp-10);
  font-size: var(--text-base); color: var(--accent);
  text-align: center;
}

/* ── 22. INNER-PAGE EXTRAS ───────────────────────────────────── */
.page-hero--short { padding-bottom: var(--sp-16); }

/* ── 22b. TEAM FULL CARDS (about page) ───────────────────────── */
.team-full-card {
  display: grid; grid-template-columns: 340px 1fr;
  gap: var(--sp-16); align-items: start;
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}
.team-full-card:last-child { border-bottom: none; }
.team-full-card--flip { grid-template-columns: 1fr 340px; }
.team-full-card--flip .team-full-photo { order: 2; }
.team-full-card--flip .team-full-bio   { order: 1; }

.team-full-photo {
  aspect-ratio: 3/4; border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-3); position: sticky; top: 100px;
}
.team-full-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.team-full-bio { padding-top: var(--sp-2); }
.team-full-bio h3 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800; margin-bottom: var(--sp-2); margin-top: var(--sp-3);
}
.team-full-role {
  font-size: var(--text-sm); color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.team-full-tags {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.team-full-tags span {
  background: var(--bg-pill); border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: .3rem .85rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em;
  color: var(--accent);
}
.team-full-bio p {
  font-size: var(--text-base); color: var(--text-muted);
  line-height: 1.8; margin-bottom: var(--sp-5);
}
.team-full-bio .eyebrow { margin-bottom: var(--sp-2); }

/* ── 22c. TWO-COL GRID utility ───────────────────────────────── */
.two-col-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-16); align-items: center;
}
.two-col-grid h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800; margin-bottom: var(--sp-5);
}

/* ── 22d. VALUE CARD icon style ──────────────────────────────── */
.value-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-pill); border-radius: var(--r-md);
  color: var(--accent); margin-bottom: var(--sp-4);
}
.value-card h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--sp-2); }
.value-card p  { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ── 22e. CONTACT PAGE LAYOUT ────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-16); align-items: start;
}
.contact-channels-title {
  font-size: var(--text-xl); font-weight: 700;
  margin-bottom: var(--sp-4);
}

/* Channel cards */
.contact-channel-card {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); text-decoration: none; color: inherit;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.contact-channel-card:hover {
  border-color: var(--border-h); background: var(--bg-card-h); transform: translateY(-2px);
}
.contact-channel-card--primary {
  background: rgba(37,211,102,0.07);
  border-color: rgba(37,211,102,0.25);
}
.contact-channel-card--primary:hover {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.45);
}
.channel-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,211,102,0.1); border-radius: var(--r-md);
  color: #25D366;
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-icon--green { background: var(--bg-pill); color: var(--accent); }
.channel-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: var(--sp-1);
}
.channel-value { font-size: var(--text-base); font-weight: 600; color: var(--text); }
.channel-note  { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.channel-arrow {
  margin-left: auto; font-size: 1.2rem; color: var(--text-3);
  transition: transform var(--ease), color var(--ease);
}
.contact-channel-card:hover .channel-arrow { transform: translateX(4px); color: var(--accent); }
[dir="rtl"] .channel-arrow { margin-left: 0; margin-right: auto; }
[dir="rtl"] .contact-channel-card:hover .channel-arrow { transform: translateX(-4px); }

/* Contact form card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
}
.contact-form-card h2 {
  font-size: var(--text-2xl); font-weight: 700;
  margin-bottom: var(--sp-2);
}

/* Styled form inputs */
.form-group { margin-bottom: var(--sp-5); position: relative; }
.form-group label {
  display: block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .05em; color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .8rem var(--sp-4);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: var(--text-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,153,96,.12);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888897' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
[dir="rtl"] .form-group select {
  background-position: left 1rem center; padding-right: var(--sp-4); padding-left: 2.5rem;
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-error {
  display: none; font-size: var(--text-xs); color: #e05c5c;
  margin-top: var(--sp-1);
}
.form-group.invalid .form-error { display: block; }
.form-group.invalid input,
.form-group.invalid textarea { border-color: #e05c5c; }
.form-submit { width: 100%; padding: var(--sp-4); font-size: var(--text-sm); font-weight: 600; }
.form-success {
  display: none;            /* hidden until JS reveals it */
  align-items: center; justify-content: center;
  gap: var(--sp-3); padding: var(--sp-8);
  font-size: var(--text-base); color: var(--accent);
  text-align: center;
}
.form-success:not([hidden]) { display: flex; }
.btn-loading[hidden] { display: none; }
.btn-loading { display: inline-flex; align-items: center; gap: var(--sp-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .9s linear infinite; }

/* FAQ accordion */
.contact-faq {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.contact-faq h3 {
  font-size: var(--text-base); font-weight: 700;
  margin-bottom: var(--sp-4);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: var(--sp-4) 0; list-style: none;
  font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--accent);
  transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  font-size: var(--text-sm); color: var(--text-muted);
  padding-bottom: var(--sp-4); line-height: 1.75;
}

/* ── 22f. RESPONSIVE: new-page additions ─────────────────────── */
@media (max-width: 1024px) {
  .team-full-card,
  .team-full-card--flip { grid-template-columns: 1fr; gap: var(--sp-8); }
  .team-full-card--flip .team-full-photo,
  .team-full-card--flip .team-full-bio { order: unset; }
  .team-full-photo { position: static; aspect-ratio: 3/2; max-width: 360px; }
  .two-col-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 8rem 0 3.5rem; }
  .page-hero--short { padding: 8rem 0 3rem; }
  .team-full-photo { max-width: 100%; aspect-ratio: 1/1; }
}

/* ── 23. COMING SOON ──────────────────────────────────────────── */
.cs-layer {
  min-height: 100vh; position: relative;
  background: #080909;
  display: flex; flex-direction: column;
  overflow: hidden;
}
#cs-canvas {
  position: fixed; inset: 0; z-index: 0;
}
.cs-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%,  rgba(46,125,82,.06)  0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 105%, rgba(15,25,20,.08)   0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 80%,  rgba(61,153,96,.03)  0%, transparent 50%);
}
.cs-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cs-deco::before, .cs-deco::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.04) 40%, rgba(255,255,255,.04) 60%, transparent);
  animation: fadeIn .5s ease 1.8s both;
}
.cs-deco::before { left: 12%; }
.cs-deco::after  { right: 12%; }

.cs-page {
  position: relative; z-index: 1; flex: 1;
  display: grid; grid-template-rows: 1fr auto;
}
.cs-main {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(4rem,10vh,7rem) 1.5rem clamp(2.5rem,5vh,4rem);
}
.cs-inner { width: 100%; max-width: 860px; }

.cs-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(46,125,82,.1);
  border: 1px solid rgba(61,153,96,.35);
  border-radius: 100px; padding: .35rem 1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #3D9960;
  margin-top: 1.4rem; margin-bottom: 2.2rem;
}
.cs-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #3D9960;
  animation: pulseDot 2.4s ease infinite;
}

.cs-logo {
  margin-bottom: 2rem;
  padding-top: 0;
}
.cs-logo img { height: clamp(80px, 14vw, 160px); width: auto; margin: 0 auto; }

.cs-tagline {
  font-family: var(--font-en);
  font-size: clamp(1.35rem, 3.8vw, 2.1rem);
  font-weight: 300; color: #f2f5f4;
  line-height: 1.35; margin-bottom: 1.1rem;
}
[dir="rtl"] .cs-tagline { font-family: var(--font-ar); }
.cs-tagline em { font-style: normal; color: #3D9960; }

.cs-divider {
  width: 50px; height: 1px;
  margin: 1.8rem auto;
  background: linear-gradient(90deg, transparent, #3D9960, transparent);
  animation: lineGrow .8s cubic-bezier(.16,1,.3,1) .7s both;
}
[dir="rtl"] .cs-divider {
  background: linear-gradient(270deg, transparent, #3D9960, transparent);
}

.cs-desc {
  font-size: clamp(.875rem, 2vw, .975rem);
  color: rgba(148,214,201,.65);
  font-family: var(--font-en); line-height: 1.85;
  max-width: 540px; margin: 0 auto 2.6rem;
}
[dir="rtl"] .cs-desc { font-family: var(--font-ar); }

.cs-pillars {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .65rem; margin-bottom: 3rem;
}
.cs-pillar {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; padding: .5rem 1.15rem;
  font-size: .75rem; color: rgba(242,245,244,.55);
  transition: border-color .3s, color .3s, transform .3s;
}
.cs-pillar:hover { border-color: rgba(61,153,96,.35); color: #f2f5f4; transform: translateY(-2px); }
.cs-pillar-dot { width: 4px; height: 4px; border-radius: 50%; background: #3D9960; opacity: .7; flex-shrink:0; }

.cs-countdown-label {
  font-size: .68rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
}
.cs-countdown {
  display: flex; justify-content: center;
  gap: clamp(.8rem, 3vw, 2rem);
}
.cs-cd-unit { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.cs-cd-number {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 300; line-height: 1;
  color: #cf9220; min-width: 2ch; text-align: center;
}
.cs-cd-number.flip { animation: countUp .25s ease both; }
.cs-cd-sep {
  font-family: var(--font-en);
  font-size: clamp(1.8rem,5vw,3rem); font-weight: 300;
  color: #cf9220; opacity: .25; line-height: 1;
  padding-bottom: .6rem; align-self: flex-end;
}
.cs-cd-caption {
  font-size: .6rem; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}

.cs-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.4rem 1.5rem;
}
.cs-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; max-width: 900px; margin: 0 auto;
}
.cs-footer-copy { font-size: .72rem; color: rgba(255,255,255,.2); letter-spacing: .03em; }
.cs-social-links { display: flex; gap: .75rem; }
.cs-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
  color: rgba(255,255,255,.25); text-decoration: none;
  transition: border-color .25s, color .25s, transform .25s, background .25s;
}
.cs-social-link:hover {
  border-color: rgba(61,153,96,.4); color: #3D9960;
  background: rgba(61,153,96,.08); transform: translateY(-2px);
}
/* CS lang/theme toggles */
.cs-controls {
  display: flex; align-items: center; gap: .6rem;
  margin-top: 2.5rem;
}
.cs-ctrl-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
  color: rgba(255,255,255,.3); font-size: .68rem; font-weight: 600;
  transition: all .25s;
}
.cs-ctrl-btn:hover {
  border-color: rgba(61,153,96,.4); color: #3D9960;
  background: rgba(61,153,96,.08);
}

/* ── 23. ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity:0 }              to { opacity:1 } }
@keyframes fadeUp    { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:translateY(0) } }
@keyframes lineGrow  { from { transform:scaleX(0) }    to { transform:scaleX(1) } }
@keyframes pulseDot  {
  0%,100% { transform:scale(1);   box-shadow: 0 0 0 0   rgba(61,153,96,.3) }
  50%     { transform:scale(1.35); box-shadow: 0 0 8px 3px rgba(61,153,96,.3) }
}
@keyframes countUp   { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }
@keyframes shimmerBg {
  0%   { background-position: -250% center }
  100% { background-position: 250% center }
}

/* Scroll-triggered */
.fade-up, .fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.fade-in { transform: none; }
.fade-up.visible, .fade-in.visible { opacity:1; transform:none; }

/* Stagger children */
.stagger-children > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.stagger-children.visible > *:nth-child(1)  { transition-delay: .05s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: .12s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: .19s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: .26s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: .33s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: .40s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: .47s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: .54s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(9)  { transition-delay: .61s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(10) { transition-delay: .68s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(11) { transition-delay: .75s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(12) { transition-delay: .82s;  opacity:1; transform:none; }
.stagger-children.visible > *:nth-child(13) { transition-delay: .89s;  opacity:1; transform:none; }

/* Coming soon entrance */
.cs-a1  { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .10s both }
.cs-a2  { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .30s both }
.cs-a3  { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .55s both }
.cs-a4  { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .75s both }
.cs-a5  { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .95s both }
.cs-a6  { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) 1.15s both }
.cs-a7  { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) 1.35s both }

/* Inner-page hero entrance (plays immediately on load, not scroll) */
.page-hero .fade-up,
.page-hero .fade-in { animation: heroIn .9s cubic-bezier(.16,1,.3,1) both; }
.page-hero .eyebrow.fade-in { animation-delay: .05s; }
.page-hero-title.fade-up    { animation-delay: .18s; }
.page-hero-sub.fade-up      { animation-delay: .32s; }
@keyframes heroIn { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform:none; } }

/* Animated underline on nav links (grows from center on hover) */
.nav-link::before {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 1.5px; border-radius: 2px;
  background: var(--accent); opacity: 0;
  transform: translateX(-50%);
  transition: width var(--ease), opacity var(--ease);
}
.nav-link:hover::before { width: 40%; opacity: .8; }
.nav-link.active::before { width: 0; }

/* Soft pulse-glow used by primary CTAs on hover */
.btn-primary:hover, .btn-wa:hover { animation: ctaPulse 1.6s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(207,146,32,.32); }
  50%      { box-shadow: 0 8px 34px rgba(207,146,32,.50); }
}
.btn-wa:hover { animation-name: ctaPulseWa; }
@keyframes ctaPulseWa {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,.32); }
  50%      { box-shadow: 0 8px 34px rgba(37,211,102,.52); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .fade-in, .stagger-children > * { opacity: 1 !important; transform: none !important; }
}

/* ── 24. RTL OVERRIDES ────────────────────────────────────────── */
[dir="rtl"] .hero-container { direction: rtl; }
[dir="rtl"] .btn-ghost { padding-left: 0; padding-right: 0; }
[dir="rtl"] .card-link { flex-direction: row-reverse; }
[dir="rtl"] .eyebrow    { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-socials { flex-direction: row-reverse; }
[dir="rtl"] .intro-pillar { flex-direction: row; }
[dir="rtl"] .service-founder { flex-direction: row; }
[dir="rtl"] .contact-channel { flex-direction: row; }
[dir="rtl"] .about-team-card { direction: rtl; }
[dir="rtl"] .hero-badge-wrap { text-align: right; }
[dir="rtl"] .cs-tagline { direction: rtl; }

/* ── 24b. PILLAR THEMING ──────────────────────────────────────────
   Each pillar borrows a color that already lives in the Ruwwad palette,
   so the three feel like one family:
     • Finance  → emerald green  (the core forest-green = trust, money)
     • Media    → brand gold     (#cf9220 = spotlight, warmth, creativity)
     • AI/Soft  → teal / cyan    (green→mint bridge = technology, future)
   Setting [data-pillar] on any element re-scopes --accent for everything
   inside it. Colors transition smoothly thanks to the var() inheritance. */

[data-pillar="finance"] {
  --accent: #36a86a; --accent-h: #49bd7d; --accent-rgb: 54,168,106;
}
[data-pillar="media"] {
  --accent: #d9a23c; --accent-h: #ecb44f; --accent-rgb: 217,162,60;
}
[data-pillar="ai"] {
  --accent: #27b0a4; --accent-h: #3ac7ba; --accent-rgb: 39,176,164;
}
[data-pillar="legal"] {
  --accent: #8b6fd4; --accent-h: #a084e8; --accent-rgb: 139,111,212;
}
/* Light-mode: darker variants so accents stay readable on white */
[data-theme="light"] [data-pillar="finance"],
[data-theme="light"][data-pillar="finance"] {
  --accent: #0c7a4d; --accent-h: #095f3c; --accent-rgb: 12,122,77;
}
[data-theme="light"] [data-pillar="media"],
[data-theme="light"][data-pillar="media"] {
  --accent: #a8771a; --accent-h: #8a610f; --accent-rgb: 168,119,26;
}
[data-theme="light"] [data-pillar="ai"],
[data-theme="light"][data-pillar="ai"] {
  --accent: #0a7d74; --accent-h: #065a53; --accent-rgb: 10,125,116;
}
[data-theme="light"] [data-pillar="legal"],
[data-theme="light"][data-pillar="legal"] {
  --accent: #6347b8; --accent-h: #4f38a0; --accent-rgb: 99,71,184;
}

/* — Pillar section: ambient glow that reveals on scroll-in — */
.service-section { position: relative; }
.service-section::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: -60px; inset-inline-start: -10%;
  width: 55%; height: 360px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .14), transparent 72%);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.service-section.glow-in::before { opacity: 1; transform: translateY(0); }

/* — "Pillar 01" gets a colored leading tick — */
.service-num {
  display: inline-flex; align-items: center;
  color: var(--accent);
}
.service-num::before {
  content: ''; display: inline-block;
  width: 28px; height: 2px; border-radius: 2px;
  background: var(--accent);
  margin-inline-end: 12px;
  transition: width var(--ease);
}
.service-section.glow-in .service-num::before { animation: tickGrow .7s cubic-bezier(.16,1,.3,1) both; }
@keyframes tickGrow { from { width: 0; } to { width: 28px; } }

/* — Pillar title gets a faint accent underline accent on the section — */
.service-title { position: relative; }

/* — Header image placeholder tinted to the pillar — */
[data-pillar] .service-header-img .img-placeholder {
  border-color: rgba(var(--accent-rgb), .30);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .10) 0%, var(--bg-2) 100%);
  color: rgba(var(--accent-rgb), .85);
}

/* — Sub-service cards: accent number + accent hover edge — */
.sub-service-card .sub-service-num { color: var(--accent); font-weight: 700; }
.sub-service-card {
  position: relative;
  border-inline-start: 2px solid transparent;
}
.sub-service-card:hover {
  border-color: rgba(var(--accent-rgb), .35);
  border-inline-start-color: var(--accent);
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), .10);
}
.sub-service-card h4 { transition: color var(--ease); }
.sub-service-card:hover h4 { color: var(--accent); }

/* — Founder strip accent — */
[data-pillar] .service-founder-photo { border-color: rgba(var(--accent-rgb), .45); }
[data-pillar] .service-founder-exp   { color: var(--accent); }

/* — Per-pillar coloured tabs (each tab carries its own pillar color) — */
.services-tab[data-pillar] { color: var(--text-muted); }
.services-tab[data-pillar].active,
.services-tab[data-pillar]:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.services-tabs { border-bottom: 1px solid var(--border); }

/* — Home service cards: tint icon, link, top-bar & hover to pillar — */
[data-pillar] .card-icon {
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
[data-pillar].card--service:hover {
  border-color: rgba(var(--accent-rgb), .40);
  box-shadow: 0 16px 40px rgba(var(--accent-rgb), .12);
}
[data-pillar].card--service::before {
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), .35));
}
[data-pillar] .card-link { color: var(--accent); }
[data-pillar] .card-link:hover { color: var(--accent-h); }
[data-pillar] .service-card-img .img-placeholder {
  border-color: rgba(var(--accent-rgb), .25);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0%, var(--bg-2) 100%);
}

/* — Intro mini-pillars: colored dots — */
[data-pillar] .intro-pillar-dot { background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .5); }

/* ── 25. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-visual { display: none; } /* show only on large screens */
  .hero-sub   { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .about-story { grid-template-columns: 1fr; gap: var(--sp-10); }
  .about-team-grid { grid-template-columns: 1fr; }
  .about-team-card { grid-template-columns: 1fr; gap: var(--sp-6); }
  .about-team-photo { aspect-ratio: 3/2; max-width: 320px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .section     { padding: var(--sp-16) 0; }
  .section--lg { padding: var(--sp-16) 0; }

  .intro-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr; }
  .stat-item     { border-inline-end: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .team-grid     { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .service-header{ grid-template-columns: 1fr; }
  .service-header-img { display: none; }
  .sub-services-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  [dir="rtl"] .hero-actions { align-items: flex-end; }
  .cs-deco::before, .cs-deco::after { display: none; }

  .page-hero-title { font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl)); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }
  .cs-countdown { gap: .6rem; }
  .cs-cd-sep { display: none; }
  .contact-form-wrap { padding: var(--sp-6); }
  .values-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   ── 26. FUTURISTIC LAYER ─────────────────────────────────────────
   Aurora atmospheres, glass surfaces, spotlight & tilt interactions,
   marquee, scroll progress, gradient type. Light-first design.
   ================================================================ */

/* — Gradient text — */
.grad-text, .hero-title em {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: normal;
  /* inline padding extends the background paint area so Arabic marks
     (and descenders) above/below the em box still receive gradient paint
     — without it they render transparent (clipped look) */
  padding: .55em .15em;
}

/* — Aurora atmosphere (3 drifting blobs) — */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%;
  filter: blur(70px); will-change: transform;
}
.aurora i:nth-child(1) {
  width: 56vw; height: 56vw; min-width: 480px; min-height: 480px;
  background: radial-gradient(circle, var(--aurora-1), transparent 65%);
  top: -24vw; inset-inline-start: -14vw;
  animation: auroraDrift 19s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 46vw; height: 46vw; min-width: 400px; min-height: 400px;
  background: radial-gradient(circle, var(--aurora-2), transparent 65%);
  bottom: -20vw; inset-inline-end: -12vw;
  animation: auroraDrift 24s ease-in-out -7s infinite alternate-reverse;
}
.aurora i:nth-child(3) {
  width: 32vw; height: 32vw; min-width: 300px; min-height: 300px;
  background: radial-gradient(circle, var(--aurora-3), transparent 65%);
  top: 28%; inset-inline-start: 52%;
  animation: auroraDrift 28s ease-in-out -13s infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(5vw, 4vh) scale(1.18); }
}

/* — Dot-grid backdrop — */
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 25%, transparent 72%);
}

/* — Scroll progress bar — */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* — Cursor glow (fine pointers only) — */
#cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .065), transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; transition: opacity .6s ease;
}
@media (pointer: coarse) { #cursor-glow { display: none; } }

/* — Marquee strip — */
.marquee-section {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
  background: var(--bg-2);
}
.marquee { display: flex; width: max-content; }
.marquee-group {
  display: flex; align-items: center; gap: var(--sp-12);
  padding-inline-end: var(--sp-12);
  animation: marqueeScroll 30s linear infinite;
}
.marquee-section:hover .marquee-group { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: var(--sp-12);
  font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 700;
  letter-spacing: .02em; white-space: nowrap;
  color: var(--text-3);
  transition: color var(--ease);
}
.marquee-item::after {
  content: ''; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--accent); opacity: .45; flex-shrink: 0;
}
.marquee-item:hover { color: var(--accent); }
@keyframes marqueeScroll { to { transform: translateX(-100%); } }
[dir="rtl"] .marquee-group { animation-direction: reverse; }

/* — Spotlight: radial highlight follows cursor inside cards — */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .45s ease; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
              rgba(var(--accent-rgb), .12), transparent 65%);
}
.spotlight:hover::after { opacity: 1; }

/* — Glass card upgrade (rounder, blurred, softer) — */
.card, .sub-service-card, .value-card, .team-card,
.contact-channel-card, .contact-form-card, .intro-pillar, .service-founder {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card, .team-card, .contact-form-card { border-radius: 22px; }
.sub-service-card, .value-card, .intro-pillar { border-radius: 18px; }
[data-tilt] { will-change: transform; transition: transform .35s cubic-bezier(.16,1,.3,1), border-color var(--ease), background var(--ease), box-shadow var(--ease); }

/* — Conic rotating border for hero visual / featured panels — */
@property --spin-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glow-border { position: relative; }
.glow-border::before {
  content: ''; position: absolute; inset: -1.5px; z-index: 2;
  border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--spin-angle),
              transparent 0%, rgba(var(--accent-rgb), .9) 10%,
              rgba(var(--teal-rgb), .7) 18%, transparent 30%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAngle 5.5s linear infinite;
  pointer-events: none;
}
@keyframes spinAngle { to { --spin-angle: 360deg; } }

/* — HOME HERO v2 — */
.hero { min-height: 94vh; }
.hero-title {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  background: none; -webkit-text-fill-color: var(--text); color: var(--text);
}
[data-theme="light"] .hero-title { background: none; -webkit-text-fill-color: var(--text); }
[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.32; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* split-word reveal */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .3em .02em .08em; margin: -.3em -.02em -.08em; }
.split-word > span {
  display: inline-block; transform: translateY(140%);
  animation: wordRise .85s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(var(--wi, 0) * .075s + .12s);
}
@keyframes wordRise { to { transform: translateY(0); } }

/* hero floating glass chips */
.hero-visual { position: relative; }
.hero-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: .8rem 1.15rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; box-shadow: var(--shadow-card);
  animation: chipFloat 6.5s ease-in-out infinite;
}
.hero-chip .chip-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), .14); color: var(--accent);
}
.hero-chip strong { display: block; font-size: .85rem; line-height: 1.2; color: var(--text); }
.hero-chip span   { font-size: .67rem; color: var(--text-muted); }
.hero-chip--1 { top: 8%;  inset-inline-start: -9%; animation-delay: -1.5s; }
.hero-chip--2 { bottom: 14%; inset-inline-end: -8%; animation-delay: -3.5s; }
.hero-chip--3 { bottom: -4%; inset-inline-start: 6%; animation-delay: -5s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* hero visual ring */
.hero-img-wrap { border-radius: 26px; }
.hero-img-wrap .img-placeholder { border-radius: 26px; }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3); z-index: 2;
}
.scroll-hint::after {
  content: ''; width: 1.5px; height: 44px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* — Stats: gradient numbers on glass — */
.stat-number {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-grid { border-radius: 26px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* — CTA banner: rounded floating panel — */
.cta-banner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  border-radius: 30px;
}

/* — Section heroes (inner pages) get aurora room — */
.page-hero { isolation: isolate; }

/* — Image placeholders: shimmer sweep — */
.img-placeholder { position: relative; overflow: hidden; }
.img-placeholder::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-18deg);
  animation: phShimmer 3.2s ease-in-out infinite;
}
[data-theme="light"] .img-placeholder::after {
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
}
@keyframes phShimmer { 0% { left: -60%; } 60%, 100% { left: 130%; } }

/* — Button shine sweep — */
.btn-primary, .btn-wa { position: relative; overflow: hidden; }
.btn-primary::after, .btn-wa::after {
  content: ''; position: absolute; top: 0; height: 100%; width: 38%; left: -55%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn-primary:hover::after, .btn-wa:hover::after { left: 125%; }

/* — Section title underline flourish — */
.text-center .section-title { position: relative; }

/* — Futuristic responsive tweaks — */
@media (max-width: 1024px) {
  .hero-chip--1, .hero-chip--2, .hero-chip--3 { display: none; }
}
@media (max-width: 768px) {
  .navbar { top: 8px; width: calc(100% - 16px); height: 58px; }
  .mobile-menu { top: 74px; left: 8px; right: 8px; }
  .marquee-group { animation-duration: 22s; }
  .cta-banner { width: calc(100% - 24px); border-radius: 22px; }
  .scroll-hint { display: none; }
  .hero { min-height: 88vh; }
}

/* — Logos: never stretch — always natural aspect ratio, sized by height — */
.nav-brand img,
.footer-brand .footer-logo img,
.footer-logo img,
.cs-logo img {
  width: auto;
  object-fit: contain;
}

/* — Spacing fixes: badge↔title gap & CTA eyebrow gap (AR diacritics need air) — */
.hero-content .badge { margin-bottom: var(--sp-6); }
.cta-banner .eyebrow { margin-bottom: var(--sp-6); }
