/* =========================================================
   AmanNet — main stylesheet
   One file for both languages. Layout uses CSS logical
   properties (margin-inline, padding-inline-start, inset-inline-end…)
   so the same rules mirror automatically on dir="rtl" pages.
   ========================================================= */

:root {
  --navy: #0B1A30;
  --navy-deep: #071226;
  --navy-darker: #050E1D;
  --surface: #12233F;
  --teal-surface: #0E2A3D;
  --border: #1F3557;
  --border-strong: #2B4670;
  --teal-border: #1E5A6E;
  --text: #EAF1FB;
  --prose: #C9D5E6;
  --muted: #A9B8CF;
  --muted-2: #B9C8DD;
  --faint: #8FA0BA;
  --cyan: #2DD4E6;
  --cyan-hover: #67E3F0;
  --on-cyan: #06121F;
  --wa: #25D366;
  --wa-hover: #4ADE80;
  --on-wa: #052E16;
  --amber: #FDBA74;
  --amber-bg: #2A1E10;
  --amber-border: #7C4A14;
  --amber-text: #E8D3BA;

  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: 1.0625rem;
  line-height: 1.6;
}
html[dir="rtl"] body {
  font-family: var(--font-arabic);
  font-size: 1.125rem;
  line-height: 1.8;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  line-height: 1.4;
}
p { margin: 0; }
a { color: var(--text); }
a:hover { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.icon { flex: none; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
  background: var(--cyan); color: var(--on-cyan); font-weight: 600;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--on-cyan); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .container { padding-inline: 20px; } }

/* ---------- Header ---------- */
.site-header { background: var(--navy-deep); border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em;
  direction: ltr;
}
.logo:hover { color: var(--text); }
.logo .icon { color: var(--cyan); width: 30px; height: 30px; }
.logo-net { color: var(--cyan); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 0.9375rem; font-weight: 500; }
html[dir="rtl"] .nav { font-size: 1rem; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--cyan); }
.lang-switch { padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 8px; }
.lang-switch[lang="en"] { font-family: var(--font-latin); font-size: 0.9375rem; }
.lang-switch[lang="ar"] { font-family: var(--font-arabic); }
@media (max-width: 760px) {
  .nav { gap: 10px 18px; width: 100%; }
  .nav .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  border-radius: 12px; padding: 14px 28px; min-height: 50px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { padding: 9px 20px; min-height: 44px; border-radius: 10px; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--cyan); color: var(--on-cyan); }
.btn-primary:hover { background: var(--cyan-hover); color: var(--on-cyan); }
.btn-outline { border-color: var(--cyan); color: var(--text); }
.btn-outline .icon { color: var(--cyan); }
.btn-outline:hover { background: var(--teal-surface); color: var(--text); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { background: var(--wa-hover); color: var(--on-wa); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Sections & type ---------- */
.section { padding-block: 104px; }
.section-tight-top { padding-top: 0; }
.section-alt { background: var(--navy-deep); border-block: 1px solid var(--border); }
@media (max-width: 760px) { .section { padding-block: 72px; } }

.eyebrow {
  margin-bottom: 18px; color: var(--cyan);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
html[dir="rtl"] .eyebrow { font-family: var(--font-arabic); letter-spacing: 0; font-size: 1.125rem; text-transform: none; }

.h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); margin-bottom: 24px; }
html[dir="rtl"] .h1 { font-size: clamp(2.05rem, 4.1vw, 3.375rem); }
.h1-sm { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.h2 { font-size: clamp(1.85rem, 3.1vw, 2.5rem); margin-bottom: 20px; }
.h2-md { font-size: clamp(1.7rem, 2.7vw, 2.25rem); }
.h3 { font-size: 1.375rem; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.25rem; max-width: 700px; }
html[dir="rtl"] .lead { font-size: 1.3125rem; }
.muted { color: var(--muted); }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }
.max-640 { max-width: 640px; }

.label { margin-bottom: 12px; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; }
html[dir="rtl"] .label { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.label-warn { color: var(--amber); }
.label-accent { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero { background: var(--navy-deep); border-bottom: 1px solid var(--border); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 112px 120px; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero-side { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero .lead { margin-bottom: 36px; }
@media (max-width: 760px) { .hero-inner { padding-block: 72px; gap: 48px; } }

.note-line { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 0.9375rem; }
.note-line .icon { color: var(--cyan); width: 18px; height: 18px; }

.panel {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
}
.panel-title { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.panel-item { display: flex; align-items: center; gap: 14px; background: var(--navy); border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.panel-item .icon { color: var(--cyan); width: 24px; height: 24px; }

.page-hero { background: var(--navy-deep); border-bottom: 1px solid var(--border); padding-block: 96px 88px; }
.page-hero .lead { margin-top: 4px; }
@media (max-width: 760px) { .page-hero { padding-block: 64px 56px; } }

/* ---------- Grids & cards ---------- */
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row-32 { gap: 32px; }
.col { flex: 1 1 240px; min-width: 0; }
.col-300 { flex: 1 1 300px; min-width: 0; }
.col-440 { flex: 1 1 440px; min-width: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.card p { color: var(--muted); font-size: 1rem; }
html[dir="rtl"] .card p { font-size: 1.0625rem; }
.card-lg { border-radius: 20px; padding: 44px; }
.card-lg p { font-size: inherit; }
.card-lg p + p { margin-top: 14px; }
.card-teal { background: var(--teal-surface); border-color: var(--teal-border); }
.card-teal p { color: var(--muted-2); }
.card-outline { background: transparent; }
.card-outline-cyan { background: var(--teal-surface); border-color: var(--cyan); }
.card-topline { border: 0; border-top: 3px solid var(--cyan); border-radius: 0 0 18px 18px; }
@media (max-width: 640px) { .card-lg { padding: 28px; } }

.icon-box {
  width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px;
  background: var(--teal-surface); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.icon-box .icon { width: 26px; height: 26px; }
.card-icon { color: var(--cyan); width: 30px; height: 30px; margin-bottom: 18px; }

.text-link { display: inline-block; margin-top: 36px; color: var(--cyan); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; color: var(--cyan); }

.steps { list-style: none; margin: 0; padding: 0; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%;
  background: var(--cyan); color: var(--on-cyan);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}
html[dir="rtl"] .step-num { font-family: var(--font-arabic); }
.big-num { display: block; margin-bottom: 10px; color: var(--cyan); font-family: var(--font-display); font-weight: 700; font-size: 2.125rem; line-height: 1.2; }
html[dir="rtl"] .big-num { font-family: var(--font-arabic); }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split-head { flex: 1 1 320px; min-width: 0; }
.split-body { flex: 2 1 560px; min-width: 0; }
.features { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.feature { flex: 1 1 260px; min-width: 0; }
.feature h3 { font-family: inherit; letter-spacing: 0; font-size: 1.1875rem; font-weight: 600; color: var(--cyan); margin-bottom: 8px; line-height: 1.4; }
.feature p { color: var(--muted); font-size: 1rem; }
html[dir="rtl"] .feature p { font-size: 1.0625rem; }

.offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
  background: var(--teal-surface); border: 1px solid var(--teal-border); border-radius: 24px; padding: 56px;
}
.offer-text { flex: 999 1 520px; min-width: 0; }
.offer p { color: var(--muted-2); }
.offer strong { color: var(--text); }
@media (max-width: 640px) { .offer { padding: 32px; } }

.center-block { max-width: 820px; margin-inline: auto; text-align: center; }
.center-block .lead { margin-inline: auto; margin-bottom: 36px; }

/* ---------- Services page ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; font-size: 0.9375rem; font-weight: 500; }
.pill-nav a { text-decoration: none; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 999px; }
.pill-nav a:hover { border-color: var(--cyan); }
.stack { display: flex; flex-direction: column; gap: 32px; }
.service {
  display: flex; flex-wrap: wrap; gap: 40px; scroll-margin-top: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 48px;
}
.service-main { flex: 1 1 400px; min-width: 0; }
.service-main > p { color: var(--muted); }
.service .tagline { color: var(--cyan); font-size: 1.1875rem; font-weight: 500; margin-bottom: 16px; }
.service-list { flex: 1 1 360px; min-width: 0; align-self: flex-start; background: var(--navy); border-radius: 16px; padding: 28px 32px; }
@media (max-width: 640px) { .service { padding: 28px; } .service-list { padding: 24px; } }
.list-title { margin-bottom: 14px; color: var(--muted); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; }
html[dir="rtl"] .list-title { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 1rem; }
html[dir="rtl"] .check-list { font-size: 1.0625rem; }
.check-list li { display: flex; gap: 12px; }
.check-list .icon { color: var(--cyan); width: 20px; height: 20px; margin-top: 3px; }
html[dir="rtl"] .check-list .icon { margin-top: 6px; }

.alert { margin-top: 24px; background: var(--amber-bg); border: 1px solid var(--amber-border); border-radius: 14px; padding: 18px 20px; }
.alert-title { color: var(--amber); font-weight: 600; margin-bottom: 4px; }
.alert p { color: var(--amber-text); font-size: 1rem; }
.alert a { display: inline-block; margin-top: 10px; color: var(--amber); font-weight: 600; text-decoration: none; }
.alert a:hover { text-decoration: underline; }

.faq-item { padding-block: 22px; border-bottom: 1px solid var(--border); scroll-margin-top: 24px; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-family: inherit; letter-spacing: 0; font-size: 1.1875rem; font-weight: 600; margin-bottom: 8px; line-height: 1.45; }
.faq-item p { color: var(--muted); font-size: 1rem; }
html[dir="rtl"] .faq-item p { font-size: 1.0625rem; }

/* ---------- About page ---------- */
.founder { display: flex; flex-wrap: wrap; gap: 48px; }
.founder-photo, .photo-placeholder { flex: 0 1 340px; min-width: 240px; aspect-ratio: 4 / 5; border-radius: 18px; }
.founder-photo { object-fit: cover; width: 100%; height: auto; }
.photo-placeholder {
  background: var(--navy); border: 2px dashed var(--border-strong); color: var(--faint);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px; font-size: 0.9375rem;
}
.photo-placeholder .icon { width: 48px; height: 48px; color: #5B7396; }
.founder-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.founder-name { font-size: 2rem; margin-bottom: 4px; }
.role { color: var(--cyan); font-weight: 600; font-size: 1.125rem; margin-bottom: 24px; }
.founder-body > p { color: var(--muted-2); }
.quote { margin: 28px 0 0; padding-block: 4px; padding-inline-start: 24px; border-inline-start: 3px solid var(--cyan); }
.quote p { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.45; margin-bottom: 10px; }
html[dir="rtl"] .quote p { font-family: var(--font-arabic); line-height: 1.7; font-weight: 500; }
.quote footer { color: var(--muted); font-size: 0.9375rem; }
.statement { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; }
html[dir="rtl"] .statement { font-family: var(--font-arabic); font-size: 1.4375rem; line-height: 1.7; font-weight: 500; }
.commit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.commit-list li { display: flex; gap: 16px; background: var(--surface); border-radius: 14px; padding: 18px 22px; }
.commit-list .icon { color: var(--cyan); width: 22px; height: 22px; margin-top: 3px; }
html[dir="rtl"] .commit-list .icon { margin-top: 6px; }
.commit-list span.muted { font-weight: 400; }
.subhead { font-family: inherit; letter-spacing: 0; font-size: 1.25rem; font-weight: 600; margin: 32px 0 8px; }

/* ---------- Contact page ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-main { flex: 999 1 560px; min-width: 0; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 36px; }
.contact-card .btn-wa { margin-block: 4px 28px; }
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 1rem; }
.contact-list dt { color: var(--muted); font-size: 0.875rem; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { text-decoration: none; }
.hint { color: var(--cyan); }
.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 1rem; }
.mini-steps li { display: flex; gap: 14px; align-items: flex-start; }
.mini-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cyan); color: var(--on-cyan); font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
html[dir="rtl"] .mini-num { margin-top: 4px; }
.box { border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.box h2 { font-size: 1.375rem; margin-bottom: 16px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 44px; }
@media (max-width: 640px) { .form-card, .contact-card { padding: 26px; } }
.form-card > p { color: var(--muted); font-size: 1rem; margin-bottom: 32px; }
.form-stack { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
html[dir="rtl"] .field { font-size: 1rem; }
.req { color: var(--cyan); font-size: 0.8125rem; font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--text);
  background: var(--navy); border: 1px solid var(--border-strong); border-radius: 10px; padding: 13px 14px;
}
html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea { font-size: 1.0625rem; }
input::placeholder, textarea::placeholder { color: #7F91AD; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: 2px solid var(--cyan); outline-offset: 1px; }
input:user-invalid, textarea:user-invalid { border-color: var(--amber); }
input[type="tel"], input[type="email"] { direction: ltr; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { text-align: right; }
select option { background: var(--navy); color: var(--text); }
textarea { resize: vertical; min-height: 128px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: 0.9375rem; font-weight: 500; }
html[dir="rtl"] legend { font-size: 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--border-strong); border-radius: 10px; font-size: 0.9375rem; cursor: pointer;
}
html[dir="rtl"] .choice { font-size: 1rem; }
.choice:has(input:checked) { border-color: var(--cyan); background: var(--teal-surface); }
.choice input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--cyan); }
.form-submit { align-self: flex-start; font-size: 1.125rem; padding: 16px 30px; }
.form-note { margin-top: -6px; color: var(--muted); font-size: 0.875rem; }
html[dir="rtl"] .form-note { font-size: 0.9375rem; }
.form-note a { color: var(--cyan); }

/* ---------- Thank-you ---------- */
.thanks {
  max-width: 760px; display: flex; flex-wrap: wrap; gap: 24px;
  background: var(--teal-surface); border: 1px solid var(--teal-border); border-radius: 22px; padding: 44px;
}
.thanks-badge { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); display: flex; align-items: center; justify-content: center; }
.thanks-badge .icon { width: 28px; height: 28px; }
.thanks-body { flex: 1 1 360px; min-width: 0; }
.thanks-body p { color: var(--muted-2); margin-bottom: 24px; }

/* ---------- Privacy ---------- */
.policy-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.toc { flex: 1 1 240px; min-width: 0; border: 1px solid var(--border); border-radius: 16px; padding: 24px; font-size: 0.9375rem; line-height: 1.5; }
html[dir="rtl"] .toc { font-size: 1rem; line-height: 1.6; }
@media (min-width: 960px) { .toc { position: sticky; top: 24px; } }
.toc-title { margin-bottom: 12px; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
html[dir="rtl"] .toc-title { letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toc a { text-decoration: none; }
.prose { flex: 999 1 600px; min-width: 0; max-width: 760px; color: var(--prose); line-height: 1.7; }
html[dir="rtl"] .prose { line-height: 1.9; }
.prose .intro { font-size: 1.1875rem; color: var(--text); margin-bottom: 8px; }
.prose h2 { margin: 40px 0 14px; font-size: 1.625rem; color: var(--text); scroll-margin-top: 24px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose strong { color: var(--text); }
.contact-box { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; }
.contact-box a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-darker); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 32px; }
.footer-brand { flex: 1 1 300px; min-width: 0; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; margin-bottom: 10px; }
html[dir="rtl"] .footer-logo { font-family: var(--font-arabic); font-size: 1.5rem; }
.footer-brand p:not(.footer-logo), .footer-contact { color: var(--muted); font-size: 0.9375rem; }
html[dir="rtl"] .footer-brand p:not(.footer-logo), html[dir="rtl"] .footer-contact, html[dir="rtl"] .footer-nav { font-size: 1rem; }
.footer-brand p:not(.footer-logo) { max-width: 340px; }
.footer-contact { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-nav { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-nav a[aria-current="page"] { color: var(--cyan); }
.copyright { border-top: 1px solid var(--border); padding-block: 20px 32px; color: var(--faint); font-size: 0.875rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 50;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--wa); color: var(--on-wa); font-weight: 600; font-size: 1rem;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.wa-float:hover { background: var(--wa-hover); color: var(--on-wa); }
.wa-float .icon { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .wa-float { padding: 15px; bottom: 16px; inset-inline-end: 16px; }
  .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Simple pages (404, root) ---------- */
.simple { min-height: 70vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.logo-center { justify-content: center; margin-bottom: 24px; }
.num-404 { font-size: 4rem; }
html[dir="rtl"] .en-display { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
html[dir="rtl"] .en-text { font-family: var(--font-latin); }
.form-error { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); font-size: 0.9375rem; }
.form-error[hidden] { display: none; }
