/* =========================================================
   أوتاد كنانة — نظام التصميم المشترك
   الألوان مستخرجة من تدرج شعار الشركة الفعلي
   ========================================================= */

:root {
  --navy: #1D2456;
  --navy-dark: #141A3D;
  --navy-panel: #232B5E;
  --steel: #4A6FA5;
  --cyan: #15AEEA;
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --text: #202634;
  --text-muted: #5B6472;
  --border: #E1E5EF;

  --font-ar-head: 'Noto Kufi Arabic', 'Segoe UI', sans-serif;
  --font-ar-body: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  --font-en-head: 'Poppins', Arial, sans-serif;
  --font-en-body: 'Inter', Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(29, 36, 86, 0.06);
  --shadow-md: 0 10px 30px rgba(29, 36, 86, 0.10);
  --shadow-lg: 0 20px 50px rgba(29, 36, 86, 0.16);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-ar-head);
  color: var(--navy);
  margin: 0 0 0.4em;
  line-height: 1.35;
}

html[dir="ltr"] body, html[dir="ltr"] input, html[dir="ltr"] textarea, html[dir="ltr"] select, html[dir="ltr"] button {
  font-family: var(--font-en-body);
}
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3, html[dir="ltr"] h4,
html[dir="ltr"] .btn, html[dir="ltr"] .nav__brand span, html[dir="ltr"] .footer__brand span, html[dir="ltr"] .eyebrow {
  font-family: var(--font-en-head);
}
html[dir="ltr"] .contact-info-item .value.ar { font-family: var(--font-en-body); }

p { margin: 0 0 1em; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--steel);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.section { padding: 90px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: #C7D1EA; }
.section--dark .eyebrow { color: var(--cyan); }
.section--alt { background: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-ar-head);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn--primary { background: var(--cyan); color: var(--navy-dark); }
.btn--primary:hover { background: #3ec0f2; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline-dark:hover { border-color: var(--navy); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(245, 246, 248, 0.85);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 40px; width: auto; }
.nav__brand span { font-family: var(--font-ar-head); font-weight: 700; font-size: 18px; color: var(--navy); }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { font-weight: 600; font-size: 15.5px; color: var(--text); position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--cyan);
  transition: width .2s ease;
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__cta .btn { padding: 11px 24px; font-size: 14px; background: var(--navy); color: var(--white); }
.nav__cta .btn:hover { background: var(--navy-dark); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 82px 0 0 0; background: var(--white); flex-direction: column;
    justify-content: flex-start; padding: 32px 24px; gap: 22px; transform: translateY(-16px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease, visibility .2s; }
  .nav__links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a { font-size: 19px; }
  .nav__toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
  .nav__cta .btn-text { display: none; }
  .lang-toggle { padding: 2px; }
  .lang-toggle a { padding: 6px 10px; font-size: 11.5px; }
}

@media (max-width: 440px) {
  .nav__brand span { display: none; }
  .nav__cta { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero__motif {
  position: absolute; top: -10%; inset-inline-start: -8%;
  width: 620px; max-width: 70vw; opacity: 0.14; pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 760px; text-align: center; margin: 0 auto; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 20px; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero p { color: #C7D1EA; font-size: 19px; max-width: 620px; margin: 0 auto 34px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__tags { margin-top: 54px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__tags span {
  font-size: 13.5px; color: #AEB9DA; border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 18px; border-radius: 999px;
}

/* ---------- Cards ---------- */
.icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle img { width: 30px; height: 30px; }
.icon-circle--lg { width: 80px; height: 80px; }
.icon-circle--lg img { width: 38px; height: 38px; }
.icon-circle--light { background: #EAF0FB; }
.icon-circle--light img { filter: none; }

.grid {
  display: grid; gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid--3, .grid--5, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 20px; margin: 20px 0 10px; }
.card p { color: var(--text-muted); font-size: 15px; margin: 0; }

.goal-card { text-align: center; padding: 30px 20px; }
.goal-card .icon-circle { margin: 0 auto 18px; }
.goal-card h4 { font-size: 16.5px; margin: 0 0 6px; }
.goal-card p { font-size: 12.5px; color: var(--text-muted); }
.section--dark .goal-card p { color: #AEB9DA; }

/* ---------- Service rows ---------- */
.service-row {
  display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row__panel {
  background: var(--navy); border-radius: var(--radius); padding: 46px 30px; text-align: center;
  position: relative; overflow: hidden;
}
.service-row__panel .num { font-family: Arial, sans-serif; font-weight: 700; font-size: 40px; color: #394479; position: absolute; top: 18px; inset-inline-start: 22px; }
.service-row__panel .icon-circle { margin: 0 auto; background: #273068; }
.service-row h3 { font-size: 25px; margin-bottom: 14px; }
.service-row p { color: var(--text-muted); font-size: 16px; }
.service-row__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.service-row__tags span {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; color: var(--text);
}
.service-row__tags span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row__panel { padding: 30px; }
}

/* ---------- Vision / Mission ---------- */
.vm-card {
  border-radius: var(--radius); padding: 46px 36px; text-align: center;
}
.vm-card--dark { background: var(--navy); color: var(--white); }
.vm-card--dark h3 { color: var(--white); }
.vm-card--dark p { color: #E7ECF7; }
.vm-card--light { background: var(--white); border: 1px solid var(--border); }
.vm-card .icon-circle { margin: 0 auto 22px; }

/* ---------- Clients ---------- */
.clients-wall { background: var(--white); border-radius: var(--radius); padding: 40px; }
.clients-wall img { width: 100%; height: auto; }

/* ---------- Stats bar ---------- */
.stat-bar { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.stat-bar .num { font-family: var(--font-ar-head); font-size: 40px; font-weight: 700; color: var(--navy); }
.stat-bar .label { color: var(--text-muted); font-size: 14px; }
.section--dark .stat-bar .num { color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.contact-info-item .label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.contact-info-item .value { font-family: Arial, sans-serif; font-weight: 700; font-size: 17px; color: var(--navy); }
.contact-info-item .value.ar { font-family: var(--font-ar-head); font-size: 16px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-family: var(--font-ar-body); font-size: 15px; background: var(--white); color: var(--text);
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--steel); }
.form-field textarea { min-height: 130px; resize: vertical; }
.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #8E9CC4; padding: 56px 0 28px; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img { height: 34px; }
.footer__brand span { font-family: var(--font-ar-head); color: var(--white); font-weight: 700; font-size: 17px; }
.footer p { color: #8E9CC4; font-size: 14px; }
.footer__col h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer__col a, .footer__col p { display: block !important; color: #8E9CC4; font-size: 14px; margin-bottom: 10px; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 24px;
  text-align: center; font-size: 12.5px; letter-spacing: 1px; color: #5C6799;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); padding: 70px 0 90px; position: relative; overflow: hidden; text-align: center; }
.page-hero__motif { position: absolute; top: -20%; inset-inline-end: -10%; width: 460px; max-width: 60vw; opacity: 0.14; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4.4vw, 46px); position: relative; z-index: 2; }
.page-hero p { color: #AEB9DA; font-size: 16px; position: relative; z-index: 2; max-width: 560px; margin: 10px auto 0; }
.breadcrumb { color: var(--cyan); font-size: 13px; margin-bottom: 12px; position: relative; z-index: 2; }

.reveal { animation: fadeInUp .7s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 3px; gap: 2px; font-family: Arial, sans-serif;
}
.lang-toggle a {
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .5px; color: var(--text-muted); transition: all .2s ease;
}
.lang-toggle a.active { background: var(--navy); color: #fff; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 250;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(20, 26, 61, 0.35); transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }
