/* ===========================================
   Mahlati.com — Shared Design System
   Brand palette: Indigo + Amber, Slate neutrals
   =========================================== */

:root {
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #1e1b4b;

  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;

  --ink-50:  #f8fafc;
  --ink-100: #f1f5f9;
  --ink-200: #e2e8f0;
  --ink-400: #94a3b8;
  --ink-500: #64748b;
  --ink-700: #334155;
  --ink-800: #1e293b;
  --ink-900: #0f172a;
  --ink-950: #020617;
}

/* Typography */
html { scroll-behavior: smooth; }
body.font-en { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body.font-ar { font-family: 'Cairo', 'Tajawal', system-ui, sans-serif; }

/* Hero gradient background */
.hero-bg {
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(99,102,241,0.25) 0%, transparent 60%),
    radial-gradient(50% 40% at 85% 75%, rgba(245,158,11,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0f172a 60%, #020617 100%);
}

/* Glass / card surfaces */
.surface-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
.surface-card {
  background: #ffffff;
  border: 1px solid var(--ink-200);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -12px rgba(15,23,42,0.10);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.surface-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(15,23,42,0.06), 0 22px 38px -14px rgba(79,70,229,0.25);
  border-color: var(--brand-200);
}

/* Brand gradients */
.brand-gradient   { background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 100%); }
.accent-gradient  { background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%); }
.text-gradient    { background: linear-gradient(135deg, var(--brand-500) 0%, var(--accent-500) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pillar connector (ERP / POS / Ecom) */
.pillar-node {
  position: relative;
  isolation: isolate;
}
.pillar-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.7), rgba(245,158,11,0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* RTL helpers — flip subtle icon rotations etc. */
[dir="rtl"] .flip-on-rtl { transform: scaleX(-1); }

/* Logo mark sizing */
.logo-mark { width: 32px; height: 32px; }

/* Subtle pattern for sections */
.dotted-bg {
  background-image: radial-gradient(rgba(15,23,42,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Animations */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }

@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(99,102,241,.45); } 70% { box-shadow: 0 0 0 18px rgba(99,102,241,0); } 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); } }
.pulse-ring { animation: pulseRing 2.4s infinite; }

/* Utility: hide while menu collapsed (mobile) */
.is-hidden { display: none !important; }
