/* ================================================================
   Ajeer Business — Landing Page · Base styles, layout, nav, footer
   Design system shared with متاجر أجير + شركاء أجير
   ================================================================ */

:root {
  /* Colors */
  --paper:    #F4F1EA;
  --paper-2:  #EBE7DC;
  --paper-3:  #FBFAF6;
  --line:     #D8D2C2;
  --line-soft:#E6E0D0;

  --ink:      #0A1230;
  --ink-2:    #1F2A4E;
  --muted:    #5C6480;
  --muted-2:  #8B92A9;

  --white:    #FFFFFF;

  --blue:     #035DFC;
  --blue-50:  #F0F5FF;
  --blue-100: #DCE6FF;
  --blue-200: #B5C8FF;
  --blue-deep:#002F8C;
  --blue-soft:rgba(3, 93, 252, 0.08);

  --accent:   #FF5B1F;
  --accent-50:#FFE9DC;
  --green:    #1D9764;
  --gold:     #C8961D;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 18, 48, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(10, 18, 48, 0.10);
  --shadow-lg: 0 20px 40px -20px rgba(10, 18, 48, 0.18);
  --shadow-xl: 0 40px 80px -30px rgba(10, 18, 48, 0.30);

  /* Fonts */
  --font-ar:  "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-en:  "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:"IBM Plex Mono", "SF Mono", Menlo, monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  background: var(--paper-3);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "ss01" 1;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
img, svg { display: block; max-width: 100%; }

/* Numbers always tabular */
.num, .tnum {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.mono { font-family: var(--font-mono); }

/* ===== Layout primitives ===== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 700px) { .container { padding: 0 20px; } }

.section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
}
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 980px;
}
.section-head.center { margin-inline: auto; align-items: center; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 6px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-pill);
  width: fit-content;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(3, 93, 252, 0.15);
}

.h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
}
.h2 {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
.h3 {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.h4 {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.lead {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  font-weight: 400;
}
.body { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); }

.hl { color: var(--blue); }
.hl-orange { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(3,93,252,0.5); }

.btn-dark {
  background: var(--ink);
  color: white;
}
.btn-dark:hover { background: #1a2350; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: white; border-color: var(--ink); }

.btn-light {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-light:hover { background: var(--paper); border-color: var(--ink); }

.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-icon {
  width: 16px; height: 16px;
  display: inline-block;
}

/* ===== Top nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(251, 250, 246, 0.95);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-brand img {
  width: 30px; height: 30px;
  border-radius: 7px;
}
.nav-brand-label { color: var(--ink); }
.nav-brand-sep { color: var(--muted-2); font-weight: 400; margin: 0 2px; }
.nav-brand-sub { color: var(--blue); font-weight: 600; }

.nav-portals {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: 5px;
  border-radius: var(--radius-pill);
}
@media (max-width: 1080px) { .nav-portals { display: none; } }

.nav-portal {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background 0.18s ease;
  display: flex; align-items: center; gap: 6px;
}
.nav-portal:hover { color: var(--ink); }
.nav-portal.active {
  background: var(--ink);
  color: white;
  font-weight: 600;
}
.nav-portal-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}
.nav-portal.active .nav-portal-dot { background: white; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-login {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
}
.nav-login:hover { color: var(--blue); }
@media (max-width: 700px) { .nav-login { display: none; } }

/* ===== Hero ===== */
.hero {
  padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 9vw, 128px);
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-content { display: flex; flex-direction: column; gap: 28px; }
.hero-h1 {
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
}
.hero-h1 .hl { color: var(--blue); }
.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) { .hero-stats { grid-template-columns: 1fr; gap: 10px; } }
.hero-stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--blue);
}
.hero-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(3, 93, 252, .22);
  box-shadow: 0 18px 36px -20px rgba(10, 18, 48, .18);
}
.hero-stat-ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-soft, rgba(3, 93, 252, .08));
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.hero-stat-ic svg { width: 20px; height: 20px; }
.hero-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-stat-num {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -.018em;
  color: var(--ink);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-stat-unit {
  font-size: .55em;
  font-weight: 600;
  color: var(--muted);
}
.hero-stat-label {
  font-size: 12.5px;
  color: var(--ink-3, var(--muted));
  font-weight: 500;
  letter-spacing: 0;
}

/* Gold variant */
.hero-stat-gold::before { background: var(--gold, #C8961D); }
.hero-stat-gold .hero-stat-ic {
  background: rgba(200, 150, 29, .10);
  color: var(--gold, #C8961D);
}
.hero-stat-gold:hover { border-color: rgba(200, 150, 29, .28); }

.hero-visual {
  position: relative;
  min-height: 540px;
}
@media (max-width: 980px) { .hero-visual { min-height: 420px; } }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: white;
  padding: clamp(72px, 8vw, 112px) 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-row {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px;
}
.footer-brand-row img { width: 30px; height: 30px; border-radius: 7px; }
.footer-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 28ch;
  line-height: 1.55;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.18s ease;
}
.footer-link:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}
