/* CyberCanada — one-page site. Navy + maple red. Logical properties throughout so Arabic mirrors to RTL. */
:root {
  --navy-950: #06142A;
  --navy-900: #0B1F3A;
  --navy-800: #11294B;
  --navy-700: #1B3A66;
  --navy-600: #2A4C7E;
  --red: #D52B1E;
  --red-600: #B42318;
  --red-on-dark: #FF5A4E;
  --ink: #13213A;
  --muted: #55627A;
  --line: #E2E7EF;
  --soft: #F4F6FA;
  --white: #fff;
  --on-dark: #DCE4F0;
  --on-dark-muted: #A3B2C9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 28px rgba(11, 31, 58, .08);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
.i18n-wait body { opacity: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red-on-dark); outline-offset: 2px; border-radius: 4px; }
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.ico { width: 20px; height: 20px; flex: none; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Placeholders still to fill in (build.py FACTS) */
.todo { outline: 1.5px dashed #E8A400; outline-offset: 2px; background: rgba(255, 196, 0, .16); border-radius: 4px; }
.todo-btn { outline: 1.5px dashed #E8A400; outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-600); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-wa { background: #1FAF54; color: var(--white); }
.btn-wa:hover { background: #178F44; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.on-dark { color: var(--red-on-dark); }
.sub { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(6, 20, 42, .88); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--white);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex: none; }
.brand .mark { width: 34px; height: 34px; }
.wordmark { font-family: var(--font); font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; }
.wordmark b { color: var(--red-on-dark); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--white); border-bottom-color: var(--red-on-dark); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 3px; }
.lang-toggle a {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font: 600 .84rem/1 var(--font); color: var(--on-dark); border-radius: 999px;
  padding: 7px 12px; min-width: 44px; min-height: 32px;
}
.lang-toggle a[lang="ar"] { font-family: var(--font-ar); font-size: .9rem; }
.lang-toggle a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.lang-toggle a[aria-current="page"] { background: var(--white); color: var(--navy-900); }
.menu-btn { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 20, 42, .97) 0%, rgba(6, 20, 42, .86) 42%, rgba(11, 31, 58, .55) 100%),
    radial-gradient(ellipse at 85% 110%, rgba(213, 43, 30, .28), transparent 55%);
}
html[dir="rtl"] .hero-bg::after {
  background:
    linear-gradient(270deg, rgba(6, 20, 42, .97) 0%, rgba(6, 20, 42, .86) 42%, rgba(11, 31, 58, .55) 100%),
    radial-gradient(ellipse at 15% 110%, rgba(213, 43, 30, .28), transparent 55%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-block: clamp(72px, 10vw, 128px) clamp(64px, 9vw, 112px); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 700; margin-bottom: 22px; max-width: 15ch; }
html[lang="ar"] .hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--red-on-dark); }
.hero .lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); color: var(--on-dark); max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--on-dark-muted); margin: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #34D17A; box-shadow: 0 0 0 0 rgba(52, 209, 122, .6); animation: ping 2.2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 209, 122, .55); } 70% { box-shadow: 0 0 0 10px rgba(52, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 209, 122, 0); } }

.term { margin: 0; background: rgba(6, 16, 32, .82); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: hidden; backdrop-filter: blur(6px); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .08); direction: ltr; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; }
.term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { margin-inline-start: 10px; font: 500 .8rem var(--mono); color: var(--on-dark-muted); }
.term-body { margin: 0; padding: 18px 18px 20px; font: 400 .84rem/1.95 var(--mono); color: #CFE0F5; white-space: pre; overflow-x: auto; text-align: left; }
.term-body .tm { color: #6F86A8; }
.term-body .tag { font-weight: 500; }
.t-alert { color: #FF6B5F; } .t-triage { color: #FEBC2E; } .t-contain { color: #6CB6FF; } .t-scope { color: #C39BFF; } .t-done { color: #4ADE80; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: #CFE0F5; vertical-align: -3px; margin-inline-start: 4px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term figcaption { padding: 12px 18px 16px; font-size: .9rem; color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Firms strip ---------- */
.firms { background: var(--navy-900); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, .06); }
.firms-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; padding-block: 26px; text-align: center; }
.firms-label, .firms-more { margin: 0; font-size: .92rem; color: var(--on-dark-muted); }
.firm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 34px; }
.firm-list li { font-family: var(--font); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; color: var(--white); }

/* ---------- Stats ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 22px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat-num { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); font-weight: 700; color: var(--navy-900); line-height: 1.1; margin: 0 0 8px; text-align: start; }
html[dir="rtl"] .stat-num { text-align: right; }
.stat-label { margin: 0; color: var(--muted); font-size: .98rem; max-width: 26ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.soft { background: var(--soft); }
.section.dark { background: var(--navy-900); color: var(--white); }
.section.dark .sub { color: var(--on-dark-muted); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media { position: relative; }
.approach .split-media::after {
  content: ""; position: absolute; inset-inline-end: -14px; bottom: -14px; width: 46%; height: 46%; z-index: -1;
  border-radius: var(--radius); background: repeating-linear-gradient(45deg, rgba(213, 43, 30, .14) 0 2px, transparent 2px 10px);
}
.approach .split-media { isolation: isolate; }
.feats { display: grid; gap: 22px; margin-top: 28px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat h3 { margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); }
.feat-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(213, 43, 30, .09); color: var(--red); flex: none; }
.feat-ico .ico { width: 22px; height: 22px; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.course { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.course:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11, 31, 58, .06), 0 18px 40px rgba(11, 31, 58, .12); }
.course-media { position: relative; }
.course-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.course-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 20, 42, .55)); }
.level { position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 14px; background: var(--white); color: var(--navy-900); font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.course-body { padding: 24px 26px 8px; flex: 1; }
.course-body h3 { font-size: 1.34rem; }
.course-desc { color: var(--muted); }
.topics { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.topics li, .ticks li { display: flex; gap: 10px; align-items: flex-start; }
.topics .ico, .ticks .ico { color: var(--red); margin-top: 3px; width: 18px; height: 18px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; border-top: 1px dashed var(--line); }
.course-meta p { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .93rem; color: var(--ink); font-weight: 500; }
.course-meta .ico { color: var(--navy-600); width: 18px; height: 18px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 26px 24px; }
.price { margin: 0; display: flex; flex-direction: column; font-weight: 600; color: var(--navy-900); }
.price-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
html[lang="ar"] .price-label { letter-spacing: 0; font-size: .85rem; }

/* ---------- Instructors ---------- */
.instructors { position: relative; overflow: hidden; }
.instructors::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, rgba(213, 43, 30, .2), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(42, 76, 126, .5), transparent 55%);
}
.instructors .wrap { position: relative; }
.inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.inst { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.inst-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: var(--white); margin-bottom: 18px; }
.inst-ico .ico { width: 24px; height: 24px; }
.inst h3 { color: var(--white); font-size: 1.1rem; }
.inst-firm { color: var(--on-dark); margin-bottom: 10px; font-size: .96rem; }
.inst-firm b { color: var(--white); font-weight: 600; }
.inst-focus { color: var(--on-dark-muted); font-size: .92rem; }
.inst-years { margin: auto 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-family: var(--mono); font-size: .86rem; color: var(--red-on-dark); }
html[lang="ar"] .inst-years { font-family: var(--font-ar); }

/* ---------- Formats ---------- */
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fmt { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.fmt-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fmt-body { padding: 22px 22px 24px; }
.fmt-body h3 { display: flex; align-items: center; gap: 10px; }
.fmt-body h3 .ico { color: var(--red); }
.fmt-body p { margin: 0; color: var(--muted); }
.sched { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.sched-card { display: flex; gap: 18px; align-items: flex-start; background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 26px; }
.sched-card p { margin: 0; color: var(--on-dark); }
.sched-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--red-on-dark); flex: none; }
.sched-ico .ico { width: 24px; height: 24px; }

/* ---------- Teams ---------- */
.ticks { list-style: none; padding: 0; margin: 6px 0 30px; display: grid; gap: 12px; }
.ticks li { font-weight: 500; }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cert { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.cert p { color: var(--muted); }
.cert-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--navy-900); color: var(--white); margin-bottom: 16px; }
.cert-ico .ico { width: 24px; height: 24px; }
.cert-tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
html[dir="rtl"] .cert-tags { justify-content: flex-end; }
.cert-tags li { font: 500 .85rem var(--mono); background: var(--soft); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; color: var(--navy-900); }
.fine { font-size: .86rem; margin: 0; }

/* ---------- FAQ ---------- */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--navy-900); flex: none; transition: transform .25s, background .25s; }
.qa[open] .qa-ico { transform: rotate(45deg); background: var(--red); color: var(--white); }
.qa p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 70ch; }

/* ---------- Register ---------- */
.register { position: relative; color: var(--white); background: var(--navy-950); padding-block: clamp(64px, 8vw, 112px); isolation: isolate; overflow: hidden; }
.register-bg { position: absolute; inset: 0; z-index: -1; }
.register-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.register-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 20, 42, .7), rgba(6, 20, 42, .94)); }
.register-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.register .sub { color: var(--on-dark); }
.talk { margin-top: 34px; padding: 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.talk h3 { color: var(--white); }
.talk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 8px; align-items: center; }
.talk-actions .contact-line { width: 100%; margin: 4px 0 0; }
.contact-line { color: var(--on-dark-muted); font-size: .95rem; margin: 6px 0 0; }

.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy-900); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; line-height: 1.4; font-weight: 400; color: var(--ink); width: 100%;
  border: 1.5px solid #CDD5E1; border-radius: var(--radius-sm); padding: 12px 13px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355627A' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 38px; }
html[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42, 76, 126, .18); }
.field :user-invalid { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: -4px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }
.form-status { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.ok { background: #E8F7EE; color: #12643A; }
.form-status.err { background: #FDECEA; color: #8F1D14; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; max-width: 40ch; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links li { display: flex; align-items: center; gap: 10px; }
.footer-links .ico { width: 18px; height: 18px; color: var(--on-dark-muted); }
.footer-links a { text-decoration: none; color: var(--on-dark); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 24px 32px; font-size: .84rem; }
.footer-legal p { margin: 0 0 8px; max-width: 110ch; }
.footer-legal a { color: var(--on-dark); }

/* ---------- 404 page ---------- */
.nf-body { background: var(--navy-950); color: var(--on-dark); min-height: 100vh; display: grid; place-items: center; }
.nf { width: min(640px, 100% - 32px); padding-block: 48px; }
.nf .brand { margin-bottom: 36px; }
.nf h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.nf-ar { font-family: var(--font-ar); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nf-actions .btn[lang="ar"] { font-family: var(--font-ar); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .caret { animation: none; }
  .btn:hover, .course:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav ul { gap: 16px; }
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); inset-inline: 0; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px;
    background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .site-nav ul a:hover { border-bottom-color: rgba(255, 255, 255, .08); }
  .nav-cta { margin-top: 16px; }
  .header-tools { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split, .register-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .fmt-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .course-grid, .fmt-grid, .sched, .cert-grid, .inst-grid, .row2 { grid-template-columns: 1fr; }
  .course-foot { flex-direction: column; align-items: stretch; }
  .course-foot .btn { width: 100%; }
  .term-body { font-size: .74rem; }
  .firm-list { gap: 6px 22px; }
  .firm-list li { font-size: 1rem; }
  .stat { padding: 24px 14px; }
  .wordmark { font-size: 1.15rem; }
  .brand .mark { width: 30px; height: 30px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .lang-toggle button { padding: 7px 9px; min-width: 40px; }
  .header-inner { gap: 12px; }
}
