/* SK Formation — landing page. Mobile first, RTL. Brand vars are injected (--ink, --accent, --on-accent, --accent-hi, --accent-wash). */
:root {
  --ink: #0F2A20; --accent: #C9A24A; --on-accent: #10201A; --accent-hi: #E3CE9C; --accent-wash: #FAF4E4;
  --paper: #FAF7EF; --paper-line: #E9E1CC; --text: #16231D; --text-2: #3E4C45; --muted: #6B7770;
  --line: #E4DED0; --red: #D8433A; --white: #FFFFFF;
  --radius: 14px; --radius-lg: 20px; --section-y: clamp(4rem, 9vw, 7rem);
  --f-display: 'Cairo', system-ui, sans-serif; --f-body: 'IBM Plex Sans Arabic', system-ui, sans-serif; --f-hand: 'Aref Ruqaa', 'Cairo', serif;
  --shadow: 0 1px 2px rgba(15, 42, 32, .06), 0 8px 28px rgba(15, 42, 32, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.75; color: var(--text); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.3; margin: 0 0 .6em; color: inherit; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.15rem; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.i.sm { width: 1em; height: 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 10px; }
.skip:focus { top: 1rem; }
.preview-bar { background: #FFF3CD; color: #664D03; text-align: center; padding: .55rem 1rem; font-weight: 600; font-size: .92rem; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .45rem 1.1rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .85rem 1.9rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-accent:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-hi); color: var(--accent-hi); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #1FAF5A; color: #fff; }
.btn-wa:hover { background: #179C4E; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); margin-top: .6rem; }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255,255,255,.07); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.brand small { color: var(--accent-hi); font-size: .74rem; }

/* ---------- hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem); isolation: isolate; }
.hero-glow { position: absolute; inset: -30% -10% auto auto; width: 70vmax; height: 70vmax; z-index: -1;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  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(to bottom, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .95rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent-hi); font-size: .9rem; font-weight: 600; margin-bottom: 1.1rem; background: rgba(255,255,255,.03); }
.hero-concern { font-family: var(--f-hand); color: var(--accent-hi); font-size: clamp(1.25rem, 3.5vw, 1.6rem); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2rem, 6.2vw, 3.55rem); font-weight: 800; margin-bottom: .5em; letter-spacing: -.005em; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: rgba(255,255,255,.82); max-width: 40rem; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .55rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); }
.hero-points .i { color: var(--accent); background: rgba(255,255,255,.07); border-radius: 50%; padding: .2rem; width: 1.6em; height: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.closed-note { display: flex; gap: .6rem; align-items: center; background: rgba(255,255,255,.08); padding: .8rem 1rem; border-radius: var(--radius); margin: 0; }
.hero-emblem { display: none; }
.emblem-ring { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; padding: 14px;
  background: conic-gradient(from 210deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent), var(--accent-hi), color-mix(in srgb, var(--accent) 25%, transparent), var(--accent));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); animation: float 7s ease-in-out infinite; }
.emblem-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } .hero-emblem { display: block; } }

/* ---------- sections */
.section { padding-block: var(--section-y); }
.paper { background: var(--paper); }
.ruled { background-color: var(--paper); background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--paper-line) 35px 36px); }
.dark { background: var(--ink); color: #fff; }
.sec-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--accent); margin: .7rem auto 0; }
.sec-head p { color: var(--text-2); font-size: 1.08rem; }
.dark .sec-head p { color: rgba(255,255,255,.8); }
.sec-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 1.75rem; }

/* courses */
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.75rem; }
.cat { min-height: 44px; padding: .4rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text-2); font: 600 .95rem var(--f-body); cursor: pointer; }
.cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.course-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem 1.35rem 1.25rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -12px rgba(15, 42, 32, .25); }
.course-card.is-featured { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.course-card.is-picked { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.course-card[hidden] { display: none; }
.cc-top { display: flex; gap: .4rem; flex-wrap: wrap; min-height: 1.6rem; margin-bottom: .5rem; }
.cc-cat { font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: .1rem .65rem; border-radius: 999px; }
.cc-flag { font-size: .78rem; font-weight: 700; color: var(--on-accent); background: var(--accent); padding: .1rem .65rem; border-radius: 999px; }
.course-card h3 { margin-bottom: .35rem; }
.course-card p { color: var(--text-2); font-size: .97rem; }
.cc-meta { list-style: none; padding: 0; margin: auto 0 1rem; display: grid; gap: .3rem; font-size: .92rem; color: var(--text-2); }
.cc-meta li { display: flex; align-items: center; gap: .45rem; }
.cc-meta .i { color: var(--accent); width: 1.1em; height: 1.1em; }
.cc-price { font-family: var(--f-display); font-weight: 800; color: var(--ink) !important; font-size: 1.1rem !important; }
.cc-pick { width: 100%; }
.cc-pick .pick-on { display: none; align-items: center; gap: .4rem; }
.cc-pick[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cc-pick[aria-pressed="true"] .pick-on { display: inline-flex; }
.cc-pick[aria-pressed="true"] .pick-off { display: none; }

/* why */
.why-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why-card { border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 1.5rem; background: rgba(255,255,255,.035); }
.why-n { display: block; font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: .8rem; }
.why-card p { color: rgba(255,255,255,.78); margin: 0; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2.25rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: s; position: relative; padding: 1.4rem 1.3rem 1.2rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: var(--accent-hi);
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; margin-bottom: .8rem; }
.steps p { color: var(--text-2); margin: 0; }

/* about */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-grid.no-photo { max-width: 820px; }
.about-grid p { font-size: 1.1rem; line-height: 2.1; }
.about-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 900px) { .about-grid:not(.no-photo) { grid-template-columns: 1.2fr 1fr; } }

/* register */
.register { background: linear-gradient(to bottom, var(--ink) 0 220px, var(--paper) 220px); }
.reg-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 992px) { .reg-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .info-card { position: sticky; top: 90px; } }
.form-card, .info-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 20px 60px -24px rgba(15, 42, 32, .35); border: 1px solid var(--line); }
.form-lead { color: var(--text-2); }
.reg-form { display: grid; gap: .25rem; margin-top: 1.25rem; }
.field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-family: var(--f-display); margin-bottom: .4rem; font-size: 1rem; padding: 0; }
.req { color: var(--red); }
.field input[type=text], .field input[type=tel], .field input[type=search], .field select {
  width: 100%; min-height: 52px; padding: .65rem .95rem; font: 500 1.02rem var(--f-body); color: var(--text); background: #fff;
  border: 1.5px solid #D5CFC1; border-radius: 12px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7770' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left .85rem center; background-size: 1.1rem; padding-inline-end: 2.4rem; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); outline: none; }
.field input[dir=ltr] { text-align: right; }
.field input[dir=ltr]:not(:placeholder-shown) { text-align: left; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.hint { font-size: .86rem; color: var(--muted); margin: .35rem 0 0; }
.err { color: var(--red); font-size: .88rem; margin: .3rem 0 0; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.sub-label { font-weight: 600 !important; font-family: var(--f-body) !important; font-size: .92rem !important; color: var(--text-2); margin-top: .9rem; }
.chip-search { margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; cursor: pointer; margin: 0 !important; font-family: var(--f-body) !important; font-weight: 600 !important; }
.chip[hidden] { display: none; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid #D5CFC1; background: #fff; font-size: .95rem; transition: all .15s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: var(--accent-hi); font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#f-submit { margin-top: .5rem; position: relative; }
#f-submit .spin { display: none; width: 1.2rem; height: 1.2rem; border: 2.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
#f-submit.is-loading .spin { display: inline-block; }
#f-submit.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alert { margin: .75rem 0 0; font-weight: 600; }
.form-alert:empty { display: none; }
.form-alert.is-error { color: var(--red); }
.form-alert.is-info { color: var(--ink); background: var(--accent-wash); border-radius: 12px; padding: .8rem 1rem; }
.privacy { display: flex; gap: .45rem; align-items: flex-start; color: var(--muted); font-size: .86rem; margin: .9rem 0 0; }
.privacy .i { margin-top: .3rem; }
.closed-box { background: var(--accent-wash); border-radius: var(--radius); padding: 1.25rem; }
.closed-box p { display: flex; gap: .6rem; }
.info-card h2 { font-size: 1.35rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .i { color: var(--ink); background: var(--accent-wash); border-radius: 12px; padding: .5rem; width: 2.5rem; height: 2.5rem; }
.info-list span { display: block; font-size: .85rem; color: var(--muted); }
.info-list a { display: block; font-weight: 700; text-decoration: none; font-size: 1.1rem; color: var(--ink); }
.info-list a.ltr { display: block; text-align: right; }
.info-list p { margin: 0; font-weight: 600; }

/* faq */
.faq { display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 1.25rem; font-family: var(--f-display); font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 1.25rem 1rem; color: var(--text-2); }

/* final */
.final h2.hand { font-family: var(--f-hand); font-weight: 700; color: var(--ink); font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
.final p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 1.75rem; }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 2.25rem 0 calc(2.25rem + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.social { display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.social a:hover { border-color: var(--accent); color: var(--accent-hi); }
.copy { margin: 0; font-size: .88rem; }
body.has-sticky .site-footer { padding-bottom: 6.5rem; }

/* sticky CTA (mobile) */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; gap: .6rem; align-items: center; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,42,32,.08); }
.sticky-count { font-weight: 700; font-size: .88rem; color: var(--ink); white-space: nowrap; }
.sticky-count:empty { display: none; }
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 992px) {
  .sticky-cta:not(.has-picks) { display: none; }
  .sticky-cta.has-picks:not([hidden]) { inset: auto 0 1.25rem 0; margin-inline: auto; max-width: 520px; border-radius: 999px; border: 1px solid var(--line); padding: .55rem .6rem .55rem 1.25rem; }
}

/* success page */
.success-main { min-height: calc(100vh - 66px); }
.success-card { text-align: center; }
.success-card h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; }
.success-mark { width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--ink); color: var(--accent-hi); display: grid; place-items: center; }
.success-mark svg { width: 2.3rem; height: 2.3rem; }
.hello { font-weight: 700; font-size: 1.15rem; margin-bottom: .3rem; }
.ref-box { display: grid; gap: .2rem; margin: 1.5rem auto; padding: 1.1rem 1.25rem; border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: var(--radius); background: var(--accent-wash); max-width: 340px; }
.ref-box span { color: var(--muted); font-size: .9rem; }
.ref-box strong { font-family: var(--f-display); font-size: 2.1rem; font-weight: 800; letter-spacing: .08em; color: var(--ink); display: block; }
.ref-box small { color: var(--text-2); }
.sel-courses { color: var(--text-2); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.success-actions .btn-ghost-dark { margin-top: 0; }

/* quick specialty choices (max N) */
.chips-hint { display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; }
.chips-count { font-family: var(--f-display); font-weight: 800; font-size: .82rem; color: var(--ink); background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: 0 .6rem; line-height: 1.6rem; direction: ltr; }
.chips-count.is-full { background: var(--ink); color: var(--accent-hi); border-color: var(--ink); }
.chips.is-maxed .chip input:not(:checked) + span { opacity: .45; border-style: dashed; }
.other-label { display: block; margin: 1.1rem 0 .4rem; font-family: var(--f-display); font-weight: 700; font-size: .98rem; color: var(--ink); }
