/* Personal brand: one blue (matches the photo background) + white, light sky-blue accent. */
:root {
  --blue: #08508e;
  --blue-deep: #063c6b;
  --sky: #a9d4ff;
  --sky-soft: #e7f1fb;
  --bg: #f4f7fb;
  --ink: #0f2038;
  --muted: #5a6b82;
  --line: #dde5ef;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(8, 80, 142, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  font-family: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- Header (same blue as hero, so no seam) ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--blue);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; width: 92px; }
.logo img { width: 100%; height: auto; }
.site-header nav { display: flex; gap: 24px; align-items: center; font-size: 15px; color: #cfe0f2; }
.site-header nav a:hover { color: var(--white); }
@media (max-width: 720px) { .site-header nav .nav-link { display: none; } .logo { width: 80px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--sky-soft); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end;
  padding-top: 40px;
}
.hero-text { padding-bottom: 72px; align-self: center; }
.hero .kicker { font-size: 15px; font-weight: 600; color: var(--sky); margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: #d6e5f5; max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--white); }
.hero-photo { justify-self: center; width: min(440px, 100%); }
.hero-photo img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 32px; gap: 8px; }
  .hero-text { padding-bottom: 8px; }
  .hero-photo { width: min(320px, 85%); }
}

/* ---------- Credentials bar ---------- */
.cred-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.cred-bar .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 40px; padding-block: 28px; }
.mark { display: block; width: auto; height: 28px; opacity: .85; transition: opacity .2s; }
.mark:hover { opacity: 1; }
.mark-chicago-booth { height: 22px; }
.mark-harvard, .mark-temple { height: 30px; }
.mark-mushtari { height: 36px; }
.mark-cmap { height: 46px; }
@media (max-width: 560px) {
  .mark { height: 22px; }
  .mark-chicago-booth { height: 17px; }
  .mark-harvard, .mark-temple { height: 24px; }
  .mark-mushtari { height: 28px; }
  .mark-cmap { height: 38px; }
}

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
.bg-white { background: var(--white); }
.section-head { max-width: 600px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; color: var(--blue); line-height: 1.35; margin-bottom: 6px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-grid > div { min-width: 0; }
.about-text p { font-size: 17.5px; margin-bottom: 14px; max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.tags span { background: var(--sky-soft); color: var(--blue); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.about-actions .btn-outline { color: var(--blue); }
.about-photo { margin: 0; width: min(420px, 100%); justify-self: center; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%;
  border-radius: 24px; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .about-photo { order: -1; width: min(360px, 100%); } }

/* Who it's for */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.persona { background: var(--bg); border-radius: 14px; padding: 16px 18px; font-weight: 600; }

/* Details + guarantee */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.detail-list { list-style: none; display: grid; gap: 12px; }
.detail-list li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; }
.detail-list li span { color: var(--muted); }
.detail-list li b { color: var(--blue); }
.guarantee-card {
  background: var(--blue); color: var(--white); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.guarantee-card .badge { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.12); color: var(--sky); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.guarantee-card h3 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.4; }
.guarantee-card p { color: #d6e5f5; }
@media (max-width: 760px) { .details { grid-template-columns: 1fr; } .guarantee-card { padding: 26px 22px; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--bg); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.quote p { font-size: 16.5px; }
.quote footer { font-size: 13px; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; padding: 72px 0; background: var(--blue); color: var(--white); }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 8px; }
.cta-band p { color: #d6e5f5; margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--blue); border-top: 1px solid rgba(255,255,255,.1); color: #b9cfe6; padding: 28px 0; font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { width: 84px; }
.socials { display: flex; gap: 18px; }
.socials a:hover { color: var(--white); }

/* ---------- Form page ---------- */
.form-page { padding: 44px 0 80px; }
.form-wrap { max-width: 700px; }
.form-intro { text-align: center; margin-bottom: 24px; }
.form-intro h1 { font-size: clamp(26px, 4vw, 34px); color: var(--blue); }
.form-intro p { color: var(--muted); }

.progress { display: flex; gap: 8px; margin-bottom: 16px; }
.progress .step-pill { flex: 1; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.progress .step-pill.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.progress .step-pill.done { background: var(--sky-soft); color: var(--blue); border-color: var(--sky-soft); }

.form-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }
.form-step { display: none; }
.form-step.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 22px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: -2px; margin-bottom: 8px; }
.req { color: #c0392b; margin-inline-start: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, background .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.phone-row input { direction: ltr; text-align: right; }
.phone-row select { direction: ltr; }

.choices { display: grid; gap: 8px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .choices.cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 340px) { .choices.cols-3 { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  cursor: pointer; transition: all .15s; font-size: 15.5px;
}
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #aab6c6; flex-shrink: 0; transition: all .15s; }
.choice input[type="checkbox"] + span::before { border-radius: 5px; }
.choice input:checked + span { border-color: var(--blue); background: var(--sky-soft); color: var(--blue); font-weight: 600; }
.choice input:checked + span::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px var(--sky-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.inline-check { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.inline-check input { width: 17px; height: 17px; accent-color: var(--blue); }
.other-input { margin-top: 8px; display: none; }
.other-input.show { display: block; }

.terms-box { background: var(--bg); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.terms-box ul { list-style: none; display: grid; gap: 8px; }
.terms-box li b { color: var(--blue); }
.terms-guarantee { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--blue); border: 1.5px solid var(--sky); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.terms-guarantee::before { content: "✓"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; font-size: 14px; }

.error-msg { color: #c0392b; font-size: 13.5px; margin-top: 6px; display: none; }
.field.invalid .error-msg { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .choice span { border-color: #e2a39b; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.form-nav .btn-outline { color: var(--blue); }
.form-nav .spacer { flex: 1; }
/* Hidden in place: an off-screen offset would widen this right-to-left page. */
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-alert { display: none; background: #fdecea; color: #a93226; border-radius: 12px; padding: 12px 16px; margin-top: 14px; font-size: 14.5px; }
.form-alert.show { display: block; }

/* ---------- Thank-you page ---------- */
.thanks { padding: 56px 0 90px; }
.thanks-card { width: min(640px, 100%); margin-inline: auto; text-align: center; background: var(--white); border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 44px 32px; }
@media (max-width: 560px) { .thanks-card { padding: 34px 20px; } }
.check-badge { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-size: 32px; }
.thanks-card h1 { color: var(--blue); font-size: clamp(26px, 4vw, 32px); margin-bottom: 6px; }
.thanks-card > p { color: var(--muted); }
.timeline { list-style: none; text-align: start; margin: 30px 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; position: relative; padding-bottom: 18px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.timeline .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.timeline h3 { font-size: 17px; color: var(--blue); }
.timeline p { color: var(--muted); font-size: 15px; }
.thanks-actions { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.thanks-actions .btn { padding-inline: 12px; }
.thanks-actions .btn-outline { color: var(--blue); }
.small-note { font-size: 14px; color: var(--muted); margin-top: 24px; }
.small-note a { color: var(--blue); font-weight: 600; user-select: all; }
.thanks-sub { font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.timeline .dot { font-variant-numeric: tabular-nums; }

/* ---------- CV page ---------- */
.cv-page { padding: 40px 0 80px; }
.cv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; width: min(820px, 100%); margin-inline: auto; }
.cv-head h1 { color: var(--blue); font-size: clamp(24px, 3.6vw, 32px); }
.cv-pages { display: grid; gap: 20px; width: min(820px, 100%); margin-inline: auto; }
.cv-pages img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cv-cta { text-align: center; margin-top: 32px; }
