/* ================================================================
   TAHWEEL — Coming-Soon Microsite · Production CSS
   Private Wealth Protection · Institutional Vault · Secure Logistics
   EN dark (charcoal/bronze) ↔ AR warm (sand/dark) controlled inversion
   ================================================================ */

/* ---- THEME TOKENS -------------------------------------------- */
:root,
[data-theme="en"] {
  --bg:        #17120F;
  --surface:   #1E1714;
  --surface-2: #271E17;
  --fg:        #F0E9DB;
  --muted:     #A89A86;
  --faint:     #8C7D6A;   /* lightened from #6E6353 — ~4.9:1 on #17120F, passes WCAG AA */
  --hair:      rgba(240, 233, 219, 0.10);
  --hair-2:    rgba(190, 148, 90, 0.34);
  --accent:    #BE945A;
  --btn-bg:    #BE945A;
  --btn-fg:    #17120F;
  --ghost-fg:  #F0E9DB;
  --card:      #241C16;
  --card-b:    rgba(190, 148, 90, 0.28);
  --disc-bg:   #1C1511;
  --disc-line: #BE945A;
  --nav-bg:    rgba(23, 18, 15, 0.92);
  --focus-c:   #D2AE78;
  --input-bg:  #1E1714;
  --input-b:   rgba(240, 233, 219, 0.15);
  --err:       #C4756A;
}

[data-theme="ar"] {
  --bg:        #DBCEB1;
  --surface:   #D1BF99;
  --surface-2: #C8B488;
  --fg:        #241B14;
  --muted:     #5A4A35;   /* ~5.4:1 on #DBCEB1 — passes body text */
  --faint:     #574535;   /* ~5.1:1 on #DBCEB1 — passes all text sizes including 10-12px */
  --hair:      rgba(36, 27, 20, 0.14);
  --hair-2:    rgba(36, 27, 20, 0.30);
  --accent:    #2A2017;
  --btn-bg:    #241B14;
  --btn-fg:    #ECE3CE;
  --ghost-fg:  #241B14;
  --card:      #CFBB91;
  --card-b:    rgba(36, 27, 20, 0.34);
  --disc-bg:   #CDBC93;
  --disc-line: #241B14;
  --nav-bg:    rgba(219, 206, 177, 0.95);
  --focus-c:   #5A4632;
  --input-bg:  #CFC0A0;
  --input-b:   rgba(36, 27, 20, 0.25);
  --err:       #8B2A2A;
}

/* ---- RESET / BASE -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[lang="ar"] body,
[lang="ar"] p,
[lang="ar"] span,
[lang="ar"] li,
[lang="ar"] label,
[lang="ar"] input,
[lang="ar"] textarea,
[lang="ar"] select,
[lang="ar"] button:not(.lang-toggle button),
[lang="ar"] a:not(.wordmark):not(.btn) {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4 {
  font-family: 'El Messiri', sans-serif;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--focus-c);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- NAVIGATION ---------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

[lang="ar"] .nav-links a { font-family: 'IBM Plex Sans Arabic', sans-serif; }

.nav-links a:hover { color: var(--fg); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  padding: 3px;
  flex: 0 0 auto;
  transition: border-color 0.8s;
}

.lang-toggle button {
  all: unset;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--btn-fg);
}

#btnAR {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

/* ---- HERO ---------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

/* Split layout: text 55% left, image 45% right */
.hero-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  width: 100%;
  min-height: 100svh;
  align-items: center;
}

/* Text column */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: clamp(80px, 12vh, 140px) clamp(32px, 5.5vw, 80px);
}

[dir="rtl"] .hero-content {
  align-items: flex-start;
  text-align: right;
}

/* Image column */
.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
  /* Slight desaturation to harmonise with brand palette */
  filter: brightness(0.84) saturate(0.85);
}

/* Left-edge fade — image dissolves into the dark background toward the text */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, transparent 44%);
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top + bottom edge fade — ties image into the section */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%),
    linear-gradient(to top,    var(--bg) 0%, transparent 22%);
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* AR warm mode: warm-tint the dark image so it reads on sand background */
[data-theme="ar"] .hero-image {
  filter: brightness(0.72) saturate(0.78) sepia(0.10);
}

/* RTL: mirror the fade to the right edge (image is now left column) */
[dir="rtl"] .hero-image-wrap::before {
  background: linear-gradient(to left, var(--bg) 0%, transparent 44%);
}

.hero-pre {
  font-size: 12px;
  color: var(--faint);
  margin: 0 0 28px;
  letter-spacing: 0.05em;
}

[lang="ar"] .hero-pre {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.012em;
  color: var(--fg);
  margin: 0 0 32px;
  max-width: 18ch;
}

[lang="ar"] .hero-headline {
  font-family: 'El Messiri', sans-serif;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 28px;
}

/* Custody route divider — left-aligned in split layout */
.custody-route {
  display: flex;
  align-items: center;
  width: 110px;
  height: 14px;
  margin: 0 0 32px;
}

.cr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  transition: background 0.8s, border-color 0.8s;
}

.cr-dot--open {
  background: transparent;
  border: 1.5px solid var(--accent);
}

.cr-seg {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
  transition: background 0.8s;
}

.cr-seg--dash {
  background: none;
  border-top: 1px dashed var(--accent);
  height: 0;
  opacity: 0.55;
}

.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.7;
  margin: 0 0 40px;
}

[lang="ar"] .hero-sub {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

[dir="rtl"] .hero-ctas {
  justify-content: flex-end;
}

/* ---- BUTTONS ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s, filter 0.25s;
}

[lang="ar"] .btn {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--ghost-fg);
  border-color: var(--hair-2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- CREDIBILITY STRIP --------------------------------------- */
.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.cred-item {
  padding: clamp(22px, 3vw, 38px) clamp(20px, 3.5vw, 44px);
  border-inline-end: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cred-item:last-child { border-inline-end: none; }

.cred-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  display: block;
  line-height: 1.2;
}

[lang="ar"] .cred-value { font-family: 'El Messiri', sans-serif; }

.cred-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

[lang="ar"] .cred-label { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---- SECTION BASE -------------------------------------------- */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--hair);
  scroll-margin-top: 62px; /* sticky nav height */
}

.section-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.section-header { margin-bottom: clamp(36px, 5vw, 56px); }

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.008em;
  color: var(--fg);
  max-width: 26ch;
  margin: 0;
}

[lang="ar"] .section-heading {
  font-family: 'El Messiri', sans-serif;
  letter-spacing: 0;
  line-height: 1.28;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 52ch;
  line-height: 1.65;
}

[lang="ar"] .section-sub { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---- ABOUT / EDITORIAL --------------------------------------- */
.editorial-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.editorial-eyebrow {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  font-weight: 500;
}

[lang="ar"] .editorial-eyebrow {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0;
}

.editorial-lead .section-heading { margin-bottom: 22px; }

.editorial-body {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.72;
  max-width: 60ch;
}

[lang="ar"] .editorial-body { font-family: 'IBM Plex Sans Arabic', sans-serif; }

.editorial-meta {
  border-top: 1px solid var(--hair-2);
  padding-top: 4px;
}

.fact-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-key {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  display: block;
  line-height: 1.2;
}

[lang="ar"] .fact-key { font-family: 'El Messiri', sans-serif; }

.fact-val {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

[lang="ar"] .fact-val { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---- AUDIENCE ------------------------------------------------ */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--card-b);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.8s;
}

.audience-card {
  background: var(--card);
  padding: clamp(28px, 4vw, 48px);
  transition: background 0.8s;
}

.audience-card + .audience-card {
  border-inline-start: 1px solid var(--card-b);
  transition: border-color 0.8s, background 0.8s;
}

.audience-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 14px;
  display: block;
}

[lang="ar"] .audience-label { font-family: 'El Messiri', sans-serif; }

.audience-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.68;
}

[lang="ar"] .audience-body { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---- SERVICES INDEX ------------------------------------------ */
.services-index {
  list-style: none;
  margin: 0 0 clamp(48px, 6vw, 72px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
}

.services-index li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  color: var(--fg);
  line-height: 1.4;
}

[lang="ar"] .services-index li { font-family: 'IBM Plex Sans Arabic', sans-serif; }

.services-index li:nth-child(odd) {
  padding-inline-end: clamp(24px, 4vw, 48px);
  border-inline-end: 1px solid var(--hair);
}

.services-index li:nth-child(even) {
  padding-inline-start: clamp(24px, 4vw, 48px);
}

/* Last item in odd column with no pair: remove the orphaned inline-end border */
.services-index li:nth-child(odd):last-child {
  border-inline-end: none;
  padding-inline-end: 0;
}

.svc-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
  flex: 0 0 auto;
  line-height: 1;
  margin-top: 2px;
}

/* ---- PROCESS LINE -------------------------------------------- */
.process-line {
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--hair);
}

.process-track {
  display: flex;
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.process-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  transition: background 0.8s, border-color 0.8s;
}

.process-dot--open {
  background: transparent;
  border: 1.5px solid var(--accent);
}

.process-connector {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  align-self: flex-start;
  margin-top: 4px;
  transition: background 0.8s;
}

.process-connector--dash {
  background: none;
  border-top: 1px dashed var(--accent);
}

.process-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

[lang="ar"] .process-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

/* ---- DISCLAIMER ---------------------------------------------- */
.disclaimer-block {
  background: var(--disc-bg);
  border-top: 2px solid var(--disc-line);
  border-radius: 0 0 5px 5px;
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 4vw, 48px);
  transition: background 0.8s, border-color 0.8s;
}

.disclaimer-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  transition: color 0.8s;
}

[lang="ar"] .disclaimer-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.disclaimer-body {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.68;
  max-width: 74ch;
}

[lang="ar"] .disclaimer-body { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---- ENQUIRY FORM -------------------------------------------- */
#enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

[lang="ar"] .form-group label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-b);
  border-radius: 3px;
  padding: 11px 14px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  color: var(--fg);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, background 0.8s, color 0.8s;
}

[lang="ar"] .form-group input,
[lang="ar"] .form-group select,
[lang="ar"] .form-group textarea {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--err);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 1; /* Firefox adds extra opacity by default */
}

/* custom select arrow — EN dark theme */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23A89A86' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

[dir="rtl"] .form-group select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 36px;
}

/* AR warm theme: swap arrow to dark ink so it's visible on sand background */
[data-theme="ar"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%235A4A35' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.field-error {
  font-size: 12px;
  color: var(--err);
  display: none;
  margin-top: -4px;
}

.field-error.visible { display: block; }

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---- SUCCESS STATE ------------------------------------------- */
.success-state {
  padding: clamp(48px, 7vw, 72px) 0;
}

.success-route {
  display: flex;
  align-items: center;
  width: 80px;
  height: 10px;
  margin: 0 0 28px;
}

.success-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 14px;
}

[lang="ar"] .success-heading { font-family: 'El Messiri', sans-serif; }

.success-body {
  font-size: 15px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.65;
}

[lang="ar"] .success-body { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---- FOOTER -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 7vw, 72px);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg);
}

.footer-wordmark .fw-ar {
  font-family: 'El Messiri', sans-serif;
  letter-spacing: 0;
}

.footer-wordmark .fw-sep { opacity: 0.35; letter-spacing: 0; }

/* Preserve Cormorant on the latin wordmark in AR mode — [lang="ar"] span is broad */
[lang="ar"] .footer-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
}
[lang="ar"] .footer-wordmark .fw-ar {
  font-family: 'El Messiri', sans-serif;
}

.footer-location {
  font-size: 12px;
  color: var(--faint);
}

[lang="ar"] .footer-location { font-family: 'IBM Plex Sans Arabic', sans-serif; }

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  color: var(--faint);
  text-align: end;
}

[lang="ar"] .footer-legal { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---- LOGO LOCKUP --------------------------------------------- */
.lockup {
  --emblem-w: 5.83em;
  --ink: var(--fg);
  --flourish: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
  font-size: 34px;
  -webkit-user-select: none; user-select: none;
}
.lockup .lk-emblem { width: var(--emblem-w); height: auto; display: block; }
.lockup .lk-ar {
  font-family: 'El Messiri', sans-serif;
  direction: rtl;
  font-weight: 700;
  font-size: 1.02em;
  color: var(--ink);
  margin-top: .12em;
  letter-spacing: .02em;
}
.lockup .lk-word {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: .14em;
  text-indent: .14em;
  color: var(--ink);
  margin-top: .14em;
}
.lockup .lk-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  margin-top: .42em;
  width: 100%;
}
.lockup .lk-tag .lk-rule { height: 1px; background: var(--flourish); flex: 0 0 .9em; opacity: .85; }
.lockup .lk-tag .lk-tag-txt {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: .25em;
  letter-spacing: .18em;
  text-indent: .18em;
  white-space: nowrap;
  color: var(--ink);
}
.lockup.no-tag .lk-tag { display: none; }
.lockup.no-ar  .lk-ar  { display: none; }
.lockup.horizontal {
  flex-direction: row;
  align-items: center;
  gap: .55em;
  text-align: left;
}
.lockup.horizontal .lk-emblem { width: 2.0em; margin: 0; }
.lockup.horizontal .lk-textblock { display: flex; flex-direction: column; align-items: flex-start; }
.lockup.horizontal .lk-ar,
.lockup.horizontal .lk-word { margin: 0; }
.lockup.horizontal .lk-ar  { font-size: .62em; }
.lockup.horizontal .lk-word { font-size: .7em; }
.lockup.horizontal .lk-tag { justify-content: flex-start; margin-top: .18em; }
.lockup.horizontal .lk-tag .lk-rule { display: none; }
.lockup.horizontal .lk-tag .lk-tag-txt { font-size: .2em; }
.ink-ivory    { --ink: #F0E9DB; }
.ink-gold     { --ink: #F6C443; }
.ink-bronze   { --ink: #C9A86B; }
.ink-charcoal { --ink: #1E1714; }

/* EN/AR lockup visibility — matches data-theme toggle */
[data-theme="en"] .lk-nav-ar,
[data-theme="en"] .lk-footer-ar { display: none; }
[data-theme="ar"]  .lk-nav-en,
[data-theme="ar"]  .lk-footer-en  { display: none; }

/* Nav lockup sizes */
.lk-nav-en,
.lk-nav-ar { font-size: 22px; }

/* Footer lockup sizes */
.lk-footer-en,
.lk-footer-ar { font-size: 13px; }

/* ---- PAGE ENTRY ANIMATION ------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- RESPONSIVE ---------------------------------------------- */
@media (max-width: 900px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .editorial-meta { border-top: 1px solid var(--hair-2); padding-top: 4px; }

  .credibility-strip { grid-template-columns: 1fr 1fr; }

  .cred-item:nth-child(2) { border-inline-end: none; }
  .cred-item:nth-child(3),
  .cred-item:nth-child(4) { border-top: 1px solid var(--hair); }
  .cred-item:nth-child(4) { border-inline-end: none; }
}

@media (max-width: 720px) {
  /* ── Nav: push language toggle to the right (LTR) / left (RTL) ── */
  .lang-toggle { margin-inline-start: auto; }

  /* ── Hero: stack vertically, no forced full-viewport height ── */
  .hero { display: block; }

  .hero-layout {
    display: flex;
    flex-direction: column;
    min-height: unset;  /* remove full-screen lock — content determines height */
  }

  /* Image on top, taller strip, cropped to show the person and cases */
  .hero-image-wrap {
    order: -1;
    height: clamp(240px, 58vw, 340px);
    min-height: unset;
  }

  .hero-image {
    object-position: 68% 28%;  /* focus on the person + cases, not the dark wall */
  }

  /* Bottom-fade only on mobile (no left/right gradient needed) */
  .hero-image-wrap::before {
    background: linear-gradient(to top, var(--bg) 0%, transparent 48%);
  }
  [dir="rtl"] .hero-image-wrap::before {
    background: linear-gradient(to top, var(--bg) 0%, transparent 48%);
  }
  .hero-image-wrap::after {
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 28%);
  }

  /* Text block: centered, natural height */
  .hero-content,
  [dir="rtl"] .hero-content {
    align-items: center;
    text-align: center;
    padding: 20px clamp(20px, 5vw, 48px) clamp(40px, 7vw, 64px);
  }

  .hero-headline { max-width: none; }

  .hero-ctas,
  [dir="rtl"] .hero-ctas { justify-content: center; }

  /* ── Nav links hidden on mobile ── */
  .nav-links { display: none; }

  /* ── Nav logo: shrink to emblem-only width ── */
  .lk-nav-en,
  .lk-nav-ar { font-size: 17px; }

  /* ── Audience ── */
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card + .audience-card {
    border-inline-start: none;
    border-top: 1px solid var(--card-b);
  }

  /* ── Services index: single column ── */
  .services-index { grid-template-columns: 1fr; }
  .services-index li:nth-child(odd) {
    padding-inline-end: 0;
    border-inline-end: none;
  }
  .services-index li:nth-child(even) { padding-inline-start: 0; }

  /* ── Process timeline: vertical chain with connecting lines ── */
  .process-track {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;           /* connectors provide the spacing between steps */
    max-width: none;
  }

  .process-step {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 3px 0;
  }

  /* Restore connectors as short vertical lines between steps */
  .process-connector {
    display: block;
    width: 1px;
    height: 14px;
    background: var(--accent);
    opacity: 0.5;
    border-top: none;
    margin-inline-start: 3.5px;  /* aligns centre of 1px line with centre of 8px dot */
    transition: background 0.8s;
  }

  /* All connectors solid on mobile — matches user preference */
  .process-connector--dash {
    background: var(--accent);
    border-left: none;
  }

  .process-label {
    text-align: start;
    white-space: normal;
  }

  /* ── Form ── */
  .form-row { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer-inner { align-items: flex-start; }
  .footer-legal { align-items: flex-start; text-align: start; }
}

@media (max-width: 540px) {
  .credibility-strip { grid-template-columns: 1fr; }
  .cred-item {
    border-inline-end: none;
    border-top: 1px solid var(--hair);
    padding: 14px clamp(20px, 5vw, 48px);  /* compact on mobile */
  }
  .cred-item:first-child { border-top: none; }
  .cred-item:nth-child(3),
  .cred-item:nth-child(4) { border-top: 1px solid var(--hair); }

  .hero-ctas,
  [dir="rtl"] .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ---- REDUCED MOTION ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-content { animation: none; }

  body,
  .site-nav,
  .wordmark,
  .btn,
  .btn-primary,
  .btn-ghost,
  .audience-card,
  .audience-card + .audience-card,
  .audience-grid,
  .hero-image-wrap::before,
  .hero-image-wrap::after,
  .process-dot,
  .process-connector,
  .cr-dot,
  .cr-seg,
  .disclaimer-block,
  .disclaimer-label,
  .site-footer,
  .lang-toggle,
  .lang-toggle button,
  .form-group input,
  .form-group select,
  .form-group textarea {
    transition: none !important;
  }
}
