/* Tamkeen Smart Technology — site styles */
:root {
  --navy: #4F5A7A;      /* brand slate blue (logo) */
  --deep: #1F2940;      /* charcoal navy */
  --deep-2: #273352;
  --teal: #77BCBF;      /* brand teal (logo) */
  --teal-hover: #8FCACC;
  --teal-text: #2E7C81; /* teal that passes contrast on white */
  --teal-tint: #E8F4F4;
  --ink: #1F2940;
  --body: #4A5368;
  --muted: #5E677B;
  --soft: #F5F7FA;
  --line: #E2E7EE;
  --line-2: #CBD2DD;
  --on-dark: #C9D1DE;
  --on-dark-muted: #A9B3C4;
  --amber: #E8A15A;
  --radius: 18px;
  --max: 1240px;
  --pad-x: 64px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--body); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--teal-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin-inline: auto; }
[dir="ltr"] .flip { transform: scaleX(-1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-teal { background: var(--teal); color: var(--deep); }
.btn-teal:hover { background: var(--teal-hover); color: var(--deep); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--pad-x); max-width: calc(var(--max) + 2 * var(--pad-x)); margin-inline: auto; }
.hdr-logo { display: flex; flex: none; }
.hdr-logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 2px; }
.nav a:hover { color: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn { font-size: 15px; font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* Eyebrow + section headings */
.eyebrow { color: var(--teal-text); font-weight: 600; font-size: 15px; }
.eyebrow-line { display: flex; align-items: center; gap: 10px; }
.eyebrow-line::before { content: ""; width: 28px; height: 2px; background: var(--teal); display: block; }
.h2 { font-size: 38px; line-height: 1.4; color: var(--ink); font-weight: 700; }
.lead { font-size: 17px; line-height: 1.9; }
.sec { padding: 104px var(--pad-x); }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--deep); color: var(--on-dark); position: relative; overflow: hidden; }
.sec-dark .eyebrow { color: var(--teal); }
.sec-dark .h2 { color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sec-head > div { max-width: 640px; }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec-head .lead { max-width: 460px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--soft); padding: 88px var(--pad-x) 130px; }
.hero-deco { position: absolute; inset-inline-end: -40px; top: -20px; opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 26px; }
.h1 { font-size: 52px; line-height: 1.3; font-weight: 700; color: var(--ink); }
[dir="ltr"] .h1 { font-size: 50px; line-height: 1.15; letter-spacing: -0.01em; }
.h1 span { display: block; color: var(--navy); }
.hero-lead { font-size: 19px; line-height: 1.9; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; }
.hero-tags li + li::before { content: "•"; color: var(--teal); margin-inline-end: 22px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }

.path-card { background: var(--deep); border-radius: 24px; padding: 30px; color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(31,41,64,.55); }
.path-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.path-id { display: flex; align-items: center; gap: 12px; }
.path-id img { width: 40px; height: 40px; border-radius: 8px; }
.path-title { color: #fff; font-weight: 600; font-size: 17px; }
.path-sub { font-size: 13px; color: var(--on-dark-muted); }
.pill { font-size: 13px; font-weight: 600; color: var(--deep); background: var(--teal); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.path-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.path-list li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.path-list li:last-child { border-bottom: 0; }
.path-list .name { flex: 1; }
.path-list .state { font-size: 13px; color: var(--on-dark-muted); }
.path-list .is-done .name { color: #fff; }
.path-list .is-current { padding: 11px 12px; margin: 0 -12px; border-radius: 12px; background: rgba(119,188,191,.12); border-bottom: 0; }
.path-list .is-current .name { color: #fff; font-weight: 600; }
.path-list .is-current .state { color: var(--teal); font-weight: 600; }
.dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.dot-done { background: var(--teal); }
.dot-current { border: 2px solid var(--teal); }
.dot-current::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.dot-todo { border: 2px solid #56627E; }
.progress { margin-top: 22px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.progress-row span:last-child { color: #fff; }
.bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.bar > div { width: 58%; height: 100%; background: var(--teal); border-radius: 999px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s; }
.card:hover { border-color: var(--teal); }
.card h3 { font-size: 21px; color: var(--ink); font-weight: 700; line-height: 1.5; }
.card p { font-size: 15.5px; line-height: 1.85; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; list-style: none; padding-inline: 0; margin-bottom: 0; }
.chips li { font-size: 13px; background: var(--soft); padding: 5px 10px; border-radius: 8px; }
.card-dark { background: var(--deep); border-color: var(--deep); color: var(--on-dark); text-decoration: none; }
.card-dark:hover { color: var(--on-dark); border-color: var(--teal); }
.card-dark .ico { background: rgba(119,188,191,.16); }
.card-dark h3 { color: #fff; }
.more { margin-top: auto; padding-top: 6px; color: var(--teal); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }

/* Rescue */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.rescue-text { display: flex; flex-direction: column; gap: 22px; }
.rescue-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge-outline { font-size: 13px; color: var(--on-dark-muted); border: 1px solid rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; }
.rescue-title { font-size: 40px; line-height: 1.45; color: #fff; font-weight: 700; }
.rescue-title span { display: block; color: var(--teal); }
.rescue-lead { font-size: 18px; line-height: 1.9; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.cases li { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; }
.report { background: var(--deep-2); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 30px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.report-head span:first-child { color: #fff; font-weight: 600; font-size: 17px; }
.report-head span:last-child { font-size: 12px; color: var(--on-dark-muted); letter-spacing: .08em; }
.pulse { width: 100%; height: auto; }
.pulse-legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin: 6px 0 22px; }
.pulse-legend .before { color: var(--amber); }
.pulse-legend .after { color: var(--teal); }
.rsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rsteps li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.04); border-radius: 12px; padding: 14px 16px; }
.rnum { font-size: 13px; font-weight: 700; color: var(--deep); background: var(--teal); width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.rsteps strong { display: block; color: #fff; font-weight: 600; font-size: 15.5px; }
.rsteps span.t { display: block; font-size: 14px; line-height: 1.7; margin-top: 2px; }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 64px; align-items: start; }
.why-text { display: flex; flex-direction: column; gap: 18px; }
.why-text img { width: 96px; height: 96px; border-radius: 16px; margin-top: 10px; }
.why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.why-card .num { font-size: 14px; font-weight: 700; color: var(--teal-text); }
.why-card h3 { font-size: 19px; color: var(--ink); line-height: 1.5; }
.why-card p { font-size: 15px; line-height: 1.85; }

/* Process */
.center-head { text-align: center; max-width: 720px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.step-rail { display: flex; align-items: center; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.steps li:last-child .step-num { background: var(--teal); color: var(--deep); }
.step-line { flex: 1; height: 2px; background: var(--teal); }
.step-end { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.steps h3 { margin-top: 6px; font-size: 18px; color: var(--ink); line-height: 1.5; }
.steps p { font-size: 14.5px; line-height: 1.8; }
.steps .out { font-size: 13px; color: var(--teal-text); font-weight: 600; }

/* Contact */
.contact-deco { position: absolute; inset-inline-start: -30px; bottom: -40px; opacity: .3; pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-text { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.contact-text .h2 { font-size: 40px; line-height: 1.45; }
.contact-points { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: #fff; }
.contact-points a { color: #fff; text-decoration: none; }
.contact-points a:hover { color: var(--teal); }
.cico { width: 40px; height: 40px; border-radius: 10px; background: rgba(119,188,191,.14); display: flex; align-items: center; justify-content: center; flex: none; }
.form-card { background: #fff; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; color: var(--body); }
.form-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label { font-size: 14px; font-weight: 600; color: var(--ink); }
.fld label .opt { font-weight: 400; color: var(--muted); }
.field { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #D5DBE4; border-radius: 10px; padding: 12px 14px; outline: none; }
.field:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(119,188,191,.35); }
.field[aria-invalid="true"] { border-color: #B4442F; }
textarea.field { resize: vertical; min-height: 120px; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 40px; }
[dir="ltr"] select.field { background-position: right 14px center; }
[dir="rtl"] .ltr-input { direction: ltr; text-align: right; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form-status.is-ok { display: block; background: var(--teal-tint); color: #1F5B5E; }
.form-status.is-err { display: block; background: #FBEDEA; color: #8A2E1D; }

/* Footer */
.foot { padding: 56px var(--pad-x) 32px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { height: 48px; width: auto; align-self: flex-start; }
.foot-brand p { font-size: 14.5px; line-height: 1.85; max-width: 340px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col strong { font-weight: 700; color: var(--ink); font-size: 15px; }
.foot a { color: var(--body); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--ink); }
.foot-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.foot-bottom a { font-size: 13px; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .nav { gap: 20px; }
  .hero-grid, .split, .contact-grid { gap: 48px; }
}
@media (max-width: 960px) {
  .hero-deco { opacity: .25; }
  .menu-btn { display: flex; }
  .hdr-cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: 0 16px 30px -20px rgba(31,41,64,.35); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .hero-grid, .split, .contact-grid, .why-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  .hdr-in { padding: 12px 20px; }
  .hdr-logo img { height: 38px; }
  .hero { padding: 40px 20px 88px; }
  .hero-deco, .contact-deco { display: none; }
  .h1, [dir="ltr"] .h1 { font-size: 34px; line-height: 1.35; }
  .hero-lead { font-size: 17px; }
  .h2 { font-size: 28px; }
  .contact-text .h2, .rescue-title { font-size: 27px; }
  .sec { padding: 64px 20px; }
  .svc-grid, .steps, .why-cards, .form-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .cases li { flex-direction: row; align-items: center; }
  .form-card, .report, .path-card { padding: 22px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-tags li + li::before { margin-inline-end: 12px; }
  .hero-tags { gap: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
