/* AlFarisERP — الموقع التعريفي v1
   الهوية: كحلي #0B1D3A · ذهبي #C6A45C · ذهبي داكن #A8873B */
:root {
  --navy: #0B1D3A;
  --navy-2: #122A52;
  --gold: #C6A45C;
  --gold-dark: #A8873B;
  --ink: #1a2333;
  --muted: #5a6577;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e3e8f0;
  --radius: 14px;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Alexandria", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(11, 29, 58, .25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 40px; width: auto; }
.brand .name { font-weight: 700; font-size: 1.05rem; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: #d9e0ec; text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--gold); }
.lang-switch {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .85rem !important;
}
.lang-switch:hover { background: var(--gold); color: var(--navy) !important; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #16325f 100%);
  color: #fff;
  padding: 72px 0 84px;
  text-align: center;
}
.hero img.mark { height: 96px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead {
  max-width: 720px;
  margin: 0 auto 32px;
  color: #c9d3e4;
  font-size: clamp(1rem, 2vw, 1.15rem);
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 18px rgba(198, 164, 92, .35); }
.btn-ghost { border: 1.5px solid #ffffff55; color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Sections ===== */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
h2.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  margin-bottom: 8px;
}
p.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
h2.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Feature grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(11, 29, 58, .10); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.card h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }

/* ===== Sectors ===== */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: .95rem;
  color: var(--navy);
  font-weight: 600;
}
.chip span { margin-inline-end: 6px; }

/* ===== ZATCA banner ===== */
.zatca {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.zatca .badge {
  font-size: 2.2rem;
  background: #ffffff12;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 14px 18px;
}
.zatca h3 { color: var(--gold); font-size: 1.25rem; margin-bottom: 6px; }
.zatca p { color: #c9d3e4; font-size: .97rem; max-width: 640px; }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-inline-end: 28px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  color: var(--gold-dark);
  font-size: 1.2rem;
  font-weight: 700;
}
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* ===== Contact ===== */
.contact-box {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 46px 24px;
}
.contact-box h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; }
.contact-box p { color: var(--muted); margin-bottom: 24px; }
.btn-wa {
  background: #25d366;
  color: #fff;
  font-size: 1.05rem;
}
.phone-line { margin-top: 18px; color: var(--navy); font-weight: 700; font-size: 1.1rem; direction: ltr; }

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: #9fb0ca;
  padding: 28px 0;
  text-align: center;
  font-size: .88rem;
}
footer .gold { color: var(--gold); }

@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: .88rem; }
  .hero { padding: 52px 0 60px; }
  section { padding: 48px 0; }
  .zatca { flex-direction: column; text-align: center; }
}
