/* AKHDEMNI premium public-site system. No framework; preserve existing routes and forms. */
:root {
  --site-night: #0b1518;
  --site-night-2: #101e21;
  --site-panel: #142326;
  --site-panel-2: #1a2b2d;
  --site-line: rgba(219, 239, 233, .13);
  --site-text: #f3f6f1;
  --site-muted: #b0c0ba;
  --site-mint: #47c9a5;
  --site-mint-bright: #74e1c1;
  --site-paper: #f5f4ee;
  --site-ink: #13211f;
  --site-ink-muted: #63736d;
  --site-radius: 22px;
  --site-shadow: 0 28px 90px rgba(0, 0, 0, .25);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: "Tajawal", sans-serif; }
body h1, body h2, body h3, body h4, body h5, body h6 { font-family: "Cairo", "Tajawal", sans-serif !important; }
body.lang-ar, body.lang-en { background: var(--site-night); color: var(--site-text); }
::selection { background: rgba(71, 201, 165, .28); color: #fff; }
:focus-visible { outline: 3px solid var(--site-mint-bright); outline-offset: 4px; }

/* Homepage: cinematic, responsive video hero */
body:has(.hero-cinematic) { background: var(--site-night); }
body:has(.hero-cinematic) header {
  position: fixed; inset: 0 0 auto; width: 100%; z-index: 60;
  background: linear-gradient(180deg, rgba(5, 14, 16, .78), rgba(5, 14, 16, .08));
  border-color: transparent; box-shadow: none; backdrop-filter: blur(0);
}
body:has(.hero-cinematic) header.scrolled {
  background: rgba(8, 19, 21, .94); border-color: var(--site-line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .2); backdrop-filter: blur(18px);
}
body:has(.hero-cinematic) header .brand,
body:has(.hero-cinematic) header .nav-links a,
body:has(.hero-cinematic) header .lang-toggle button,
body:has(.hero-cinematic) header .menu-btn { color: #f5f7f2; }
body:has(.hero-cinematic) header .brand .mark { border-color: rgba(255,255,255,.22); }
body:has(.hero-cinematic) header .nav-links a:hover,
body:has(.hero-cinematic) header .nav-links a.active { color: var(--site-mint-bright); border-color: var(--site-mint); }
body:has(.hero-cinematic) header .lang-toggle { background: rgba(6, 18, 20, .4); border-color: rgba(255,255,255,.2); }
body:has(.hero-cinematic) header .lang-toggle button.on { background: var(--site-mint); color: #08211b; }
body:has(.hero-cinematic) header .menu-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

.hero-cinematic {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: min(900px, 100svh); padding: clamp(124px, 17vh, 190px) 0 clamp(86px, 12vh, 132px);
  overflow: clip; border: 0; background: var(--site-night); color: var(--site-text);
}
.hero-media, .hero-video, .hero-video-shade, .hero-video-grain {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { z-index: -2; overflow: hidden; background: #122225 url('/images/work-scenes/plumber-home.webp') center 42% / cover no-repeat; }
.hero-video { object-fit: cover; object-position: center 44%; opacity: .82; }
.hero-video-shade {
  z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 15, 18, .23) 0%, rgba(6, 15, 18, .5) 42%, rgba(6, 15, 18, .87) 100%),
    linear-gradient(0deg, rgba(6, 15, 18, .75), transparent 40%, rgba(6, 15, 18, .18));
}
.hero-video-grain {
  z-index: 2; pointer-events: none; opacity: .12; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}
.hero-cinematic .hero-grid { position: relative; z-index: 3; display: block; width: min(100% - 48px, 1240px); }
.hero-cinematic .hero-copy { max-width: 770px; margin-inline-start: auto; text-align: right; }
.hero-cinematic .hero-art { display: none; }
.hero-cinematic .hero-label {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
  color: #d7e6df; background: rgba(8, 25, 25, .48); border: 1px solid rgba(220, 245, 236, .2);
  border-radius: 999px; backdrop-filter: blur(12px); font-size: 14px; letter-spacing: .015em;
}
.hero-cinematic .hero-label svg { width: 18px; color: var(--site-mint); }
.hero-cinematic h1 {
  max-width: 780px; margin: 30px 0 0; color: #f8f8f2; font-size: clamp(48px, 7.2vw, 96px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance;
  text-shadow: 0 3px 32px rgba(0,0,0,.2);
}
body.lang-ar .hero-cinematic h1 { line-height: 1.28; letter-spacing: -.035em; }
.hero-cinematic h1 .accent { color: var(--site-mint-bright); }
.hero-cinematic .sub { max-width: 56ch; margin: 22px 0 0; color: rgba(241, 246, 240, .84); font-size: clamp(17px, 1.65vw, 21px); line-height: 1.85; }
.hero-cinematic .hero-cta { display: flex; align-items: center; gap: 13px; margin-top: 30px; }
.hero-cinematic .btn { min-height: 54px; border-radius: 13px; font-weight: 700; }
.hero-cinematic .btn-primary { color: #07231b; background: var(--site-mint); box-shadow: 0 14px 34px rgba(33, 181, 143, .2); }
.hero-cinematic .btn-primary:hover { background: var(--site-mint-bright); transform: translateY(-2px); }
.hero-cinematic .btn-link { color: #f3f6f2; border: 1px solid rgba(255,255,255,.3); background: rgba(10, 27, 28, .36); backdrop-filter: blur(12px); }
.hero-cinematic .btn-link:hover { border-color: var(--site-mint); background: rgba(13, 38, 37, .72); }
.hero-cinematic .trust-row { display: flex; flex-wrap: wrap; gap: 19px; max-width: 700px; margin-top: 28px; padding: 0; border: 0; color: rgba(236, 244, 238, .78); }
.hero-cinematic .trust-row .item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.hero-cinematic .trust-row .check { display: grid; place-items: center; width: 20px; height: 20px; color: var(--site-mint); background: rgba(71,201,165,.12); border: 1px solid rgba(71,201,165,.32); border-radius: 50%; font-size: 12px; }
.hero-side-note { position: absolute; z-index: 3; inset-inline-start: max(5vw, calc((100vw - 1240px) / 2)); bottom: 17%; color: rgba(238, 245, 239, .78); font-size: 14px; line-height: 1.8; border-inline-start: 1px solid var(--site-mint); padding-inline-start: 14px; }
.hero-video-toggle, .hero-scroll-cue { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.82); background: rgba(7,20,22,.45); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); border-radius: 99px; }
.hero-video-toggle { inset-inline-start: max(26px, calc((100vw - 1240px) / 2)); bottom: 42px; min-height: 42px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 13px; }
.hero-video-toggle[hidden] { display: none; }
.video-toggle-icon { font: 700 14px/1 Arial, sans-serif; }
.hero-scroll-cue { inset-inline-end: max(26px, calc((100vw - 1240px) / 2)); bottom: 42px; min-height: 42px; padding: 8px 15px; font-size: 13px; }
.hero-scroll-cue > span:last-child { color: var(--site-mint); font-size: 20px; }

/* Existing content keeps its information architecture; the visual language is unified. */
body:has(.hero-cinematic) .stat-bar { background: #0e1b1e; border-block: 1px solid var(--site-line); }
body:has(.hero-cinematic) .stat-grid .cell { border-color: var(--site-line); }
body:has(.hero-cinematic) .stat-grid .num { color: var(--site-mint-bright); }
body:has(.hero-cinematic) .stat-grid .lbl { color: var(--site-muted); }
body:has(.hero-cinematic) .band { background: var(--site-night); color: var(--site-text); }
body:has(.hero-cinematic) .band-paper { background: var(--site-night-2); }
body:has(.hero-cinematic) .h-section, body:has(.hero-cinematic) .sec-head h2,
body:has(.hero-cinematic) .prov-head h2 { color: var(--site-text); }
body:has(.hero-cinematic) .sec-head .sub, body:has(.hero-cinematic) .audience-intro .sub { color: var(--site-muted); }
body:has(.hero-cinematic) .eyebrow { color: var(--site-mint-bright); }
body:has(.hero-cinematic) .step, body:has(.hero-cinematic) .feature,
body:has(.hero-cinematic) .service-card, body:has(.hero-cinematic) .audience-card,
body:has(.hero-cinematic) .faq-item, body:has(.hero-cinematic) .contact-card,
body:has(.hero-cinematic) .prov-grid .benefit { background: var(--site-panel); border-color: var(--site-line); color: var(--site-text); box-shadow: none; }
body:has(.hero-cinematic) .step p, body:has(.hero-cinematic) .feature p,
body:has(.hero-cinematic) .audience-card p, body:has(.hero-cinematic) .faq-item p,
body:has(.hero-cinematic) .prov-grid .benefit p { color: var(--site-muted); }
body:has(.hero-cinematic) .step .n, body:has(.hero-cinematic) .feature .icon,
body:has(.hero-cinematic) .service-card .service-icon { color: var(--site-mint); }
body:has(.hero-cinematic) .service-picker, body:has(.hero-cinematic) .gallery-card,
body:has(.hero-cinematic) .dl-card, body:has(.hero-cinematic) .contact-cards .cc { background: var(--site-panel); border-color: var(--site-line); color: var(--site-text); }
body:has(.hero-cinematic) .section-next, body:has(.hero-cinematic) .btn-ghost { color: var(--site-text); border-color: var(--site-line); }
body:has(.hero-cinematic) .section-next:hover, body:has(.hero-cinematic) .btn-ghost:hover { border-color: var(--site-mint); color: var(--site-mint-bright); }
body:has(.hero-cinematic) .customer-path { border-color: rgba(71,201,165,.38); }
body:has(.hero-cinematic) .pro-path { border-color: rgba(71,201,165,.24); }
body:has(.hero-cinematic) .prov-showcase { background: #0e1b1e; border-color: var(--site-line); }
body:has(.hero-cinematic) .work-scene { border-color: var(--site-line); }
body:has(.hero-cinematic) footer { background: #071113; border-color: var(--site-line); }
body:has(.hero-cinematic) footer .foot-col a, body:has(.hero-cinematic) footer .foot-about,
body:has(.hero-cinematic) footer .foot-bottom { color: var(--site-muted); }
body:has(.hero-cinematic) .mobile-menu { z-index: 90; }

/* Professional join page */
body.join-page { background: var(--site-night); color: var(--site-text); }
body.join-page header { background: rgba(8,19,21,.94); border-color: var(--site-line); }
body.join-page .join-hero { min-height: 82svh; background: radial-gradient(ellipse at 18% 26%, rgba(43,134,110,.2), transparent 44%), var(--site-night); color: var(--site-text); }
body.join-page .join-hero h1, body.join-page .join-hero h2, body.join-page .band h2 { color: var(--site-text); }
body.join-page .join-hero .sub, body.join-page .join-note { color: var(--site-muted); }
body.join-page .join-photo { border: 1px solid var(--site-line); box-shadow: var(--site-shadow); }
body.join-page .band { background: var(--site-night); color: var(--site-text); }
body.join-page .band-paper { background: var(--site-night-2); }
body.join-page .feature, body.join-page .faq-item { background: var(--site-panel); border: 1px solid var(--site-line); color: var(--site-text); box-shadow: none; }
body.join-page .feature p, body.join-page .faq-item .a { color: var(--site-muted); }
body.join-page .feature .ic { color: var(--site-mint); }
body.join-page .join-benefits { gap: 14px; }
body.join-page .join-steps { color: var(--site-text); }
body.join-page .join-steps > * { background: var(--site-panel); border-color: var(--site-line); }
body.join-page .join-actions .btn-primary, body.join-page .join-final .btn-primary { color: #07231b; background: var(--site-mint); }
body.join-page .join-action-note, body.join-page .join-photo-note { color: var(--site-muted); }
body.join-page .join-final { background: linear-gradient(135deg, #102421, #102023); color: var(--site-text); border-color: var(--site-line); }
body.join-page footer { background: #071113; border-color: var(--site-line); }

/* Legal pages: readable documents with a shared branded shell */
body:has(.content-ar) { min-height: 100vh; padding: 20px clamp(14px, 3vw, 36px) 64px; background: var(--site-night); color: var(--site-text); }
body:has(.content-ar) > nav { position: sticky; top: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: min(100%, 1080px); margin: 0 auto 26px; padding: 12px 16px; color: var(--site-text); background: rgba(17,31,33,.9); border: 1px solid var(--site-line); border-radius: 16px; backdrop-filter: blur(16px); }
body:has(.content-ar) > nav a { color: var(--site-text); text-decoration: none; }
body:has(.content-ar) > nav .cur { color: var(--site-mint-bright); }
body:has(.content-ar) .lang-switch { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.06); border: 1px solid var(--site-line); border-radius: 99px; }
body:has(.content-ar) .lang-btn { min-height: 36px; padding: 6px 12px; color: var(--site-muted); background: transparent; border: 0; border-radius: 99px; font: inherit; cursor: pointer; }
body:has(.content-ar) .lang-btn.active { color: #07231b; background: var(--site-mint); }
body:has(.content-ar) .theme-tg { color: var(--site-text); background: var(--site-panel); border-color: var(--site-line); }
body:has(.content-ar) .content-ar, body:has(.content-ar) .content-en { width: min(100%, 1080px); margin: 0 auto; }
body:has(.content-ar) .page { width: 100%; max-width: none; margin: 0; padding: clamp(26px, 5vw, 62px); color: var(--site-text); background: linear-gradient(145deg, #142427, #101c1f); border: 1px solid var(--site-line); border-radius: 26px; box-shadow: var(--site-shadow); }
body:has(.content-ar) .page h1 { color: var(--site-text); font-size: clamp(32px, 4.8vw, 54px); line-height: 1.25; }
body:has(.content-ar) .page h2, body:has(.content-ar) .page h3 { color: #eaf4ef; }
body:has(.content-ar) .page p, body:has(.content-ar) .page li { color: #c2d0ca; line-height: 1.95; }
body:has(.content-ar) .page a { color: var(--site-mint-bright); }
body:has(.content-ar) .page .meta { color: #8fa19a; }
body:has(.content-ar) .doc-label { color: var(--site-mint-bright); background: rgba(71,201,165,.09); border-color: rgba(71,201,165,.24); }
body:has(.content-ar) .doc-body .sec, body:has(.content-ar) .doc-body .steps-list,
body:has(.content-ar) .doc-body .step { background: rgba(255,255,255,.035); border-color: var(--site-line); }
body:has(.content-ar) .back-link { color: var(--site-mint-bright); }
body:has(.content-ar) .content-en, body:has(.content-ar) .nav-en { display: none !important; }
/* Keep the legal pages' existing day/night switch truthful after the shared redesign. */
html[data-theme="light"] body:has(.content-ar) { background: #f2f4f0; color: #172521; }
html[data-theme="light"] body:has(.content-ar) > nav { color: #172521; background: rgba(250,251,247,.94); border-color: #dce6e0; box-shadow: 0 12px 34px rgba(16,46,37,.08); }
html[data-theme="light"] body:has(.content-ar) > nav a { color: #566761; }
html[data-theme="light"] body:has(.content-ar) > nav .cur { color: #15342b; }
html[data-theme="light"] body:has(.content-ar) .lang-switch { background: #eef3ef; border-color: #dce6e0; }
html[data-theme="light"] body:has(.content-ar) .lang-btn { color: #53655e; }
html[data-theme="light"] body:has(.content-ar) .lang-btn.active { color: #fff; background: #168a73; }
html[data-theme="light"] body:has(.content-ar) .theme-tg { color: #496158; background: #fff; border-color: #dce6e0; }
html[data-theme="light"] body:has(.content-ar) .page { color: #182720; background: linear-gradient(145deg, #fff, #f8faf7); border-color: #dce6e0; box-shadow: 0 24px 70px rgba(17,48,39,.09); }
html[data-theme="light"] body:has(.content-ar) .page h1 { color: #172521; }
html[data-theme="light"] body:has(.content-ar) .page h2, html[data-theme="light"] body:has(.content-ar) .page h3 { color: #126c5c; }
html[data-theme="light"] body:has(.content-ar) .page p, html[data-theme="light"] body:has(.content-ar) .page li { color: #566761; }
html[data-theme="light"] body:has(.content-ar) .page a, html[data-theme="light"] body:has(.content-ar) .back-link { color: #0f806a; }
html[data-theme="light"] body:has(.content-ar) .page .meta { color: #718078; }
html[data-theme="light"] body:has(.content-ar) .doc-label { color: #147c66; background: rgba(31,150,119,.08); border-color: rgba(31,150,119,.2); }
html[data-theme="light"] body:has(.content-ar) .doc-body .sec,
html[data-theme="light"] body:has(.content-ar) .doc-body .steps-list,
html[data-theme="light"] body:has(.content-ar) .doc-body .step { background: #fff; border-color: #e0e9e4; }

/* Account verification and password pages */
body:has(.worker-signup), body:has(> .card) { min-height: 100vh; background: radial-gradient(ellipse at 15% 0%, rgba(49,145,117,.2), transparent 38%), var(--site-night); color: var(--site-text); }
body:has(.worker-signup) .signup-top .brand { color: var(--site-text); }
body:has(.worker-signup) .signup-card, body:has(> .card) .card { color: var(--site-text); background: linear-gradient(150deg, #16272a, #111f22); border: 1px solid var(--site-line); border-radius: 24px; box-shadow: var(--site-shadow); }
body:has(.worker-signup) .signup-card h1, body:has(> .card) .content h1 { color: var(--site-text); }
body:has(.worker-signup) .signup-intro, body:has(> .card) .content p { color: var(--site-muted); }
body:has(.worker-signup) .signup-field label { color: #e6f0ea; }
body:has(.worker-signup) input, body:has(.worker-signup) select, body:has(.worker-signup) textarea,
body:has(> .card) input { color: var(--site-text); background: #0b1719; border-color: var(--site-line); }
body:has(.worker-signup) input:focus, body:has(.worker-signup) select:focus, body:has(> .card) input:focus { border-color: var(--site-mint); box-shadow: 0 0 0 3px rgba(71,201,165,.12); }
body:has(.worker-signup) .signup-hint, body:has(.worker-signup) .consent-choice { color: var(--site-muted); }
body:has(.worker-signup) .signup-submit, body:has(> .card) .btn, body:has(> .card) .home { color: #07231b; background: var(--site-mint); border: 0; }
body:has(.worker-signup) .signup-submit:hover, body:has(> .card) .btn:hover, body:has(> .card) .home:hover { background: var(--site-mint-bright); }
body:has(.worker-signup) .signup-status, body:has(> .card) .status { color: #dff8ed; background: rgba(71,201,165,.1); border-color: rgba(71,201,165,.25); }
body:has(.worker-signup) .signup-success { color: var(--site-text); background: var(--site-panel); border-color: var(--site-line); }

/* Worker registration: a clear, premium desktop form that collapses cleanly to mobile. */
body:has(.worker-signup) { background: radial-gradient(ellipse at 8% 4%, rgba(54,166,133,.17), transparent 35%), var(--site-night); }
.worker-signup { min-height: 100svh; padding: 24px clamp(16px, 4vw, 54px) 76px; background: transparent; color: var(--site-text); color-scheme: dark; }
.signup-wrap { width: min(100%, 1320px); margin-inline: auto; }
.signup-top { max-width: 1320px; margin: 0 auto 18px; }
.signup-top .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--site-text); font-size: 20px; text-decoration: none; }
.signup-top .brand::before { content: ""; width: 34px; height: 34px; border-radius: 10px; background: #fff url("/logo-mark.png") center / contain no-repeat; }
.signup-top .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; color: var(--site-text); background: rgba(255,255,255,.055); border: 1px solid var(--site-line); border-radius: 12px; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.signup-top .btn:hover { background: rgba(71,201,165,.1); border-color: rgba(71,201,165,.42); transform: translateY(-1px); }
.signup-layout { display: grid; grid-template-columns: minmax(270px, .82fr) minmax(0, 1.38fr); gap: 20px; direction: ltr; align-items: stretch; }
.signup-promo { position: sticky; top: 22px; align-self: start; display: flex; min-height: min(760px, calc(100svh - 100px)); overflow: hidden; color: #f4f7f2; background: #142326; border: 1px solid var(--site-line); border-radius: 26px; isolation: isolate; }
.signup-promo::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(0deg, rgba(6,16,18,.97) 3%, rgba(6,16,18,.78) 43%, rgba(6,16,18,.12) 100%), linear-gradient(90deg, rgba(6,16,18,.16), rgba(6,16,18,.15)); }
.signup-promo > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% center; filter: saturate(.78); }
.signup-promo-content { display: flex; width: 100%; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: clamp(24px, 3vw, 42px); direction: rtl; text-align: right; }
.signup-promo .eyebrow { color: var(--site-mint-bright); }
.signup-promo h2 { max-width: 12ch; margin: 14px 0 10px; color: #fff; font: 800 clamp(32px, 3.5vw, 48px)/1.2 'Tajawal', sans-serif; text-wrap: balance; }
.signup-promo p { max-width: 38ch; margin: 0; color: rgba(242,247,243,.83); font-size: 15px; line-height: 1.9; }
.signup-promo-points { display: grid; gap: 12px; width: 100%; margin: 26px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); color: rgba(242,247,243,.92); font-size: 14px; }
.signup-promo-points li { display: flex; align-items: center; gap: 10px; }
.signup-promo-points li span { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; color: #09241c; background: var(--site-mint); border-radius: 50%; font-size: 12px; font-weight: 900; }
.signup-promo-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #d8f8ec; font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s ease, gap .2s ease; }
.signup-promo-back:hover { gap: 12px; color: var(--site-mint-bright); }
.signup-card { min-width: 0; padding: clamp(24px, 4vw, 48px); color: var(--site-text); background: linear-gradient(150deg, rgba(22,39,42,.98), rgba(15,28,31,.98)); border: 1px solid var(--site-line); border-radius: 26px; box-shadow: var(--site-shadow); direction: rtl; }
.signup-card > #signup-form-wrap > .eyebrow { display: inline-flex; margin-bottom: 8px; color: var(--site-mint-bright); }
.signup-card h1 { margin: 4px 0 8px; color: #f4f7f2; font: 800 clamp(30px, 4vw, 42px)/1.25 'Tajawal', sans-serif; letter-spacing: -.02em; }
.signup-card .signup-intro { max-width: 62ch; margin: 0 0 26px; color: var(--site-muted); font-size: 15px; line-height: 1.85; }
.signup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 16px; }
.signup-section-heading { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 13px 0 1px; direction: rtl; }
.signup-section-heading.full { grid-column: 1 / -1; }
.signup-section-number { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: var(--site-mint-bright); background: rgba(71,201,165,.1); border: 1px solid rgba(71,201,165,.2); border-radius: 12px; font: 700 13px/1 'Cairo', sans-serif; font-variant-numeric: tabular-nums; }
.signup-section-heading h2 { margin: 0; color: #eef5f0; font: 700 18px/1.35 'Tajawal', sans-serif; }
.signup-section-heading p { margin: 3px 0 0; color: #9dafaa; font-size: 12px; line-height: 1.65; }
.signup-field { gap: 8px; }
.signup-field label, .signup-legend { color: #eaf1ed; font-size: 13px; font-weight: 700; }
.signup-field input, .signup-field select, .signup-field textarea { width: 100%; min-height: 52px; padding: 12px 14px; color: #f2f6f2; background: rgba(7,19,21,.72); border: 1px solid rgba(220,239,232,.15); border-radius: 13px; font: 500 14px 'Cairo', sans-serif; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.signup-field input::placeholder, .signup-field textarea::placeholder { color: #73857f; opacity: 1; }
.signup-field select option { color: #f2f6f2; background: #142326; }
.signup-field input:focus, .signup-field select:focus, .signup-field textarea:focus { outline: none; background: #0b1a1c; border-color: var(--site-mint); box-shadow: 0 0 0 3px rgba(71,201,165,.14); }
.signup-field input:focus-visible, .signup-field select:focus-visible, .signup-field textarea:focus-visible { outline: 2px solid var(--site-mint-bright); outline-offset: 2px; }
.signup-field textarea { min-height: 98px; line-height: 1.75; resize: vertical; }
.signup-field .signup-hint { color: #98aaa4; font-size: 11px; line-height: 1.65; }
.signup-legend { padding: 0; }
.profession-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.profession-count { display: inline-flex; min-width: 44px; align-items: center; justify-content: center; margin-inline-start: 8px; padding: 3px 8px; color: var(--site-mint-bright); background: rgba(71,201,165,.1); border: 1px solid rgba(71,201,165,.2); border-radius: 999px; font-size: 11px; font-variant-numeric: tabular-nums; }
.profession-search-label { display: block; margin-top: 12px; color: #b7c7c0 !important; font-size: 12px !important; }
.profession-search { position: relative; display: flex; align-items: center; margin-top: 6px; }
.profession-search svg { position: absolute; inset-inline-start: 14px; width: 19px; height: 19px; color: var(--site-mint); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.profession-search input { min-height: 48px !important; padding-inline-start: 43px !important; }
.profession-choice[hidden] { display: none !important; }
.profession-icon { display: block; width: 30px; height: 30px; flex: 0 0 30px; padding: 5px; color: var(--site-mint); background: rgba(71,201,165,.09); border: 1px solid rgba(71,201,165,.13); border-radius: 9px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.profession-choice { min-height: 54px; padding: 10px 11px; color: #d8e3de; background: rgba(8,21,23,.55); border: 1px solid rgba(220,239,232,.12); border-radius: 12px; font-size: 12px; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.profession-choice:hover { border-color: rgba(71,201,165,.42); transform: translateY(-1px); }
.profession-choice:has(input:checked) { color: #ecfff7; background: rgba(71,201,165,.12); border-color: var(--site-mint); }
.profession-choice:has(input:checked) .profession-icon { color: #08241c; background: var(--site-mint); border-color: var(--site-mint); }
.profession-search-empty { margin: 12px 0 0; padding: 14px; color: var(--site-muted); background: rgba(7,19,21,.45); border: 1px dashed var(--site-line); border-radius: 12px; font-size: 12px; text-align: center; }
.profession-choice input { accent-color: var(--site-mint); }
.signup-consents { display: grid; gap: 10px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--site-line); }
.signup-consents > .signup-section-heading { margin: 0 0 5px; }
.signup-consents .signup-field.full { grid-column: auto; }
.signup-consents a { color: var(--site-mint-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.consent-choice { min-height: 48px; padding: 10px 12px; color: #c7d4ce; background: rgba(7,19,21,.34); border-color: rgba(220,239,232,.11); font-size: 12px; line-height: 1.7; }
.consent-choice:focus-within { border-color: var(--site-mint); }
.consent-choice input { accent-color: var(--site-mint); }
.signup-submit { min-height: 56px; margin-top: 20px; color: #08241c; background: var(--site-mint); border-radius: 14px; box-shadow: 0 12px 30px rgba(39,174,139,.17); font-size: 16px; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.signup-submit:hover:not(:disabled) { background: var(--site-mint-bright); box-shadow: 0 16px 34px rgba(39,174,139,.24); transform: translateY(-2px); }
.signup-submit:active:not(:disabled) { transform: translateY(0) scale(.99); }
.signup-submit:focus-visible, .signup-top .btn:focus-visible, .signup-promo-back:focus-visible { outline: 3px solid var(--site-mint-bright); outline-offset: 3px; }
.signup-status { padding: 14px 16px; border: 1px solid transparent; font-size: 13px; }
.signup-status.error { color: #ffd9d7; background: rgba(133,38,41,.22); border-color: rgba(238,99,99,.3); }
.signup-status.success { color: #d5f5e7; background: rgba(24,100,75,.23); border-color: rgba(71,201,165,.3); }
.signup-hint { color: #9dafaa; }
.signup-success { padding: 28px; background: rgba(71,201,165,.07); border: 1px solid rgba(71,201,165,.2); border-radius: 18px; }
.signup-success h2 { color: #f4f7f2; font: 800 28px/1.35 'Tajawal', sans-serif; }
.signup-success .signup-intro { color: var(--site-muted); }
.signup-actions { gap: 10px; }
.signup-actions .btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 17px; color: #08241c; background: var(--site-mint); border-radius: 12px; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.signup-actions .btn:hover { background: var(--site-mint-bright); transform: translateY(-1px); }
.signup-layout:has(.signup-success.show) { grid-template-columns: minmax(0, 820px); justify-content: center; }
.signup-layout:has(.signup-success.show) .signup-promo { display: none; }

@media (max-width: 980px) {
  .worker-signup { padding-inline: 22px; }
  .signup-layout { grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: 14px; }
  .signup-promo-content { padding: 24px; }
  .signup-promo h2 { font-size: clamp(28px, 4vw, 38px); }
  .profession-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .worker-signup { padding: 14px 14px 40px; }
  .signup-top { margin-bottom: 12px; }
  .signup-layout { display: flex; flex-direction: column; gap: 12px; }
  .signup-promo { position: relative; top: auto; order: 0; min-height: 195px; }
  .signup-promo > img { object-position: center 45%; }
  .signup-promo::after { background: linear-gradient(0deg, rgba(6,16,18,.96), rgba(6,16,18,.48) 70%, rgba(6,16,18,.14)); }
  .signup-promo-content { padding: 20px 22px; }
  .signup-promo h2 { margin: 8px 0 5px; font-size: 28px; }
  .signup-promo p { max-width: 46ch; font-size: 12px; line-height: 1.65; }
  .signup-promo-points { display: none; }
  .signup-promo-back { margin-top: 10px; font-size: 12px; }
  .signup-card { order: 1; padding: 25px 20px; border-radius: 21px; }
  .signup-card .signup-intro { margin-bottom: 20px; font-size: 13px; }
  .signup-grid { row-gap: 13px; }
  .signup-section-heading { margin-top: 11px; }
  .signup-section-heading h2 { font-size: 16px; }
  .signup-field input, .signup-field select, .signup-field textarea { min-height: 50px; }
}
@media (max-width: 520px) {
  .signup-grid { grid-template-columns: minmax(0, 1fr); }
  .signup-grid > .signup-field, .signup-grid > .signup-field.full,
  .signup-grid > .signup-section-heading.full { grid-column: 1; }
  .profession-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profession-choice { min-height: 50px; padding: 9px; font-size: 11px; }
  .signup-consents { gap: 8px; }
  .signup-card h1 { font-size: 30px; }
  .signup-promo { min-height: 178px; }
  .signup-promo-content { padding: 17px 19px; }
  .signup-top .brand { font-size: 18px; }
}
@media (max-width: 360px) {
  .worker-signup { padding-inline: 10px; }
  .signup-card { padding-inline: 16px; }
  .profession-grid { grid-template-columns: minmax(0, 1fr); }
  .signup-promo h2 { font-size: 25px; }
}

/* Desktop hero hierarchy: center the full message in the viewport. */
@media (min-width: 901px) {
  .hero-cinematic .hero-copy { max-width: 850px; margin-inline: auto; text-align: center; }
  .hero-cinematic h1, .hero-cinematic .sub { margin-inline: auto; }
  .hero-cinematic .hero-cta, .hero-cinematic .trust-row { justify-content: center; }
  .hero-cinematic .trust-row { max-width: none; }
}

/* Keep the selected still visible until decorative video playback succeeds. */
.hero-video { opacity: 0; transition: opacity .5s ease; }
.hero-video.video-ready { opacity: .82; }
.hero-video.video-failed { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

@media (min-width: 1500px) {
  .hero-cinematic { min-height: min(980px, 100svh); }
}
@media (max-width: 900px) {
  .hero-cinematic { min-height: 92svh; padding-block: 140px 112px; }
  .hero-cinematic .hero-grid { width: min(100% - 42px, 720px); }
  .hero-cinematic .hero-copy { max-width: 700px; }
  .hero-side-note { display: none; }
}
@media (max-width: 640px) {
  .hero-cinematic { min-height: 100svh; align-items: end; padding: 94px 0 82px; }
  .hero-media { background-position: 54% center; }
  .hero-video { object-position: 56% center; }
  .hero-video-shade { background: linear-gradient(0deg, rgba(6,15,18,.91) 0%, rgba(6,15,18,.69) 34%, rgba(6,15,18,.08) 100%), linear-gradient(90deg, rgba(6,15,18,.12), rgba(6,15,18,.27)); }
  .hero-cinematic .hero-grid { width: min(100% - 36px, 560px); }
  .hero-cinematic .hero-copy { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; text-align: right; }
  .hero-cinematic .hero-label { gap: 7px; padding: 7px 11px; font-size: 12px; }
  .hero-cinematic .hero-label svg { width: 15px; }
  .hero-cinematic h1 { margin-top: 13px; font-size: clamp(32px, 8.5vw, 39px); line-height: 1.18; }
  .hero-cinematic .sub { max-width: 36ch; margin-top: 9px; font-size: 14px; line-height: 1.55; }
  .hero-cinematic .hero-cta { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  .hero-cinematic .hero-cta .btn { justify-content: center; min-height: 46px; padding-block: 9px; font-size: 15px; }
  .hero-cinematic .trust-row { display: none; }
  .hero-scroll-cue { inset-inline-end: 18px; bottom: 18px; min-height: 38px; font-size: 12px; }
  body:has(.content-ar) { padding: 12px 12px 34px; }
  body:has(.content-ar) > nav { top: 6px; gap: 7px; margin-bottom: 14px; padding: 9px 10px; border-radius: 13px; }
  body:has(.content-ar) .page { padding: 26px 20px; border-radius: 20px; }
  body:has(.worker-signup) .signup-wrap { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared navigation between the legal pages. */
.legal-site-footer { width: min(100%, 1080px); margin: 16px auto 0; padding: 18px clamp(18px, 4vw, 34px); background: rgba(17,31,33,.72); border: 1px solid var(--site-line); border-radius: 18px; }
.legal-site-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(14px, 2.5vw, 28px); }
.legal-site-links a { color: var(--site-muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.legal-site-links a:hover { color: var(--site-mint-bright); text-decoration: underline; text-underline-offset: 4px; }
html[data-theme="light"] .legal-site-footer { background: rgba(255,255,255,.86); border-color: #dce6e0; }
html[data-theme="light"] .legal-site-links a { color: #53655e; }

/* Keep all legal documents one tap away from each other. */
body:has(.content-ar) .legal-documents-nav {
  position: relative; top: auto; z-index: 1; width: min(100% - 32px, 1080px); margin: 16px auto 0;
  display: flex; align-items: center; gap: 8px; padding: 9px; overflow-x: auto;
  background: rgba(22,34,39,.92); border: 1px solid var(--site-line); border-radius: 16px;
  scrollbar-width: thin; scrollbar-color: rgba(104,208,174,.5) transparent;
}
body:has(.content-ar) .legal-documents-nav a {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px;
  color: #dbe7e2; background: transparent; border: 1px solid transparent; border-radius: 11px;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
body:has(.content-ar) .legal-documents-nav a:hover,
body:has(.content-ar) .legal-documents-nav a[aria-current="page"] {
  color: #0d493b; background: #d9f0e4; border-color: #c4e4d2;
}
body:has(.content-ar) .legal-documents-nav svg {
  display: block; flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
body:has(.content-ar) .legal-documents-nav .legal-home-link svg { width: 20px; height: 20px; }
body:has(.content-ar) .legal-documents-nav .nav-en { display: none !important; }
body:has(.content-ar) .back-link { scroll-margin-top: 80px; }
html[data-theme="light"] body:has(.content-ar) .legal-documents-nav { background: #fff; border-color: #dce6e0; box-shadow: 0 8px 24px rgba(16,46,37,.06); }
html[data-theme="light"] body:has(.content-ar) .legal-documents-nav a { color: #53655e; }
html[data-theme="light"] body:has(.content-ar) .legal-documents-nav a:hover,
html[data-theme="light"] body:has(.content-ar) .legal-documents-nav a[aria-current="page"] { color: #0d493b; background: #e2f3e9; border-color: #c4e4d2; }
html { scroll-padding-top: 84px; }

/* Scroll motion: progressive enhancement, staggered by content group. */
.reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .68s cubic-bezier(.22, 1, .36, 1), transform .68s cubic-bezier(.22, 1, .36, 1);
  }
  .motion-ready .reveal.in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  .steps > .reveal:nth-child(2),
  .features > .reveal:nth-child(2),
  .contact-cards > .reveal:nth-child(2) { transition-delay: 80ms; }
  .steps > .reveal:nth-child(3),
  .features > .reveal:nth-child(3),
  .contact-cards > .reveal:nth-child(3) { transition-delay: 150ms; }
  .steps > .reveal:nth-child(4),
  .features > .reveal:nth-child(4) { transition-delay: 220ms; }
  .features > .reveal:nth-child(5) { transition-delay: 290ms; }
  .features > .reveal:nth-child(6) { transition-delay: 360ms; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}
html[data-theme="light"] .legal-site-links a:hover { color: #0f806a; }
