/* ==========================================================================
   itKAB stylesheet. Edit the colors in the :root block below.
   All colors come from the logo: navy #0F2A43, gold #BF975D, slate #4A5A6A.
   Contrast ratios (WCAG AA needs 4.5:1 for text, 3:1 for UI parts):
     navy-900 on white 14.7  | slate-600 on white 7.1 | gold-text on white 6.3
     gold-500 on navy-900 5.4 | navy-900 on gold-500 5.4
   Gold-500 on white is only 2.7:1, so it is NEVER used for text on light
   backgrounds (use --gold-text) and is kept for decoration, and for
   buttons/text on navy.
   ========================================================================== */
:root {
  /* Brand (from the logo) */
  --navy-900: #0F2A43;      /* primary */
  --gold-500: #BF975D;      /* accent (decorative / on navy) */
  --slate-600: #4A5A6A;     /* logo descriptor color: muted text */

  /* Derived shades */
  --navy-800: #16385A;      /* hover on navy */
  --navy-100: #E4EAF0;      /* tints, badges */
  --gold-text: #7D5A22;     /* gold readable on light backgrounds */
  --gold-300: #E3C99B;      /* light gold: text/focus on navy */
  --gold-100: #F7F0E4;      /* gold tint background */

  /* Roles */
  --color-text: var(--navy-900);
  --color-muted: var(--slate-600);
  --color-bg: #FFFFFF;
  --color-surface: #F5F7FA;       /* alternate section background */
  --color-border: #D5DDE5;
  --color-input-border: #5F6F80;  /* 5:1 on white */
  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: #C9D4DF; /* 9.4:1 on navy */
  --color-focus: #7D5A22;
  --color-focus-on-dark: var(--gold-300);
  --color-verify-bg: #FFF1B8;     /* highlight for [VERIFY] placeholders */

  /* Type and layout */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --container: 1120px;
  --gutter: 20px;
  --radius: 12px;
  --header-h: 72px;
}

@font-face { font-family: "Noto Kufi Arabic"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/noto-kufi-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Kufi Arabic"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/noto-kufi-arabic-arabic-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans);
  font-size: 1.0625rem; line-height: 1.65; }
html[lang="ar"] body, [lang="ar"] { font-family: var(--font-ar); }
html[lang="ar"] body { line-height: 1.9; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-900); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.5; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
li { margin-bottom: .4em; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--color-focus-on-dark); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100; background: var(--navy-900);
  color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* [VERIFY] placeholders: easy to spot, remove before launch */
mark.verify { background: var(--color-verify-bg); color: var(--navy-900); padding: 0 .25em; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; margin-inline-end: auto; padding: 4px 0; }
.brand img { display: block; height: 42px; width: auto; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--color-input-border);
  color: var(--navy-900); border-radius: 8px; padding: 8px 14px; font: inherit; font-size: .95rem; cursor: pointer; min-height: 44px; }
.nav-toggle .bars { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.nav-toggle .bars::after { content: ""; position: absolute; inset-inline: 0; top: 3px; border-top: 2px solid currentColor; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px;
  border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; }
.site-nav a:hover { background: var(--navy-100); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold-500); }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--color-border); border-radius: 999px; }
.lang-switch a { display: block; min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 999px; text-decoration: none;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; font-family: var(--font-sans); line-height: 1.4; }
.lang-switch a:hover { background: var(--navy-100); }
.lang-switch a[aria-current="true"] { background: var(--navy-900); color: #fff; }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-basis: 100%; order: 5; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; padding-bottom: 12px; }
  .site-nav a { border-bottom: 0; border-radius: 8px; padding: 12px 10px; }
  .site-nav a[aria-current="page"] { background: var(--navy-100); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 24px;
  border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-accent { background: var(--gold-500); color: var(--navy-900); }
.btn-accent:hover { background: var(--gold-300); color: var(--navy-900); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-100); }
.on-dark .btn-outline { border-color: #fff; color: #fff; }
.on-dark .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-900); color: var(--color-on-dark); overflow: hidden; }
.hero-inner { display: grid; gap: 32px; align-items: center; padding-block: 72px; }
.eyebrow { color: var(--gold-300); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.5rem); margin-bottom: .2em; }
.hero .tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--color-on-dark-muted); max-width: 34ch; margin-bottom: 1.6em; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: none; justify-self: center; }
.hero-art img { width: min(360px, 100%); opacity: .95; }
@media (min-width: 800px) { .hero-inner { grid-template-columns: 1.4fr 1fr; } .hero-art { display: block; } }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section.alt { background: var(--color-surface); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--color-muted); font-size: 1.1rem; }
.page-head { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding-block: 56px 48px; }
.page-head p.lead { color: var(--color-muted); font-size: 1.2rem; max-width: 62ch; margin: 0; }
.crumb { font-size: .95rem; margin-bottom: 14px; }
.crumb a { color: var(--gold-text); font-weight: 600; }
.link-more { font-weight: 700; color: var(--gold-text); text-decoration: none; }
.link-more:hover { text-decoration: underline; color: var(--gold-text); }
.link-more::after, .card-link::after { content: " \2192"; }
[dir="rtl"] .link-more::after, [dir="rtl"] .card-link::after { content: " \2190"; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; border-top: 4px solid var(--navy-900); }
.card:hover { border-top-color: var(--gold-500); box-shadow: 0 6px 20px rgba(15,42,67,.08); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--color-muted); }
.card .num { font-weight: 700; color: var(--gold-text); font-size: .95rem; margin-bottom: 10px; font-family: var(--font-sans); letter-spacing: .06em; }
.card-link { margin-top: auto; font-weight: 700; color: var(--gold-text); text-decoration: none; }
.card-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.card:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }
.badge { display: inline-block; align-self: flex-start; background: var(--navy-100); color: var(--navy-900); font-size: .82rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); margin-inline-end: 8px; }

/* ---------- About ---------- */
.name-letters { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.letter { border-inline-start: 4px solid var(--gold-500); padding-inline-start: 18px; }
.letter .k { font-family: var(--font-sans); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--navy-900); }
.letter h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.letter p { margin: 0; color: var(--color-muted); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; margin: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: "0" counter(step); display: block; color: var(--gold-text); font-weight: 700; font-family: var(--font-sans); margin-bottom: 8px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--color-muted); }
.prose { max-width: 70ch; }

/* ---------- Product page ---------- */
.product-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 2fr 1fr; } }
.side-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; align-self: start; }
.side-box h2 { font-size: 1.1rem; }
.side-box .badge { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-inline-start: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 8px; border-inline-start: 3px solid var(--gold-500); border-bottom: 3px solid var(--gold-500); transform: rotate(-45deg); }
[dir="rtl"] .checklist li::before { transform: rotate(45deg); }
.note { color: var(--color-muted); font-size: .95rem; }

/* ---------- Contact & forms ---------- */
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.4fr; } }
.details { margin: 0; }
.details dt { font-weight: 700; margin-top: 18px; color: var(--color-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
html[lang="ar"] .details dt { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.details dd { margin: 4px 0 0; }
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; color: var(--navy-900); background: #fff; border: 2px solid var(--color-input-border);
  border-radius: 8px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 160px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-color: var(--navy-900); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; border: 2px solid var(--navy-900); background: var(--navy-100); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: #8A1C1C; background: #FBECEC; color: #5E1010; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal-meta { color: var(--color-muted); font-size: .95rem; }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--navy-900); color: #fff; padding-block: 64px; }
.cta-band p { color: var(--color-on-dark-muted); font-size: 1.15rem; max-width: 52ch; }
.cta-band .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--color-on-dark-muted); padding-block: 56px 28px; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand img { height: 46px; width: auto; display: block; margin-bottom: 14px; }
.site-footer h2 { color: var(--gold-300); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
html[lang="ar"] .site-footer h2 { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 40px; padding-top: 20px; font-size: .9rem; }
.site-footer mark.verify { color: var(--navy-900); }

/* Latin brand names inside Arabic text keep their own direction */
bdi, .ltr { unicode-bidi: isolate; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
