/* ==========================================================================
   TAQUDI · تعاقدي — Institutional identity v2
   Deep navy + a single disciplined teal accent. Flat, calm, trustworthy.
   ========================================================================== */

:root {
  /* Core */
  --navy-900: #0a1826;
  --navy-800: #0e2135;
  --navy-700: #14304a;
  --navy-600: #1c3d5c;

  --teal-600: #0e9384;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;

  --gold: #c9a24b;          /* used only as a thin premium detail */

  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #e5eaf1;
  --line-2: #eef2f7;
  --line-dark: rgba(255, 255, 255, 0.09);

  --ink: #10202e;
  --text: #22303e;
  --text-soft: #5a6773;
  --text-invert: #eef3f9;
  --text-invert-soft: #9fb0c2;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10, 24, 38, .05), 0 6px 20px rgba(10, 24, 38, .04);
  --shadow-md: 0 10px 34px rgba(10, 24, 38, .09);
  --maxw: 1140px;
  --gap: clamp(16px, 2.6vw, 26px);
  --font: "IBM Plex Sans Arabic", "Tajawal", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--paper); color: var(--text);
  line-height: 1.8; font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.32; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--teal-600);
  text-transform: uppercase; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--teal-500); display: inline-block; }
.eyebrow.on-dark { color: var(--teal-400); }
.eyebrow.on-dark::before { background: var(--teal-400); }
.muted { color: var(--text-soft); }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-invert); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 19px; letter-spacing: 1px; font-weight: 700; }
.brand-text span { font-size: 10.5px; color: var(--text-invert-soft); letter-spacing: .3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1.5px solid transparent;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-500); color: #04231f; box-shadow: 0 6px 18px rgba(20, 184, 166, .26); }
.btn-primary:hover { background: var(--teal-400); box-shadow: 0 10px 26px rgba(20, 184, 166, .34); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-ghost.on-dark { color: var(--text-invert); border-color: var(--line-dark); background: transparent; }
.btn-ghost.on-dark:hover { border-color: var(--teal-400); color: var(--teal-400); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(10, 24, 38, .85);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-invert-soft); font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 2px; background: var(--teal-400); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 18px; font-size: 14px; }
.lang-pill { color: var(--text-invert-soft); font-size: 13px; border: 1px solid var(--line-dark); padding: 7px 12px; border-radius: 999px; background: transparent; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; padding: 6px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .lang-pill { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; inset-inline: 12px; top: 70px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--navy-800); padding: 12px; border-radius: 14px; border: 1px solid var(--line-dark); box-shadow: var(--shadow-md); }
  .nav-links.open a { padding: 12px 14px; border-radius: 10px; }
  .nav-links.open a:hover { background: rgba(255,255,255,.06); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--text-invert);
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(20,184,166,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  padding: clamp(60px, 9vw, 108px) 0 clamp(64px, 10vw, 116px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(700px 500px at 80% 0%, #000, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(33px, 5.2vw, 55px); line-height: 1.2; margin-bottom: 20px; color: #fff; }
.hero h1 .accent { color: var(--teal-400); }
.hero p.lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-invert-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-tags span { font-size: 13px; color: var(--text-invert-soft); border: 1px solid var(--line-dark); padding: 7px 14px; border-radius: 999px; font-family: var(--mono); letter-spacing: .3px; }
.hero-visual { position: relative; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 440px; } }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line-dark); background: var(--navy-900); }
.trust-strip .container { display: flex; align-items: center; gap: clamp(18px, 4vw, 44px); flex-wrap: wrap; padding: 20px 0; }
.trust-strip .label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--text-invert-soft); text-transform: uppercase; }
.trust-strip .item { display: flex; align-items: center; gap: 9px; color: #cdd8e4; font-size: 14px; }
.trust-strip .item svg { width: 18px; height: 18px; color: var(--teal-400); flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(58px, 9vw, 104px) 0; }
.section.alt { background: var(--card); }
.section-head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 54px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 39px); }
.section-head p { color: var(--text-soft); font-size: 18px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3dbe6; }
.card .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--teal-600); text-transform: uppercase; }
.card .num { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--teal-600); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-top: 4px; }
.card p { color: var(--text-soft); font-size: 15.5px; margin: 0; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li { position: relative; padding-inline-start: 24px; margin-bottom: 9px; font-size: 15px; color: var(--text-soft); }
.card ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 12px; height: 12px; border-radius: 4px; background: rgba(20,184,166,.16); border: 1px solid var(--teal-500); }
.card-icon { width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px; display: grid; place-items: center; background: rgba(20,184,166,.10); color: var(--teal-600); border: 1px solid rgba(20,184,166,.18); }
.card-icon svg { width: 24px; height: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: var(--text-invert); border-radius: 22px; text-align: center;
  background: radial-gradient(600px 260px at 80% 0%, rgba(20,184,166,.22), transparent 62%), linear-gradient(135deg, var(--navy-800), var(--navy-700));
  padding: clamp(40px, 6vw, 64px);
}
.cta-band h2 { color: #fff; font-size: clamp(25px, 3.4vw, 35px); }
.cta-band p { color: var(--text-invert-soft); max-width: 54ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (max-width: 820px) { .form-wrap { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; font-family: inherit; font-size: 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,184,166,.14); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.info-card .row { padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.info-card .row:last-child { border-bottom: none; }
.info-card .row b { display: block; font-size: 13px; color: var(--teal-600); margin-bottom: 3px; }
.info-card .row span { color: var(--text-soft); font-size: 15px; }
.form-note { margin-top: 16px; font-size: 13.5px; color: var(--text-soft); background: rgba(20,184,166,.07); border: 1px solid rgba(20,184,166,.20); padding: 13px 16px; border-radius: var(--radius-sm); }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 22px; }
.form-status.ok { color: var(--teal-600); }
.form-status.err { color: #d64550; }

.role-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.role-tab { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--text-soft); transition: .18s; }
.role-tab.active { border-color: var(--teal-500); color: var(--teal-600); background: rgba(20,184,166,.08); }
.auth-card { max-width: 520px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 15px; color: var(--text-soft); }
.auth-switch a { color: var(--teal-600); font-weight: 700; }

.media-item { display: flex; flex-direction: column; }
.media-item .tag { font-family: var(--mono); font-size: 12px; color: var(--teal-600); letter-spacing: 1px; margin-bottom: 12px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: var(--text-invert); padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 6vw, 66px); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(600px 400px at 85% 0%, #000, transparent 72%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(29px, 4.4vw, 47px); max-width: 20ch; }
.page-hero p { color: var(--text-invert-soft); font-size: clamp(16px, 2vw, 19px); max-width: 62ch; }

.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
@media (max-width: 820px){ .value-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--text-invert-soft); padding: clamp(46px, 6vw, 70px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand .brand { margin-bottom: 4px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 15px; }
.footer-links a { display: block; padding: 6px 0; color: var(--text-invert-soft); font-size: 15px; transition: color .18s; }
.footer-links a:hover { color: var(--teal-400); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #6b7a8c; }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: 1px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
