/* =========================================================
   Kaizen Star Technologies LLC - Static Enterprise Website
   Tech: HTML5 + CSS3 + Vanilla JS (No frameworks)
   Design system: Blue/White/Light Gray, modern spacing
   ========================================================= */

/* ---------- CSS Reset (modern, minimal) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; }

:focus-visible { outline: 3px solid rgba(27, 107, 200, 0.45); outline-offset: 2px; }

/* ---------- Design Tokens ---------- */
:root {
    /* Brand (logo-inspired) */
  --primary: #159DCB;
  --primary-2: #0E79A3;
  --accent: #F36A1C;

  /* Colors */
/*  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef3f9;
  --text: #0b1220;
  --muted: #52607a;
  --border: rgba(12, 26, 50, 0.12);
  --shadow: 0 10px 30px rgba(10, 30, 70, 0.10);*/

    /* Modern neutrals */
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef4fb;
  --text: #081427;
  --muted: #4d5c74;
  --border: rgba(8, 20, 39, 0.12);
  --shadow: 0 10px 30px rgba(10, 30, 70, 0.10);

    /* NEW: vibrant glow colors */
  --glow-1: rgba(21, 157, 203, 0.28);
  --glow-2: rgba(243, 106, 28, 0.20);

  /* NEW: gradient */
  --brand-grad: linear-gradient(135deg, var(--primary), var(--accent));

  /* NEW: shadows (crisper modern) */
  --shadow: 0 12px 30px rgba(8, 20, 39, 0.10);
  --shadow-strong: 0 18px 45px rgba(8, 20, 39, 0.14);

  /* --primary: #159DCB;     /* Teal-blue (logo-inspired) */
  /* --primary-2: #0E79A3;   /* Deeper teal */
  /* --primary-3: #0A4E6A;   /* Dark teal for headings */
  /* --accent:  #F36A1C;     /* Orange (logo-inspired) */

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-en: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-ar: "Tajawal", "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --fs-900: clamp(2rem, 3vw + 1rem, 3.25rem);
  --fs-800: clamp(1.6rem, 1.7vw + 1rem, 2.25rem);
  --fs-700: 1.5rem;
  --fs-600: 1.25rem;
  --fs-500: 1.0625rem;
  --fs-400: 1rem;
  --fs-300: 0.9375rem;
  --fs-200: 0.875rem;

  --lh: 1.6;

  /* Layout */
  --container: 1120px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  --header-h: 74px;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  line-height: var(--lh);
}

body[lang="ar"] { font-family: var(--font-ar); }

p { margin: 0 0 var(--space-4); color: var(--muted); }
h1, h2, h3, h4 { margin: 0 0 var(--space-3); letter-spacing: -0.02em; }
h1 { font-size: var(--fs-900); line-height: 1.1; }
h2 { font-size: var(--fs-800); line-height: 1.15; }
h3 { font-size: var(--fs-700); line-height: 1.2; }
h4 { font-size: var(--fs-600); line-height: 1.25; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 2000;
  height: var(--header-h);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(8,20,39,0.10);
  box-shadow: 0 8px 24px rgba(8,20,39,0.06);
}



.small { font-size: var(--fs-200); color: var(--muted); }
.kicker { font-size: var(--fs-200); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-2); }

.container {
  width: min(var(--container), calc(100% - 2 * var(--space-5)));
  margin-inline: auto;
}

.section { padding-block: var(--space-8); }

.surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/*.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}*/

.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(8,20,39,0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

/* Subtle gradient edge highlight */
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: linear-gradient(135deg, rgba(21,157,203,0.18), rgba(243,106,28,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events:none;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(21,157,203,0.18);
}
.card:hover::before{ opacity: 1; }

.card-pad { padding: var(--space-6); }

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-7); }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -50px;
  background: var(--bg);
  color: var(--primary-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  z-index: 9999;
  transition: top 200ms ease;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 180px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  box-shadow: 0 10px 25px rgba(27, 107, 200, 0.25);
}
.brand-text { display: grid; }
.brand-name { font-weight: 700; font-size: var(--fs-300); line-height: 1.1; }
.brand-sub { font-size: var(--fs-200); color: var(--muted); }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 10px 25px rgba(10, 30, 70, 0.08);
  cursor: pointer;
}

.nav-toggle svg { margin: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link{
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nav-link:hover{
  background: rgba(21,157,203,0.10);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-link[aria-current="page"], .nav-link.is-active{
  background: rgba(243,106,28,0.14);
  color: var(--text);
}

/*.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-200);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--primary-3);
  transform: translateY(-1px);
}
.nav-link[aria-current="page"],
.nav-link.is-active {
  background: rgba(27, 107, 200, 0.12);
  color: var(--primary-3);
}*/

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(10, 30, 70, 0.08);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-200);
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}
.lang-toggle button[aria-pressed="true"] {
  background: rgba(27, 107, 200, 0.12);
  color: var(--primary-3);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    inset-inline: var(--space-5);
    top: calc(var(--header-h) + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--space-3);
    gap: 6px;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; }
}

/* RTL adjustments (use logical properties primarily, minimal overrides) */
body[dir="rtl"] .header-inner { flex-direction: row-reverse; }
body[dir="rtl"] .brand { flex-direction: row-reverse; }
body[dir="rtl"] .nav-wrap { flex-direction: row-reverse; }
body[dir="rtl"] .site-nav { direction: rtl; }
body[dir="rtl"] .kicker { letter-spacing: 0.02em; } /* Arabic uppercase not used, keep subtle */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, color 170ms ease, border-color 170ms ease;
  user-select: none;
}

.btn-primary{
  background: var(--brand-grad);
  color: #fff;
  border: 0;
  box-shadow: 0 16px 34px rgba(21,157,203,0.18);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(243,106,28,0.20);
}
/*.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(27, 107, 200, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(27, 107, 200, 0.30); }*/

.btn-ghost{
  background: rgba(255,255,255,0.70);
  border-color: rgba(8,20,39,0.12);
  color: var(--text);
}
.btn-ghost:hover{
  background: rgba(21,157,203,0.10);
  border-color: rgba(21,157,203,0.20);
}

/*.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
  color: var(--primary-3);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); }*/

.btn-sm { padding: 10px 14px; border-radius: 12px; font-size: var(--fs-200); }

/* ---------- Hero ---------- */
/*.hero {
  padding-block: calc(var(--space-8) - 8px);
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(27, 107, 200, 0.18), transparent 60%),
    radial-gradient(900px 360px at 90% 10%, rgba(20, 184, 166, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff, #f8fbff 60%, #ffffff);
  border-bottom: 1px solid var(--border);
}*/
.hero{
  padding-block: calc(var(--space-8) - 8px);
  background:
    radial-gradient(900px 420px at 15% 0%, var(--glow-1), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, var(--glow-2), transparent 55%),
    radial-gradient(700px 320px at 50% 110%, rgba(21,157,203,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6fbff 55%, #ffffff);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-6);
  align-items: center;
}

.hero h1 { color: var(--text); }
.hero p { font-size: var(--fs-500); max-width: 56ch; }

.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

/*.hero-aside {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}*/
.hero-aside{
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(8,20,39,0.10);
  box-shadow: var(--shadow-strong);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-3);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: var(--fs-200);
  color: var(--primary-3);
}

.pill svg { opacity: 0.85; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Feature blocks ---------- */
/*.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(27, 107, 200, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 107, 200, 0.18);
}*/
.icon-badge{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21,157,203,0.14), rgba(243,106,28,0.10));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8,20,39,0.10);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.card .meta {
  font-size: var(--fs-200);
  color: var(--muted);
  margin-top: var(--space-2);
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--primary-2);
}
.link-inline:hover { text-decoration: underline; }

/* ---------- Sections: CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(27, 107, 200, 0.12), rgba(20, 184, 166, 0.10));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.cta-band p { margin: 0; max-width: 65ch; }
@media (max-width: 780px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- About: Progress Bars ---------- */
.progress-list { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.progress-item { display: grid; gap: 10px; }
.progress-top { display: flex; justify-content: space-between; gap: var(--space-4); }
.progress-label { font-weight: 800; color: var(--text); }
.progress-val { font-weight: 800; color: var(--primary-3); }

.progress-track {
  width: 100%;
  height: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 900ms ease;
}

/* ---------- Logo grid ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.logo-tile {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  place-items: center;
  gap: var(--space-2);
}
.logo-tile img {
  width: 120px;
  height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
}
.logo-tile .small { text-align: center; }

@media (max-width: 980px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-grid { grid-template-columns: 1fr; } }

/* ---------- Industries icons ---------- */
.industry-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: var(--space-4);
}
.field {
  display: grid;
  gap: 8px;
}
label { font-weight: 800; color: var(--text); font-size: var(--fs-200); }
input, textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 10px 25px rgba(10, 30, 70, 0.05);
}
textarea { min-height: 140px; resize: vertical; }
.helper { font-size: var(--fs-200); color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1a33;
  color: rgba(255, 255, 255, 0.88);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-title {
  font-weight: 900;
  margin-bottom: var(--space-3);
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.80);
  font-weight: 700;
  font-size: var(--fs-200);
  transition: color 160ms ease, transform 160ms ease;
}
.footer-links a:hover { color: #fff; transform: translateX(2px); }

body[dir="rtl"] .footer-links a:hover { transform: translateX(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-4) 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: var(--fs-200);
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Social placeholders ---------- */
.social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease;
}
.social a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
  will-change: opacity, transform;
}
.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 2500;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #25d366;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

.whatsapp-tooltip {
  position: fixed;
  inset-inline-end: 86px;
  bottom: 30px;
  background: rgba(11, 18, 32, 0.92);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: var(--fs-200);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.whatsapp-float:hover + .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-0 { margin-bottom: 0; }

.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: var(--space-6) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: var(--fs-200);
  color: var(--primary-3);
  background: rgba(27, 107, 200, 0.10);
  border: 1px solid rgba(27, 107, 200, 0.16);
  padding: 10px 12px;
  border-radius: 999px;
}