/* =========================================================
   Sedad Mawthooq · English pages (batch 2) — page-specific styles
   Used by: en/compliance, careers, contact, faq, privacy, terms, 404
   Loaded AFTER style.css. Tokens only; no new colours.
   ========================================================= */

/* ---------- Shared helpers ---------- */
html { scroll-padding-top: 96px; }
.h2-lg { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--navy-900); }
.section--clip { overflow: hidden; isolation: isolate; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.split--start { align-items: start; }
.ph { background: rgba(201, 154, 61, .14); color: var(--gold-700); padding: 0 .35em; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.section--dark .ph, .page-hero .ph { color: var(--gold-300); background: rgba(201, 154, 61, .18); }
/* Gold gradient text needs deeper stops on light sections to stay legible */
.section--white .sec-head .gold-text, .section--ivory .sec-head .gold-text { background-image: linear-gradient(100deg, #b98a34 0%, #c99a3d 40%, #a9772f 60%, #c99a3d 100%); }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }

/* English header is wider than the Arabic one and overflows the 1240px container
   (CTA clipped at the viewport edge at 1366-1440px). Fixes, desktop nav only:
   - allow the header row to be wider than the page container,
   - tighten link padding, hide the tagline until there is room,
   - drop the CTA between 1181-1279px (still in the mobile menu and on Contact). */
@media (min-width: 1181px) { html[lang="en"] .site-header .container { max-width: 1400px; } }
@media (min-width: 1361px) { html[lang="en"] .nav a.nav-link, html[lang="en"] .nav button.nav-link { padding-inline: 11px; } }
@media (min-width: 1181px) and (max-width: 1439px) { html[lang="en"] .brand-tag { display: none; } }
@media (min-width: 1181px) and (max-width: 1279px) { html[lang="en"] .header-cta { display: none; } }

/* ---------- Compliance ---------- */
.check-list--rich li strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 1rem; margin-bottom: 2px; }
.check-list--rich { gap: 22px; }
.check-list--rich li::before { top: .3em; }

/* Ethical code — numbered two-column list */
.code-list { columns: 2; column-gap: clamp(32px, 6vw, 88px); margin: 0; padding: 0; list-style: none; }
.code-list li { break-inside: avoid; display: grid; grid-template-columns: 68px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid rgba(201, 154, 61, .24); }
.code-list .cn { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.code-list li h3 { font-size: 1.16rem; color: var(--white); margin: 0 0 6px; }
.code-list li p { margin: 0; color: #b6c4d4; font-size: .95rem; }
@media (max-width: 860px) { .code-list { columns: 1; } }
@media (max-width: 420px) { .code-list li { grid-template-columns: 52px 1fr; gap: 12px; } .code-list .cn { font-size: 1.8rem; } }

/* Four-step process (complaints) */
@media (min-width: 981px) {
  .process--4 { grid-template-columns: repeat(4, 1fr); }
  .process--4::before { inset-inline: 12.5%; }
  .process--4 .pline { inset-inline-start: 12.5%; }
  .process--4.in-view .pline { width: 75%; }
}
.step p .ph { white-space: normal; }

/* ---------- Careers ---------- */
.apply-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.apply-aside { position: sticky; top: 110px; }
@media (max-width: 980px) { .apply-grid { grid-template-columns: 1fr; } .apply-aside { position: static; } }

/* Forms (shared by careers + contact) */
.form-head { margin-bottom: 26px; }
.form-head h3 { font-size: 1.5rem; color: var(--navy-900); margin-bottom: 6px; }
.form-head p { color: var(--ink-soft); margin: 0; }
.form-card:has(form.is-sent) .form-head { display: none; }
.form-grid .note { margin: 0; }
.form-grid .note .ico { margin-top: 5px; }
.field .file-drop { position: relative; }
.field .file-drop .ico { display: block; }
.field .mirror { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.file-drop small { display: inline-block; margin-top: 4px; }
.consent { flex-wrap: wrap; }
.consent > span:not(.err) { flex: 1; min-width: 0; }
.consent .err { flex-basis: 100%; font-size: .8rem; color: #c0392b; display: none; }
.consent.has-error .err { display: block; }
.form-success h3 { color: var(--navy-900); font-size: 1.5rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 16px; }
.form-card .btn { min-width: 220px; }
.form-grid .full > .btn { margin-top: 6px; }

/* Multi-select pill group */
.chk-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.chk-group legend { padding: 0; margin-bottom: 10px; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--navy-900); }
.chk-group legend .req { color: var(--gold-600); }
.chk-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field .chk-pill { position: relative; display: inline-flex; cursor: pointer; font-weight: 400; }
.field .chk-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; pointer-events: none; }
.field .chk-pill span { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); background: #fbfbfa; box-shadow: inset 0 0 0 1.5px #dde3ea; transition: all .3s; }
.field .chk-pill:hover span { box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.field .chk-pill input:checked + span { background: var(--navy-900); color: var(--gold-300); box-shadow: none; }
.field .chk-pill input:focus-visible + span { outline: 2px solid var(--gold-400); outline-offset: 3px; }
.field.has-error .chk-pill span { box-shadow: inset 0 0 0 1.5px #d0574b; }
.field.has-error .chk-pill input:checked + span { box-shadow: none; }

/* ---------- Contact ---------- */
.contact-cards .contact-card { height: 100%; align-items: center; }
.contact-card .ico-badge { width: 48px; height: 48px; border-radius: 14px; }
.contact-card .ico-badge .ico { width: 24px; height: 24px; }
.contact-card > div { min-width: 0; overflow-wrap: anywhere; }
.contact-card a, .contact-card span { font-size: .95rem; }
.response-promise { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 0; color: var(--gold-200); font-family: var(--font-head); font-size: .98rem; text-align: center; }
.response-promise .ico { color: var(--gold-400); width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 1024px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; text-align: center; color: #b6c4d4; background:
  linear-gradient(rgba(201, 154, 61, .07) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(201, 154, 61, .07) 1px, transparent 1px) 0 0 / 56px 56px,
  radial-gradient(ellipse at 50% 40%, rgba(201, 154, 61, .16), transparent 60%); }
.map-placeholder strong { font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 1.1rem; max-width: 560px; line-height: 1.5; }
.map-placeholder span:not(.ico-badge) { font-size: .9rem; }
.map-box { min-height: 340px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.faq-aside .h2-lg { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.faq-body a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.faq-body p + p { margin-top: 1em; }
.faq-item summary { text-align: start; }
@media (max-width: 980px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* ---------- Legal pages ---------- */
.page-hero--compact { padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 clamp(40px, 5vw, 64px); }
.page-hero--compact h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 10px; }
.page-hero--compact p.lead { margin: 0; font-size: 1rem; }
.section--legal { padding-block: clamp(48px, 7vw, 96px); }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; }
.prose ul li::marker { color: var(--gold-500); }
.legal-links { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line-light); }

/* ---------- 404 ---------- */
.err-page { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: var(--navy-950); color: var(--white); padding: calc(var(--header-h) + 40px) 0 80px; text-align: center; }
.err-page .ph-media { position: absolute; inset: 0; z-index: -3; }
.err-page .ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.err-page::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 30%, rgba(201, 154, 61, .2), transparent 60%), linear-gradient(180deg, rgba(2, 15, 31, .7), rgba(2, 15, 31, .96)); }
.err-inner { display: flex; flex-direction: column; align-items: center; }
.err-code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(6.5rem, 22vw, 14rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.err-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: var(--white); }
.err-page .lead { color: #c3d0de; max-width: 560px; margin-inline: auto; margin-bottom: 32px; }
