/* ==========================================================================
   Numivex.dz — professional corporate/industrial theme
   Navy + amber, soft elevation, clean grids. Light, conventional, polished.
   ========================================================================== */

:root {
  --navy-900: #0b2540;
  --navy-800: #123457;
  --navy-700: #1d4a78;
  --navy-tint: #eaf1f8;
  --amber-500: #e8a13c;
  --amber-600: #cc8a29;
  --amber-tint: #fdf1de;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --border: #e2e7ee;
  --border-strong: #c9d2e0;
  --text: #16233a;
  --text-muted: #55647c;
  --text-dim: #8a95a8;
  --danger: #c0392b;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 100px;
  --shadow-sm: 0 2px 8px -2px rgba(15, 40, 70, 0.08);
  --shadow-md: 0 12px 28px -10px rgba(15, 40, 70, 0.16);
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Inter', sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.circuit-bg { display: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; position: relative; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy-900); }
.brand svg { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-heading); }
.brand-name span { color: var(--amber-600); }

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-toggle { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--navy-800); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.lang-switch button.active { background: var(--navy-900); color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1.5px solid transparent;
}

.btn-primary { background: var(--amber-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-900); background: var(--navy-tint); }

.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--amber-tint); transform: translateY(-2px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 76px 0 60px; position: relative; background: linear-gradient(180deg, var(--navy-tint) 0%, var(--bg) 65%); }

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); }

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy-900);
}

.hero h1 .highlight { color: var(--amber-600); }

.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin: 0 0 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.hero-visual svg { width: 100%; height: 100%; max-width: 380px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat .num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--navy-900); }
.stat .label { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

/* ==========================================================================
   Section shared
   ========================================================================== */

section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 52px; text-align: start; }

.section-tag {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-600);
  font-weight: 800;
  display: block;
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 16px; letter-spacing: -0.01em; font-weight: 800; color: var(--navy-900); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

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

/* ==========================================================================
   Cards / Grids
   ========================================================================== */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--amber-500);
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.18rem; margin: 0 0 12px; font-weight: 700; color: var(--navy-900); }
.card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--navy-900);
  background-image: radial-gradient(circle at 15% 20%, rgba(232, 161, 60, 0.14) 0%, transparent 45%);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  color: #fff;
}

.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 14px; color: #fff; font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 520px; margin: 0 auto 30px; }

/* ==========================================================================
   About page specifics
   ========================================================================== */

.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-block p { color: var(--text-muted); margin: 0 0 18px; }
.story-block h2 { color: var(--navy-900); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 20px; font-weight: 800; }

.pillar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.pillar-card h3 { font-size: 1.28rem; margin: 0 0 14px; color: var(--navy-900); font-weight: 800; }
.pillar-card p { color: var(--text-muted); margin: 0; }

.ceo-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.ceo-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.5rem;
  color: var(--amber-500);
  flex-shrink: 0;
}

.ceo-note p { color: var(--text); font-style: italic; margin: 0 0 12px; font-size: 1.06rem; }
.ceo-note .name { font-weight: 800; color: var(--navy-900); font-style: normal; }
.ceo-note .role { color: var(--amber-600); font-size: 0.85rem; font-weight: 700; }

/* ==========================================================================
   Services page
   ========================================================================== */

.service-row { display: grid; grid-template-columns: 72px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--border); }
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }

.service-row .num {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 800;
  color: var(--navy-900);
}

.service-row h3 { font-size: 1.3rem; margin: 0 0 12px; font-weight: 800; color: var(--navy-900); }
.service-row p { color: var(--text-muted); margin: 0; max-width: 700px; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }

.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }

.contact-info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info-row:last-child { border-bottom: none; }

.contact-info-row .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--navy-tint);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-info-row .icon svg { width: 19px; height: 19px; }

.contact-info-row .label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; font-weight: 600; }
.contact-info-row .value { color: var(--text); font-weight: 600; }

.map-placeholder {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  gap: 8px;
}

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }

.field input, .field textarea {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px var(--amber-tint);
}

.form-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 0.9rem; color: var(--navy-800); font-weight: 600; display: none; }
.form-status.show { display: block; }

/* ==========================================================================
   Partner portal (login)
   ========================================================================== */

.portal-wrap { max-width: 440px; margin: 0 auto; }

.field-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
}

.field-check input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--navy-900);
  flex-shrink: 0;
}

.field-check label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.portal-access-card {
  margin-top: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-align: center;
}

.portal-access-card h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: var(--navy-900); }
.portal-access-card p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   News
   ========================================================================== */

.news-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}

.news-card h3 { font-size: 1.15rem; margin: 0 0 10px; font-weight: 700; color: var(--navy-900); }
.news-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.news-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: -28px 0 44px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin: 16px 0 0; max-width: 320px; font-size: 0.94rem; }

.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.45); margin: 0 0 20px; font-weight: 700; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--amber-500); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  flex-wrap: wrap; gap: 10px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 0 auto; order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .story-block { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 28px 28px;
    gap: 18px;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .ceo-note { grid-template-columns: 1fr; text-align: center; }
  .ceo-note .ceo-avatar { margin: 0 auto; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 60px 0; }
  .hero { padding: 50px 0 40px; }
}
