/* =====================================================================
   JOUHAR EXPERTISE BUREAU — style.css  (v6, 08-10-2026)
   Handcrafted design system, no build step. Fonts are self-hosted (fonts.css).
   Typography:  Open Sans (variable 300–800) for NL/EN · Alyamama for the Arabic version
   Colours:     Midnight #06182B · Signature Navy #0B2545 · Heritage Gold #C89B3C
                Champagne #F0D58A · Warm Ivory #F8F4EA
   Layout:      white canvas, large bold headings, left-aligned copy, generous
                whitespace, photos with an offset colour block, square cards,
                pill buttons, triangle list markers, dark footer.
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  --midnight: #06182b;
  --navy: #0b2545;
  --navy-2: #123461;
  --navy-3: #1b4680;
  --gold: #c89b3c;
  --gold-2: #d6ae55;
  --gold-3: #f0d58a;
  --gold-deep: #8a6722;       /* AA text-safe gold on white and ivory (≥ 4.7:1) */
  --gold-rgb: 200, 155, 60;

  --bg: #ffffff;
  --soft: #f8f4ea;              /* Warm Ivory — soft sections and cards */
  --soft-2: #f1ebdc;
  --paper: #ffffff;
  --ink: #06182b;
  --ink-2: #334259;
  --ink-3: #5f6e84;
  --line: rgba(6, 24, 43, 0.12);
  --line-strong: rgba(6, 24, 43, 0.22);
  --ivory: #f8f4ea;

  --font-body: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: var(--font-body);
  --font-mono: var(--font-body);

  --text-body: 1.125rem;        /* 18 px */
  --text-h1: clamp(2.5rem, 5vw, 3.75rem);
  --text-h2: clamp(2rem, 3.6vw, 2.875rem);
  --text-h3: 1.5rem;
  --text-h4: 1.125rem;
  --text-lead: 1.1875rem;
  --lh-body: 1.75;

  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-xl: 0;
  --r-pill: 999px;

  --container: 75rem;
  --container-narrow: 62rem;
  --container-text: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --header-h: 6rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -18px rgba(6, 24, 43, 0.25);
  --shadow-pop: 0 24px 50px -24px rgba(6, 24, 43, 0.35);
}

/* Arabic version: Alyamama everywhere (400 for text, 600 for headings) */
html[lang='ar'] {
  --font-body: 'Alyamama', serif;
  --font-display: 'Alyamama', serif;
  --font-mono: 'Alyamama', serif;
  --text-h1: clamp(2.4rem, 4.6vw, 3.5rem);
  --text-h2: clamp(1.9rem, 3.4vw, 2.7rem);
  --lh-body: 1.9;
}

/* ---------- 2. Reset & base ----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold-3);
  color: var(--midnight);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 3. Typography ------------------------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.15;
}

h3,
.h3 {
  font-size: var(--text-h3);
}

h4 {
  font-size: var(--text-h4);
}

html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] h4,
html[lang='ar'] strong,
html[lang='ar'] .btn {
  font-weight: 600;
  letter-spacing: 0;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 44rem;
}

.lead-light {
  color: rgba(248, 244, 234, 0.85);
}

.text-ink {
  color: var(--ink);
}

.text-ivory {
  color: var(--ivory);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

html[lang='ar'] .eyebrow {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.eyebrow-light {
  color: var(--gold-3);
}

.eyebrow-muted {
  color: var(--ink-3);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-label .eyebrow {
  margin-bottom: 0;
}

.section-label-line {
  width: 2.5rem;
  height: 3px;
  background: var(--gold);
  flex: none;
}

.mono-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
  color: var(--gold-deep);
  border-color: var(--navy);
}

.text-link .ic-dir {
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover .ic-dir {
  transform: translateX(3px);
}

[dir='rtl'] .text-link:hover .ic-dir {
  transform: translateX(-3px) scaleX(-1);
}

/* ---------- 4. Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: var(--container-narrow);
}

.container.text {
  max-width: var(--container-text);
}

/* Single-column grids: never let an unbreakable string (e-mail address, long word) widen the track beyond its container */
.check-list,
.consent-list,
.contact-info,
.contact-lines,
.expertise-list,
.footer-col ul,
.footer-office-list,
.footer-office-list li,
.jeb-form,
.legal-section ul,
.legal-sections,
.legal-toc ol,
.office-meta,
.package-meta,
.soon-list,
.step-list,
.feature-split,
.detail-grid,
.expertise-grid,
.office-grid,
.about-blocks,
.faq-grid,
.contact-grid,
.thanks-grid,
.tri-list,
.card-grid,
.consent-banner-inner,
.cta-inner,
.feature-list,
.footer-grid,
.form-picker,
.form-row,
.hero-grid,
.member-grid,
.method-steps,
.package-grid,
.price-cats,
.service-header-grid,
.situation-grid,
.split-head,
.usp-row {
  grid-template-columns: minmax(0, 1fr);
}

.faq-grid > *,
.thanks-grid > *,
.contact-grid > *,
.detail-grid > *,
.feature-split > *,
.legal-sections > *,
.service-header-grid > *,
.hero-grid > *,
.cta-inner > *,
.split-head > *,
.footer-grid > *,
.member-grid > *,
.situation-grid > *,
.form-row > * {
  min-width: 0;
}

/* Long words and addresses may break only when a line cannot hold them */
body {
  overflow-wrap: break-word;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.container.center {
  text-align: center;
}

.section {
  padding-block: var(--section-y);
}

.section-surface {
  background: var(--bg);
}

.section-soft {
  background: var(--soft);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 48rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .section-label {
  justify-content: center;
}

.section-head.narrow {
  max-width: 40rem;
}

.split-head {
  display: grid;
  gap: 1.25rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 64rem) {
  .split-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.split-head h2 {
  margin-bottom: 0;
}

.split-head .lead {
  margin: 0;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mx-auto { margin-inline: auto; }
.center { text-align: center; }

.gold-rule {
  width: 3.5rem;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ---------- 5. Icons ------------------------------------------------ */
.ic {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  stroke-width: 1.75;
}

.ic-xs { width: 0.85rem; height: 0.85rem; }
.ic-sm { width: 1.05rem; height: 1.05rem; }
.ic-md { width: 1.5rem; height: 1.5rem; }
.ic-lg { width: 2rem; height: 2rem; }

[dir='rtl'] .ic-dir {
  transform: scaleX(-1);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--navy);
  color: var(--gold-3);
  flex: none;
}

.icon-box-lg {
  width: 4rem;
  height: 4rem;
}

.icon-box-gold {
  background: var(--gold);
  color: var(--midnight);
}

.icon-box-gold-outline {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--gold);
}

.tri {
  display: inline-flex;
  color: var(--gold);
  flex: none;
  margin-top: 0.45em;
}

.tri .ic {
  fill: currentColor;
  stroke: none;
}

[dir='rtl'] .tri .ic {
  transform: scaleX(-1);
}

/* ---------- 6. Buttons (pills) ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .ic-dir {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .ic-dir {
  transform: translateX(3px);
}

[dir='rtl'] .btn:hover .ic-dir {
  transform: translateX(-3px) scaleX(-1);
}

.btn-gold {
  background: var(--gold);
  color: var(--midnight);
  border-color: var(--gold);
  box-shadow: 0 10px 22px -12px rgba(var(--gold-rgb), 0.7);
}

.btn-gold:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding-inline: 1rem;
}

.btn-sm {
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  align-items: center;
}

.btn-row.center {
  justify-content: center;
}

/* ---------- 7. Reveal on scroll ------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 8. Header ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(6, 24, 43, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  max-width: 92rem; /* the header spans wider than the content column */
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand-lockup {
  width: 235px;
  height: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
}

.nav-desktop li {
  position: relative;
}

.nav-desktop li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0;
  white-space: nowrap;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-desktop li > a:hover,
.nav-desktop li > a.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-caret {
  color: var(--gold);
  fill: currentColor;
  stroke: none;
  transition: transform 0.2s;
}

.has-sub:hover .nav-caret,
.has-sub.is-open .nav-caret,
.has-sub:focus-within .nav-caret {
  transform: rotate(90deg);
}

.sub-toggle {
  position: absolute;
  inset-inline-end: -1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}

.sub-toggle:not(:focus-visible) {
  opacity: 0;
  pointer-events: none;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  inset-inline-start: -1.5rem;
  min-width: 24rem;
  background: #fff;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-pop);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
}

.has-sub:hover .sub-menu,
.has-sub.is-open .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub-menu ul {
  display: block;
}

.sub-menu li > a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 1.5rem;
  font-size: 0.975rem;
  font-weight: 600;
  border: 0;
  color: var(--ink);
}

.sub-menu li > a:hover,
.sub-menu li > a.is-active {
  background: var(--soft);
  color: var(--navy);
}

.sub-menu .tri {
  margin-top: 0.4em;
}

.sub-menu .sub-all {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.sub-menu .sub-all a {
  color: var(--gold-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
}

.lang-chevron {
  transition: transform 0.2s;
}

.lang-switch.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 11rem;
  background: #fff;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-pop);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 20;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-menu a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.lang-menu a:hover,
.lang-menu a.is-active {
  background: var(--soft);
}

.lang-code {
  font-weight: 700;
  color: var(--gold-deep);
  min-width: 2.4rem;
}

.lang-menu a[lang='ar'] .lang-name {
  font-family: 'Alyamama', serif;
}

.header-cta {
  display: none;
}

.nav-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.nav-toggle .ic {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-toggle .ic-close,
.menu-open .nav-toggle .ic-open {
  display: none;
}

.menu-open .nav-toggle .ic-close {
  display: block;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu-inner {
  padding: 1.5rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav > li > a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.mobile-nav > li > a.is-active {
  color: var(--gold-deep);
}

.mobile-sub {
  padding: 0.5rem 0 0.75rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.mobile-sub a {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
}

.mobile-sub a.is-active {
  color: var(--gold-deep);
}

.mobile-langs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mobile-langs a {
  font-weight: 600;
  color: var(--ink-2);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
}

.mobile-langs a.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.mobile-langs a[lang='ar'] {
  font-family: 'Alyamama', serif;
}

.mobile-menu-brand {
  margin-top: 1rem;
  opacity: 0.8;
}

@media (min-width: 72rem) {
  .nav-desktop {
    display: block;
  }

  .nav-toggle,
  .mobile-menu {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 72rem) and (max-width: 85rem) {
  .brand-lockup {
    width: 190px;
  }

  .nav-desktop ul {
    gap: 1.1rem;
  }

  .nav-desktop li > a {
    font-size: 0.9rem;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 71.99rem) {
  .header-cta {
    display: inline-flex;
    padding: 0.6rem 0.8rem;
  }

  .header-cta span {
    display: none;
  }
}

@media (max-width: 40rem) {
  :root {
    --header-h: 4.75rem;
  }

  .brand-lockup {
    width: 170px;
  }

  .lang-toggle span {
    display: none;
  }

  .lang-toggle {
    padding: 0.5rem 0.6rem;
  }
}

/* Very small phones (≤ 375 px): keep logo, language, call button and menu on one line without overlap */
@media (max-width: 23.5rem) {
  :root {
    --header-h: 4.25rem;
    --gutter: 1rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .brand-lockup {
    width: 138px;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .lang-toggle {
    padding: 0.45rem 0.5rem;
  }

  .lang-toggle .lang-chevron {
    display: none;
  }

  .header-cta {
    padding: 0.5rem 0.65rem;
    min-height: 2.5rem;
  }

  .lang-toggle {
    min-height: 2.5rem;
  }

  .nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ---------- 9. Hero ------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: var(--text-lead);
  color: var(--ink-2);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-3);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust .ic {
  color: var(--gold-deep);
}

.hero-visual {
  position: relative;
  padding: 2.5rem 0 3.5rem 2.5rem;
}

.hero-media {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}

.hero-media picture,
.media-frame picture {
  display: block;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-block {
  position: absolute;
  top: 0;
  bottom: 3rem;
  inset-inline-start: 22%;
  inset-inline-end: calc(-1 * var(--gutter));
  background: var(--navy);
  z-index: 1;
}

.hero-block::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--gold);
}

.hero-caption {
  position: absolute;
  bottom: 0;
  inset-inline-start: 2.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-caption .ic {
  color: var(--gold-deep);
}

[dir='rtl'] .hero-visual {
  padding: 2.5rem 2.5rem 3.5rem 0;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .hero {
    padding-bottom: clamp(3rem, 6vw, 5rem);
  }
}

/* Stats band */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  padding: 2rem 0;
}

.stat-value {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

html[lang='ar'] .stat-label {
  letter-spacing: 0;
  font-size: 0.95rem;
}

@media (min-width: 48rem) {
  .hero-stats {
    grid-template-columns: repeat(5, 1fr);
  }

  .stat {
    padding-inline-start: 1.25rem;
    border-inline-start: 3px solid var(--gold);
  }
}

@media (max-width: 47.99rem) {
  .stat {
    padding-inline-start: 1rem;
    border-inline-start: 3px solid var(--gold);
  }
}

/* ---------- 10. Software strip & section --------------------------- */
.software-strip {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.software-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0 1.75rem;
}

.software-strip-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

.software-strip-label p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  max-width: 16rem;
  line-height: 1.4;
}

.software-strip-label a {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.strip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gold);
  color: var(--midnight);
  flex: none;
}

.strip-mark .ic {
  fill: currentColor;
}

/* Endless band: two identical tracks, each shifted by its own width (+ one gap) → seamless loop.
   Speed ≈ 55 px/s regardless of screen size (the track width is identical on every screen). */
.software-marquee {
  --logo-gap: 3rem;
  --logo-h: 2.25rem;
  --logo-max-w: 8.5rem;
  --logo-max-w-wide: 10rem;
  --marquee-duration: 44s;
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.software-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--logo-gap);
  padding-inline-end: var(--logo-gap);
  margin: 0;
  list-style: none;
  animation: software-marquee var(--marquee-duration) linear infinite;
  will-change: transform;
}

.software-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-logo img {
  display: block;
  height: calc(var(--logo-h) * var(--scale, 1));
  width: auto;
  max-width: calc(var(--logo-max-w) * var(--scale, 1));
  object-fit: contain;
  object-position: center;
}

.software-logo.is-wide img {
  max-width: calc(var(--logo-max-w-wide) * var(--scale, 1));
}

@keyframes software-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (hover: hover) {
  .software-marquee:hover .software-track {
    animation-play-state: paused;
  }
}

@media (min-width: 48rem) {
  .software-marquee {
    --logo-gap: 4rem;
    --logo-h: 2.6rem;
    --logo-max-w: 10rem;
    --logo-max-w-wide: 12.5rem;
    --marquee-duration: 52s;
  }
}

@media (min-width: 64rem) {
  .software-strip-inner {
    gap: 1.5rem;
    padding: 1.75rem 0 2rem;
  }

  .software-marquee {
    --logo-gap: 5rem;
    --logo-h: 2.85rem;
    --logo-max-w: 11rem;
    --logo-max-w-wide: 14rem;
    --marquee-duration: 58s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .software-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    padding-inline: var(--gutter);
  }

  .software-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.25rem;
    width: 100%;
    padding-inline-end: 0;
  }

  .software-track[aria-hidden='true'] {
    display: none;
  }
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem;
}

.software-tile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.5rem;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}

.software-tile:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.software-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.software-cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

html[lang='ar'] .software-cat {
  letter-spacing: 0;
  font-size: 0.9rem;
}

.software-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 52rem;
}

/* ---------- 11. Services -------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.service-grid > *,
.expertise-grid > *,
.office-grid > *,
.package-grid > *,
.card-grid > *,
.about-blocks > *,
.software-grid > * {
  min-width: 0;
}

@media (min-width: 40rem) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem 1.75rem 1.9rem;
  background: var(--soft);
  border-top: 4px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.service-tile:hover {
  background: #fff;
  border-top-color: var(--gold);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.service-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-index {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(var(--gold-rgb), 0.55);
  line-height: 1;
  letter-spacing: -0.03em;
}

.service-tile-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.service-tile-desc {
  color: var(--ink-2);
  font-size: 1rem;
  flex: 1;
}

.service-tile .text-link {
  align-self: flex-start;
  font-size: 0.95rem;
}

.services-lead {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Triangle lists */
.tri-list {
  display: grid;
  gap: 0.6rem;
}

.tri-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 600;
}

.tri-list.compact li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
}

@media (min-width: 48rem) {
  .tri-list.two-col {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
  }
}

/* ---------- 12. Feature split (image + colour block) --------------- */
.feature-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .feature-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .feature-split.media-first .feature-media {
    order: -1;
  }
}

.feature-media {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
}

[dir='rtl'] .feature-media {
  padding: 0 2.5rem 2.5rem 0;
}

.media-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-block {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  background: var(--navy);
  z-index: 1;
}

.media-block::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  width: 100%;
  background: var(--gold);
}

.feature-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list h4 {
  margin-bottom: 0.3rem;
}

.feature-list p {
  font-size: 0.975rem;
  color: var(--ink-2);
}

/* ---------- 13. Method (navy band + light card, numbered) --------- */
.method {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
}

.method-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: var(--navy);
}

.method-card {
  position: relative;
  background: var(--soft);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-pop);
}

.method-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.method-steps {
  display: grid;
  gap: 2rem;
  counter-reset: none;
}

@media (min-width: 48rem) {
  .method-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

.method-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.method-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  height: 3.25rem;
  background: #fff;
  color: var(--gold-deep);
  font-size: 1.5rem;
  font-weight: 700;
  flex: none;
  box-shadow: var(--shadow-card);
}

.method-step h3 {
  margin-bottom: 0.4rem;
}

.method-step p {
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------- 14. CTA band -------------------------------------------- */
.cta {
  background: var(--navy);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: var(--gold);
}

.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .cta-inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 3rem;
  }

  .cta-inner .btn-row {
    justify-content: flex-end;
  }
}

.cta h2 {
  color: #fff;
}

.cta .lead {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

/* ---------- 15. Page header (light) -------------------------------- */
.page-header {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-header-bg {
  display: none;
}

.page-header-content {
  max-width: var(--container);
}

.page-header h1 {
  margin-bottom: 1rem;
  max-width: 20ch;
}

.page-header .lead {
  max-width: 46rem;
}

.page-header.is-center {
  text-align: center;
}

.page-header.is-center h1,
.page-header.is-center .lead {
  margin-inline: auto;
}

.page-header .eyebrow-light {
  color: var(--gold-deep);
}

.page-header .lead-light {
  color: var(--ink-2);
}

.page-header .btn-outline-light {
  color: var(--navy);
  border-color: var(--navy);
}

.page-header .btn-outline-light:hover {
  background: var(--navy);
  color: #fff;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
}

.fact-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.fact-row .ic {
  color: var(--gold-deep);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.back-link:hover {
  color: var(--navy);
}

/* Service header with media */
.service-header {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-header-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 64rem) {
  .service-header-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.service-header-media {
  position: relative;
  padding: 2rem 0 0 2.5rem;
}

[dir='rtl'] .service-header-media {
  padding: 2rem 2.5rem 0 0;
}

.service-header-media .media-block {
  top: 0;
  bottom: auto;
  height: 60%;
  width: 60%;
  inset-inline-start: 0;
}

.service-header-media .media-block::after {
  bottom: auto;
  top: 0;
}

.service-intro-label {
  margin: 1.75rem 0 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- 16. Cards & panels ------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
}

.card-topline {
  display: none;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-link {
  display: block;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.card-link:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card-accent {
  background: var(--navy);
  color: #fff;
  border: 0;
}

.card-accent h3 {
  color: #fff;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.panel {
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.panel-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.panel-white {
  background: #fff;
  border: 1px solid var(--line);
}

.panel-accent {
  background: var(--soft);
  border-inline-start: 4px solid var(--gold);
}

.panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 0.75rem;
}

.panel-white .panel-label,
.panel-label.gold {
  color: var(--gold-deep);
}

html[lang='ar'] .panel-label {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.panel-title {
  margin-bottom: 1rem;
}

.panel-languages {
  font-weight: 700;
  color: var(--navy);
}

.panel .text-link {
  display: inline-flex;
}

.side-sticky {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.contact-side .side-sticky {
  position: static; /* the contact card is taller than most viewports */
}

/* ---------- 17. Service detail ------------------------------------- */
.detail-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 64rem) {
  .detail-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
}

.detail-main .h3 {
  margin-bottom: 0.75rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list .ic {
  color: var(--gold-deep);
  margin-top: 0.3em;
}

.check-list.compact {
  gap: 0.55rem;
  font-size: 0.95rem;
}

.situation-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .situation-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.situation {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--soft);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.situation-num {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  flex: none;
}

.next-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 5vw, 5rem);
  padding: 1.75rem 2rem;
  background: var(--soft);
  border-inline-start: 4px solid var(--gold);
  transition: background-color 0.2s;
}

.next-service:hover {
  background: var(--soft-2);
}

.next-service > span {
  min-width: 0;
  flex: 1 1 auto;
}

.next-service > .ic {
  flex: 0 0 auto;
}

.next-service-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 23.5rem) {
  .next-service {
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }

  .next-service-title {
    font-size: 1.2rem;
  }
}

.next-service .ic {
  color: var(--gold-deep);
}

/* ---------- 18. Team ------------------------------------------------ */
.expertise-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.expertise-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.expertise-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.expertise-head h3 {
  font-size: 1.15rem;
  margin: 0;
}

.expertise-list {
  display: grid;
  gap: 0.6rem;
  flex: 1;
}

.expertise-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.975rem;
  color: var(--ink-2);
}

.expertise-num {
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex: none;
}

.expertise-card .text-link {
  align-self: flex-start;
  font-size: 0.95rem;
}

.team-tier {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.tier-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}

html[lang='ar'] .tier-label {
  letter-spacing: 0;
  font-size: 1rem;
}

.member-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .member-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--soft);
  border-inline-start: 4px solid var(--navy);
  transition: border-color 0.2s, background-color 0.2s;
}

.member-card:hover {
  border-inline-start-color: var(--gold);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.avatar {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-3);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}

.member-text h4 {
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}

.role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
  font-weight: 600;
}

.team-cta {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding: 2rem;
  background: var(--soft);
  border-inline-start: 4px solid var(--gold);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.team-cta-text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- 19. Locations ------------------------------------------ */
.office-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .office-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.office-city {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.office-city .ic {
  color: var(--gold-deep);
}

.office-card address {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}

.office-meta {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  flex: 1;
}

.office-meta li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.office-meta .ic {
  color: var(--gold-deep);
}

.office-meta a {
  color: var(--navy);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.office-meta a:hover {
  color: var(--gold-deep);
}

.office-card .text-link {
  align-self: flex-start;
  font-size: 0.95rem;
}

.office-card-soon {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  border-color: var(--navy);
  border-top-color: var(--gold);
}

.office-card-soon h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0;
}

.office-card-soon p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.soon-badge {
  align-self: flex-start;
  background: var(--gold);
  color: var(--midnight);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
}

html[lang='ar'] .soon-badge {
  letter-spacing: 0;
  font-size: 0.9rem;
}

.soon-list {
  display: grid;
  gap: 0.4rem;
}

.soon-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.soon-list .tri {
  color: var(--gold-3);
}

/* ---------- 20. About ---------------------------------------------- */
.about-blocks {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .about-blocks {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.about-block {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-block header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-block h3 {
  font-size: 1.2rem;
  margin: 0;
}

.about-block p {
  color: var(--ink-2);
  font-size: 1rem;
  flex: 1;
}

.about-block .text-link {
  align-self: flex-start;
  font-size: 0.95rem;
}

.banner {
  position: relative;
  max-height: 32rem;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 1;
}

.banner-overlay {
  display: none;
}

/* ---------- 21. FAQ ------------------------------------------------- */
.faq-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
    gap: 4rem;
    align-items: start;
  }
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 64rem) {
  .faq-tabs {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.faq-tab {
  display: block;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: var(--ink-2);
  border-inline-start: 4px solid transparent;
  background: var(--soft);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.faq-tab:hover {
  color: var(--navy);
}

.faq-tab.is-active {
  background: #fff;
  color: var(--navy);
  border-inline-start-color: var(--gold);
  box-shadow: var(--shadow-card);
}

.faq-panel {
  display: none;
}

.faq-panel.is-active {
  display: block;
}

.faq-panel-title {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--soft);
  color: var(--gold-deep);
  flex: none;
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}

.faq-item[open] .faq-toggle {
  transform: rotate(180deg);
  background: var(--gold);
  color: var(--midnight);
}

.faq-a {
  padding: 0 0 1.25rem;
  color: var(--ink-2);
  max-width: 60ch;
}

.faq-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.faq-cta-text {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
}

/* ---------- 22. Contact & forms ------------------------------------ */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    gap: 4rem;
    align-items: start;
  }
}

.contact-card {
  padding: 2rem;
}

.contact-emblem {
  width: 72px;
  height: auto;
  margin-bottom: 1.5rem;
}

.contact-card-intro {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.contact-block {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-block:last-child {
  padding-bottom: 0;
}

.contact-block-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 0.6rem;
}

html[lang='ar'] .contact-block-title {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.contact-block-sub {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.contact-block-text {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.contact-lines {
  display: grid;
  gap: 0.45rem;
}

.contact-lines a,
.contact-lines li > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.45;
  font-size: 0.975rem;
  overflow-wrap: anywhere;
  min-height: 1.5rem;
  padding: 0.1rem 0;
}

.contact-lines .ic {
  color: var(--gold-3);
  margin-top: 0.2em;
}

.contact-lines a:hover {
  color: var(--gold-3);
}

.contact-info {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-info dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 0.25rem;
}

html[lang='ar'] .contact-info dt {
  letter-spacing: 0;
  font-size: 0.9rem;
}

.contact-info dd {
  margin: 0;
}

.contact-info dd a,
.contact-info dd > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.45;
}

.contact-info dd .ic {
  color: var(--gold-3);
  margin-top: 0.2em;
}

.contact-info dd a:hover {
  color: var(--gold-3);
}

.form-status {
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
}

.form-status .status-icon {
  display: none;
}

.form-status.is-success {
  background: #eef7ef;
  border-color: #bfdcc4;
}

.form-status.is-success .icon-ok {
  display: inline-flex;
  color: #2f7d3b;
}

.form-status.is-error {
  background: #fbefee;
  border-color: #efc4c0;
}

.form-status.is-error .icon-err {
  display: inline-flex;
  color: #b23a2f;
}

.status-text {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
}

.form-picker {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .form-picker {
    grid-template-columns: 1fr 1fr;
  }
}

.form-picker.is-hidden {
  display: none;
}

.picker-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--soft);
  border: 1px solid transparent;
}

.picker-card:hover {
  background: #fff;
}

.picker-card h4 {
  margin: 0;
}

.picker-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.975rem;
}

.form-wrap {
  display: none;
}

.form-wrap.is-active {
  display: block;
}

.form-back {
  margin-bottom: 1rem;
}

.back-link.dark {
  color: var(--ink-2);
}

.form-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-card-head h3 {
  margin: 0;
}

.jeb-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 40rem) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field label em {
  font-style: normal;
  color: var(--gold-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.35);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #b23a2f;
  box-shadow: 0 0 0 3px rgba(178, 58, 47, 0.15);
}

.form-invalid-msg {
  display: none;
  padding: 0.9rem 1rem;
  background: #fbefee;
  border-inline-start: 4px solid #b23a2f;
  color: #7a251d;
  font-size: 0.95rem;
}

.form-invalid-msg.is-visible,
.form-invalid-msg:not([hidden]).show {
  display: block;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.radio input {
  accent-color: var(--navy);
  width: 1.1rem;
  height: 1.1rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin: 0;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.3rem 0.8rem;
  background: var(--soft);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- 23. Legal pages ---------------------------------------- */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.legal-meta .eyebrow {
  margin: 0;
}

.legal-intro {
  font-size: var(--text-lead);
  color: var(--ink-2);
  margin-bottom: 2rem;
}

.legal-toc {
  background: var(--soft);
  border-inline-start: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}

.legal-toc ol {
  list-style: decimal;
  padding-inline-start: 1.25rem;
  display: grid;
  gap: 0.35rem;
  columns: auto;
}

.legal-toc a {
  font-weight: 600;
  color: var(--navy);
}

.legal-toc a:hover {
  color: var(--gold-deep);
}

.legal-sections {
  display: grid;
  gap: 2.5rem;
}

.legal-section h3 {
  font-size: 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.legal-section h3 .num {
  color: var(--gold-deep);
  margin-inline-end: 0.35rem;
}

.legal-section p,
.legal-section li {
  color: var(--ink-2);
}

.legal-section ul {
  list-style: disc;
  padding-inline-start: 1.5rem;
  margin: 0 0 1.1em;
  display: grid;
  gap: 0.35rem;
}

/* ---------- 24. Footer (dark) -------------------------------------- */
.site-footer {
  background: var(--midnight);
  color: rgba(248, 244, 234, 0.78);
  font-size: 0.95rem;
}

.footer-cta {
  background: var(--navy);
  border-top: 6px solid var(--gold);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.footer-cta-title {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}

.footer-cta-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-main {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 4vw, 3.5rem);
}

/* Brand row: logo plate + registration facts, closed off by a hairline */
.footer-brand-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 80rem) {
  .footer-brand-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.footer-brand-lockup {
  display: inline-block;
  justify-self: start;
  padding: 1rem 1.25rem;
}

.footer-logo {
  display: block;
  width: 240px;
  height: auto;
}

.footer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .footer-facts {
    grid-template-columns: repeat(4, minmax(0, auto));
    justify-content: start;
    gap: 1.25rem 3rem;
  }
}

@media (min-width: 80rem) {
  .footer-facts {
    justify-content: end;
  }
}

.footer-fact {
  display: grid;
  gap: 0.3rem;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid rgba(var(--gold-rgb), 0.45);
}

.footer-fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-3);
}

html[lang='ar'] .footer-fact dt {
  letter-spacing: 0;
  font-size: 0.9rem;
}

.footer-fact dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (min-width: 48rem) {
  .footer-fact dd[dir='ltr'] {
    white-space: nowrap;
  }

  .footer-fact:first-child dd {
    max-width: 16rem;
  }

  html[lang='ar'] .footer-fact:first-child dd {
    max-width: 19rem;
  }
}

/* Link columns */
.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) {
  .footer-grid {
    gap: 2.75rem 3rem;
  }
}

@media (min-width: 80rem) {
  .footer-grid {
    grid-template-columns: 1.1fr 1.1fr 1fr 1fr;
    gap: 2.5rem 3.5rem;
  }
}

.footer-col h4 {
  position: relative;
  color: var(--gold-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 1.75rem;
  height: 2px;
  background: var(--gold);
}

html[lang='ar'] .footer-col h4 {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

/* Touch targets: text links in the footer bottom row and strip label get a ≥ 24 px tall box */
.footer-legal-inline a,
.footer-langs a,
.consent-text a,
.software-strip-label a,
.form-note a {
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-links a,
.footer-link-btn {
  display: inline-block;
  color: rgba(248, 244, 234, 0.8);
  text-align: start;
  line-height: 1.5;
  padding: 0.1rem 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: #fff;
  text-decoration-color: var(--gold);
}

.pdf-tag {
  display: inline-block;
  margin-inline-start: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-3);
  vertical-align: 0.1em;
  white-space: nowrap;
}

.footer-nav-legal {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 22.5rem) and (max-width: 79.99rem) {
  .footer-nav-legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    align-content: start;
  }
}

/* Office and contact blocks */
.footer-office-list {
  display: grid;
  gap: 1.35rem;
}

.footer-office-list li {
  display: grid;
  gap: 0.15rem;
  justify-items: start;
}

.footer-office-list strong {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.footer-address {
  color: rgba(248, 244, 234, 0.72);
  font-size: 0.9rem;
}

.footer-office-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(248, 244, 234, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.15rem 0; /* ≥ 24 px touch target */
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer-office-list a .ic {
  color: var(--gold);
  flex: none;
}

.footer-office-list a:hover {
  color: var(--gold-3);
}

.footer-soon {
  padding-top: 0.25rem;
}

.footer-soon strong {
  color: var(--gold-3);
}

.footer-soon span {
  color: rgba(248, 244, 234, 0.72);
  font-size: 0.9rem;
}

/* Bottom bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.35rem;
  font-size: 0.75rem;
  color: rgba(248, 244, 234, 0.6);
}

/* Below 96 rem: © and languages share the first row, the web-version links take a row of their own */
@media (max-width: 95.99rem) {
  .footer-legal-inline {
    order: 3;
    flex-basis: 100%;
  }
}

@media (min-width: 64rem) {
  .footer-bottom {
    padding-inline-end: 4.5rem; /* keeps the "to top" button clear of the links */
  }
}

@media (min-width: 96rem) {
  .footer-bottom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem 2.5rem;
  }

  .footer-legal-inline {
    justify-content: center;
  }
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
}

.footer-legal-inline li:not(.footer-legal-label):not(:nth-child(2))::before {
  content: '·';
  margin-inline: 0.6rem;
  color: rgba(248, 244, 234, 0.35);
}

.footer-legal-inline a {
  color: rgba(248, 244, 234, 0.72);
}

.footer-legal-inline a:hover {
  color: #fff;
}

.footer-legal-label {
  color: rgba(248, 244, 234, 0.45);
  margin-inline-end: 0.6rem;
}

.footer-langs {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-langs a {
  color: rgba(248, 244, 234, 0.72);
}

.footer-langs a:hover {
  color: #fff;
}

.footer-langs a.is-active {
  color: var(--gold-3);
  font-weight: 700;
}

.footer-langs a[lang='ar'] {
  font-family: 'Alyamama', serif;
}

.to-top {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 60;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 25. Error pages ---------------------------------------- */
.not-found {
  padding-block: clamp(4rem, 10vw, 8rem);
  border-bottom: 0;
}

/* ---------- 26. Pricing -------------------------------------------- */
.currency-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--soft);
  border-inline-start: 4px solid var(--gold);
}

.currency-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.currency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  height: 2.25rem;
  padding-inline: 0.6rem;
  background: var(--navy);
  color: var(--gold-3);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  flex: none;
}

.package-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 48rem) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 80rem) {
  .package-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.package .btn {
  white-space: normal;
  padding-inline: 1.25rem;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 2rem 1.6rem 1.75rem;
}

.package.is-popular {
  border-color: var(--navy);
  border-top-color: var(--gold);
  box-shadow: var(--shadow-pop);
}

.package.is-quote {
  background: var(--soft);
}

.package-badge {
  position: absolute;
  top: -0.9rem;
  inset-inline-start: 1.5rem;
  background: var(--gold);
  color: var(--midnight);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
}

html[lang='ar'] .package-badge {
  letter-spacing: 0;
  font-size: 0.9rem;
}

.package h3 {
  margin: 0;
  font-size: 1.35rem;
}

.package-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.package-price .price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.package-price .price-from {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[lang='ar'] .package-price .price-from {
  letter-spacing: 0;
}

.package-price .price-unit {
  font-size: 0.95rem;
  color: var(--ink-3);
  font-weight: 600;
}

.package-price .price-quote {
  font-size: 1.6rem;
}

.package-excl {
  margin: -0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-3);
  font-weight: 600;
}

.package-meta {
  margin: 0.25rem 0 0;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.package-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

html[lang='ar'] .package-meta dt {
  letter-spacing: 0;
  font-size: 0.9rem;
}

.package-meta dd {
  margin: 0 0 0.6rem;
  font-size: 0.925rem;
  color: var(--ink-2);
}

.package-meta dd:last-child {
  margin-bottom: 0;
}

.package-included {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

html[lang='ar'] .package-included {
  letter-spacing: 0;
  font-size: 1rem;
}

.package .check-list {
  flex: 1;
  align-content: start;
}

.package-exclnote {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.package-exclnote strong {
  color: var(--ink-2);
}

.quote-note {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  background: var(--soft);
  border-inline-start: 4px solid var(--navy);
}

.quote-note h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.quote-note p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.usp-row {
  display: grid;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
}

@media (min-width: 48rem) {
  .usp-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .usp-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.usp-row li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.usp-row .ic {
  color: var(--gold-deep);
  margin-top: 0.3em;
}

.pricing-block {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

.price-table {
  padding: 0.5rem 1.75rem;
}

.price-cat {
  font-size: 1.15rem;
  padding: 1.1rem 0 0.6rem;
  margin: 0;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.price-row:last-child {
  border-bottom: 0;
}

@media (max-width: 40rem) {
  .price-row {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .price-cell {
    justify-content: flex-start;
    text-align: start;
  }
}

.price-label {
  color: var(--ink);
  font-size: 1rem;
}

.price-cell {
  text-align: end;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.4rem;
  align-items: baseline;
}

.price-cell .price {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.price-cell .price-unit,
.price-cell .price-min {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.price-from,
.price-plus {
  font-size: 0.85rem;
  color: var(--gold-deep);
  font-weight: 700;
}

.price-free {
  color: #2f7d3b;
}

.price-quote {
  color: var(--gold-deep);
}

.price-cats {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 64rem) {
  .price-cats {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-cta {
  margin-top: clamp(3rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
}

.pricing-cta h3 {
  margin-bottom: 0.3rem;
}

.pricing-cta p {
  margin: 0;
  color: var(--ink-2);
}

.pricing-footnote {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ---------- 27. Thank-you page ------------------------------------- */
.thanks-header .thanks-icon {
  display: inline-flex;
  color: #2f7d3b;
  margin-bottom: 1rem;
}

.thanks-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 64rem) {
  .thanks-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }
}

.thanks-steps-title {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.step-list {
  display: grid;
  gap: 1rem;
}

.step-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-list p {
  margin: 0;
  color: var(--ink-2);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy);
  color: var(--gold-3);
  font-weight: 700;
  flex: none;
}

.thanks-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.thanks-phone,
.thanks-mail,
.thanks-hours {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.thanks-phone {
  font-size: 1.35rem;
  font-weight: 700;
}

.thanks-office {
  margin: 1rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-3);
}

html[lang='ar'] .thanks-office {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.thanks-office:first-of-type {
  margin-top: 0;
}

.thanks-contact .ic {
  color: var(--gold-3);
}

/* ---------- 28. Cookie consent ------------------------------------- */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem var(--gutter) 1.25rem;
  pointer-events: none;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner-inner {
  pointer-events: auto;
  max-width: 64rem;
  margin-inline: auto;
  background: #fff;
  border-top: 5px solid var(--gold);
  box-shadow: 0 30px 60px -20px rgba(6, 24, 43, 0.45);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 64rem) {
  .consent-banner-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }
}

.consent-text h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.consent-text h2 .ic {
  color: var(--gold-deep);
}

.consent-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.consent-text a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.consent-modal[hidden] {
  display: none;
}

.consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 43, 0.6);
}

.consent-panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-top: 5px solid var(--gold);
  padding: 1.75rem;
  box-shadow: var(--shadow-pop);
}

.consent-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.consent-panel-head h2 {
  font-size: 1.3rem;
  margin: 0;
}

.consent-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--soft);
  color: var(--navy);
}

.consent-panel-intro {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.consent-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.consent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--soft);
}

.consent-item-text strong {
  display: block;
  color: var(--navy);
}

.consent-item-text p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.consent-always {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.switch {
  position: relative;
  display: inline-flex;
  flex: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-track {
  width: 2.75rem;
  height: 1.5rem;
  background: var(--line-strong);
  border-radius: var(--r-pill);
  position: relative;
  transition: background-color 0.2s;
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  inset-inline-start: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s var(--ease-out);
}

.switch input:checked + .switch-track {
  background: var(--navy);
}

.switch input:checked + .switch-track::after {
  transform: translateX(1.25rem);
}

[dir='rtl'] .switch input:checked + .switch-track::after {
  transform: translateX(-1.25rem);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.consent-note,
.consent-saved {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.consent-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  margin-top: 1rem;
}

.consent-policy-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.consent-open {
  overflow: hidden;
}

/* ---------- 29. Arabic typography (Alyamama) ----------------------- */
html[lang='ar'] body {
  font-size: 1.2rem;
}

html[lang='ar'] .btn,
html[lang='ar'] .nav-desktop li > a {
  font-size: 1.1rem;
}

html[lang='ar'] .lead {
  line-height: 1.9;
}

html[lang='ar'] .software-name,
html[lang='ar'] .contact-info dd span[dir='ltr'],
html[lang='ar'] address {
  font-family: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
}

[dir='rtl'] .price-cell {
  text-align: start;
}

[dir='rtl'] .hero-block {
  inset-inline-start: 22%;
}

/* ---------- 30. Print ---------------------------------------------- */
@media print {
  .site-header,
  .mobile-menu,
  .to-top,
  .consent-banner,
  .consent-modal,
  .cta,
  .footer-cta,
  .software-strip {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }
}
