/* ============================================================
   CtrlShift Website — Main Stylesheet
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-en);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }

:focus-visible {
  outline: 2px solid var(--cs-blue);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  width: 100%;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  width: 100%;
}
.section { padding: var(--sp-10) 0; }
.section-sm { padding: var(--sp-8) 0; }
.section-dark { background: var(--cs-navy); }
.section-soft { background: var(--bg-soft); }

/* ── Typography helpers ── */
.eyebrow {
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--cs-blue);
}
.eyebrow-light { color: var(--cs-lime); }
.text-muted { color: var(--fg-muted); }
.text-subtle { color: var(--fg-subtle); }
.text-on-dark { color: var(--fg-on-dark); }
.text-on-dark-muted { color: rgba(255,255,255,0.65); }

.h1 { font-family: var(--font-en-display); font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); font-weight: var(--fw-bold); }
.h2 { font-family: var(--font-en-display); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); font-weight: var(--fw-semibold); }
.h3 { font-family: var(--font-en-subhead); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); font-weight: var(--fw-semibold); }
.h4 { font-family: var(--font-en-subhead); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--tr-h4); font-weight: var(--fw-semibold); }

.section-header { margin-bottom: var(--sp-8); }
.section-header .eyebrow { margin-bottom: var(--sp-2); }
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header p { max-width: 560px; color: var(--fg-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-en);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--r-0);
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--cs-blue);
  color: var(--cs-white);
  border: var(--bw-cta) solid transparent;
}
.btn-primary:hover { background: var(--cs-blue-hover); }
.btn-primary:active { background: var(--cs-blue-pressed); }

.btn-outline {
  background: transparent;
  color: var(--cs-navy);
  border: var(--bw-cta) solid var(--cs-navy);
}
.btn-outline:hover { background: var(--cs-navy); color: var(--cs-white); }

.btn-outline-light {
  background: transparent;
  color: var(--cs-white);
  border: var(--bw-cta) solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { border-color: var(--cs-white); background: rgba(255,255,255,0.08); }

.btn-ghost {
  background: transparent;
  color: var(--cs-blue);
  border: var(--bw-cta) solid transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--cs-blue-hover); }

.btn-lime {
  background: var(--cs-lime);
  color: var(--cs-navy);
  border: var(--bw-cta) solid transparent;
}
.btn-lime:hover { background: var(--cs-lime-hover); }

.btn-lg { padding: 15px 32px; font-size: var(--fs-body); }

.btn-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  background: var(--cs-navy);
  border-bottom: var(--bw-hair) solid rgba(255,255,255,0.08);
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.site-nav.scrolled {
  background: var(--cs-navy);
  border-bottom-color: rgba(255,255,255,0.12);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 28px; }

.nav-center { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links li { position: relative; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border-radius: var(--r-1);
  transition: color var(--dur-base) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--cs-white); }
.nav-links a.active { color: var(--cs-white); font-weight: var(--fw-semibold); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--cs-lime);
  border-radius: 0;
}

.nav-dropdown-toggle svg {
  transition: transform var(--dur-base) var(--ease-standard);
}
.has-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--cs-navy);
  border: var(--bw-hair) solid rgba(255,255,255,0.12);
  padding: var(--sp-2) 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.has-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px;
  border-radius: 0;
  border-left: 2px solid transparent;
}
.nav-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--cs-lime);
}
.nav-dropdown a strong {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--cs-white);
  line-height: 1.3;
}
.nav-dropdown a span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.nav-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

.nav-cta-btn {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  padding: 9px 18px;
  background: var(--cs-lime);
  color: var(--cs-navy);
  border: none;
  border-radius: var(--r-0);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.nav-cta-btn:hover { background: var(--cs-lime-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--r-1);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cs-white);
  border-radius: 1px;
  transition: all var(--dur-base) var(--ease-standard);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--cs-navy);
  z-index: 850;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-6) var(--sp-8);
  flex-direction: column;
  gap: var(--sp-1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.75);
  padding: 14px 0;
  border-bottom: var(--bw-hair) solid rgba(255,255,255,0.08);
  display: block;
  transition: color var(--dur-fast) var(--ease-standard);
}
.mobile-nav a:hover { color: var(--cs-white); }
.mobile-nav .mobile-nav-sub { padding-left: var(--sp-5); }
.mobile-nav .mobile-nav-sub a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.5);
  padding: 10px 0;
}
.mobile-nav-cta {
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ── Page offset for fixed nav ── */
.page-body { padding-top: var(--nav-h); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background: var(--cs-navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/photography/riyadh-skyline.png');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-6);
  width: 100%;
}
.hero-content { max-width: 680px; }
.hero .eyebrow { margin-bottom: var(--sp-4); color: var(--cs-lime); }
.hero h1 {
  font-family: var(--font-en-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
  font-weight: var(--fw-bold);
  color: var(--cs-white);
  margin-bottom: var(--sp-5);
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--sp-7);
  max-width: 540px;
}
.hero-scroll {
  position: absolute;
  bottom: var(--sp-7);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.hero-scroll svg { opacity: 0.5; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Subpage hero (smaller) */
.page-hero {
  background: var(--cs-navy);
  padding: var(--sp-10) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--cs-lime); margin-bottom: var(--sp-3); }
.page-hero h1 {
  font-family: var(--font-en-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
  font-weight: var(--fw-bold);
  color: var(--cs-white);
  margin-bottom: var(--sp-4);
  max-width: 640px;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.68);
  max-width: 520px;
  line-height: 1.6;
}

/* ── Stats band ── */
.stats-band {
  background: var(--cs-blue);
  padding: var(--sp-7) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  border-right: var(--bw-hair) solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-en-display);
  font-size: 40px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--cs-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.stat-suffix {
  font-size: 24px;
  font-weight: var(--fw-semibold);
  color: var(--cs-lime);
}
.stat-label {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.65);
  font-weight: var(--fw-medium);
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.service-card {
  border: var(--bw-hair) solid var(--line);
  padding: var(--sp-7) var(--sp-6);
  background: var(--bg);
  transition: border-color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  border-color: var(--cs-blue);
  background: var(--bg-soft);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cs-graphite-soft);
  border-radius: var(--r-2);
  color: var(--cs-blue);
  flex-shrink: 0;
}
.service-card h3 {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  line-height: var(--lh-h3);
}
.service-card p {
  color: var(--fg-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  flex: 1;
}
.service-card-link {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--cs-blue);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
}
.service-card:hover .service-card-link { text-decoration: underline; }

/* Services 4-col (for overview page) */
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

/* ── About split ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.about-split-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cs-graphite-soft);
}
.about-split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-split-content .eyebrow { margin-bottom: var(--sp-3); }
.about-split-content h2 { margin-bottom: var(--sp-4); }
.about-split-content p { color: var(--fg-muted); margin-bottom: var(--sp-5); }

/* ── Process steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  padding: var(--sp-7) var(--sp-5);
  border-right: var(--bw-hair) solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-number {
  font-family: var(--font-en-display);
  font-size: 48px;
  font-weight: var(--fw-bold);
  color: var(--cs-graphite-line);
  line-height: 1;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.03em;
}
.process-step h4 {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: var(--sp-3);
}
.process-step p { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.6; }

/* ── Client logos ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: var(--bw-hair) solid var(--line);
}
.client-logo-item {
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--bw-hair) solid var(--line);
  border-bottom: var(--bw-hair) solid var(--line);
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--dur-base) var(--ease-standard);
}
.client-logo-item:hover { filter: grayscale(0%) opacity(1); }
.client-logo-item img { max-height: 40px; width: auto; object-fit: contain; }

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.team-card {
  border: var(--bw-hair) solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.team-card-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cs-graphite-soft);
}
.team-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%);
  transition: filter var(--dur-slow) var(--ease-standard);
}
.team-card:hover .team-card-photo img { filter: grayscale(0%); }
.team-card-body { padding: var(--sp-5); }
.team-card-name {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: 4px;
}
.team-card-title {
  font-size: var(--fs-small);
  color: var(--cs-blue);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-3);
}
.team-card-bio {
  font-size: var(--fs-small);
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Insight cards ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.insight-card {
  border: var(--bw-hair) solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.insight-card:hover { border-color: var(--cs-blue); }
.insight-card-thumb {
  aspect-ratio: 16/9;
  background: var(--cs-graphite-soft);
  overflow: hidden;
}
.insight-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.insight-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); }
.insight-card-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: var(--fw-semibold);
  align-items: center;
}
.insight-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-subtle); }
.insight-card h3 {
  font-family: var(--font-en-subhead);
  font-size: 17px;
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  line-height: 1.35;
}
.insight-card p { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.6; flex: 1; }
.insight-card-link {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--cs-blue);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
}

/* ── Divider line ── */
.hr { border: 0; border-top: var(--bw-hair) solid var(--line); margin: 0; }
.hr-dark { border-top-color: rgba(255,255,255,0.1); }

/* ── CTA banner ── */
.cta-banner {
  background: var(--cs-navy);
  padding: var(--sp-10) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/photography/tower.png');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner .eyebrow { color: var(--cs-lime); margin-bottom: var(--sp-3); }
.cta-banner h2 {
  font-family: var(--font-en-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--cs-white);
  margin-bottom: var(--sp-4);
  letter-spacing: var(--tr-h1);
}
.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-7);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-banner .btn-actions { justify-content: center; }

/* ── Value prop cards ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.value-card {
  padding: var(--sp-6);
  border: var(--bw-hair) solid var(--line);
  background: var(--bg);
}
.value-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cs-blue);
  margin-bottom: var(--sp-4);
}
.value-card h4 {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: var(--sp-2);
}
.value-card p { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.6; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: var(--sp-4);
}
.contact-info p { color: var(--fg-muted); margin-bottom: var(--sp-6); line-height: 1.6; }
.contact-detail {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: var(--bw-hair) solid var(--line);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon { color: var(--cs-blue); flex-shrink: 0; margin-top: 2px; }
.contact-detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: var(--fw-semibold); color: var(--fg-subtle); margin-bottom: 4px; }
.contact-detail-value { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.5; }

.form-group { margin-bottom: var(--sp-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: var(--sp-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-en);
  font-size: var(--fs-small);
  color: var(--fg);
  background: var(--bg);
  border: var(--bw-hair) solid var(--line-strong);
  padding: 11px var(--sp-4);
  border-radius: var(--r-1);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-standard);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cs-blue);
  outline: 2px solid var(--cs-blue);
  outline-offset: -1px;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236A7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-error { display: none; font-size: 12px; color: var(--cs-status-error); margin-top: 5px; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--cs-status-error); }
.form-group.has-error .form-error { display: block; }
.form-success {
  display: none;
  background: var(--cs-status-pos-soft);
  border: var(--bw-hair) solid var(--cs-status-pos);
  color: var(--cs-status-pos);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-1);
  margin-bottom: var(--sp-4);
}
.form-success.visible { display: flex; gap: var(--sp-2); align-items: center; }

/* ── Careers ── */
.careers-grid { display: flex; flex-direction: column; gap: var(--sp-3); }
.career-item {
  border: var(--bw-hair) solid var(--line);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  background: var(--bg);
  transition: border-color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
  text-decoration: none;
  color: inherit;
}
.career-item:hover { border-color: var(--cs-blue); background: var(--bg-soft); }
.career-item-left { flex: 1; }
.career-item-role {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: 6px;
}
.career-item-meta { display: flex; gap: var(--sp-4); font-size: var(--fs-small); color: var(--fg-muted); flex-wrap: wrap; }
.career-item-meta span { display: flex; align-items: center; gap: 5px; }
.career-badge {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 3px 10px;
  border-radius: var(--r-1);
  background: var(--cs-graphite-soft);
  color: var(--cs-charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}
.career-badge-open { background: var(--cs-status-pos-soft); color: var(--cs-status-pos); border: 1px solid var(--cs-status-pos); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 4px 10px;
  border-radius: var(--r-1);
  letter-spacing: 0.02em;
}
.badge-blue   { background: var(--cs-blue); color: var(--cs-white); }
.badge-lime   { background: var(--cs-lime); color: var(--cs-navy); }
.badge-soft   { background: var(--cs-graphite-soft); color: var(--cs-charcoal); }
.badge-outline{ border: 1px solid var(--cs-graphite-line); color: var(--fg-muted); }

/* ── Service subpage ── */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-8);
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-6));
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  padding: 10px 14px;
  border-left: 2px solid transparent;
  transition: all var(--dur-fast) var(--ease-standard);
  text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--cs-blue);
  border-left-color: var(--cs-blue);
  background: var(--bg-soft);
}

.service-content { display: flex; flex-direction: column; gap: var(--sp-8); }
.service-section h3 {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: var(--bw-hair) solid var(--line);
}
.service-section p { color: var(--fg-muted); line-height: 1.7; margin-bottom: var(--sp-4); }
.service-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.service-list-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: var(--bw-hair) solid var(--line);
  background: var(--bg);
}
.service-list-item-icon { color: var(--cs-blue); flex-shrink: 0; margin-top: 2px; }
.service-list-item-title { font-weight: var(--fw-semibold); color: var(--cs-navy); margin-bottom: 4px; font-size: var(--fs-small); }
.service-list-item-desc { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.6; }

/* ── Key number callout ── */
.key-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.key-number {
  padding: var(--sp-6);
  background: var(--cs-navy);
  text-align: center;
}
.key-number-value {
  font-family: var(--font-en-display);
  font-size: 36px;
  font-weight: var(--fw-bold);
  color: var(--cs-white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.key-number-label { font-size: var(--fs-small); color: rgba(255,255,255,0.6); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-5);
}
.breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
.breadcrumb a:hover { color: var(--cs-white); }
.breadcrumb-sep { opacity: 0.3; }

/* ── Footer ── */
.site-footer {
  background: var(--cs-navy);
  padding: var(--sp-10) 0 var(--sp-6);
  border-top: var(--bw-hair) solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-9);
}
.footer-brand p {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: var(--sp-4) 0 var(--sp-5);
  max-width: 280px;
}
.footer-logo { height: 28px; margin-bottom: var(--sp-4); }
.footer-col h5 {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.footer-col a:hover { color: var(--cs-white); }
.footer-bottom {
  padding-top: var(--sp-5);
  border-top: var(--bw-hair) solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: var(--sp-5); }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color var(--dur-fast) var(--ease-standard); }
.footer-bottom-links a:hover { color: var(--cs-white); }
.footer-accred {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
}
.footer-accred-item {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 8px;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-standard), transform 0.5s var(--ease-standard);
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.5s var(--ease-standard);
}
.fade-in.in-view { opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-7 { margin-bottom: var(--sp-7); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-bottom: var(--bw-hair) solid var(--line); }
  .process-step:nth-child(odd) { border-right: var(--bw-hair) solid var(--line); }
  .process-step:nth-child(even) { border-right: none; }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2); }
  .sidebar-nav a { border-left: none; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .sidebar-nav a:hover, .sidebar-nav a.active { border-bottom-color: var(--cs-blue); background: transparent; }
}

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .key-numbers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-center { display: none; }
  .nav-cta-btn { display: none; } /* hidden on mobile — CTA lives inside the mobile nav overlay */

  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: var(--bw-hair) solid rgba(255,255,255,0.15); }

  .services-grid { grid-template-columns: 1fr; }
  .services-grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .clients-grid { grid-template-columns: repeat(3, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-brand p { max-width: 100%; }

  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: var(--bw-hair) solid var(--line); }
  .process-step:last-child { border-bottom: none; }

  .cta-banner h2 { font-size: 32px; }
  .key-numbers { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 var(--sp-4); }
  .team-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-actions { flex-direction: column; align-items: stretch; }
  .btn-actions .btn { justify-content: center; }
}

/* ── Language toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px;
  border-radius: var(--r-1);
  flex-shrink: 0;
}
.lang-toggle-opt {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none;
  border-radius: var(--r-0);
  cursor: pointer;
  line-height: 1;
  transition: color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
.lang-toggle-opt.active {
  background: var(--cs-blue);
  color: var(--cs-white);
}
.lang-toggle-opt:hover:not(.active) { color: var(--cs-white); }

/* Hidden by default; JS shows them */
.lang-ar-content { display: none; }

/* ── RTL layout overrides ── */
[dir="rtl"] body { font-family: var(--font-ar); }

[dir="rtl"] .nav-dropdown a {
  border-left: none;
  border-right: 2px solid transparent;
  flex-direction: row;
}
[dir="rtl"] .nav-dropdown a:hover { border-right-color: var(--cs-lime); border-left-color: transparent; }

[dir="rtl"] .sidebar-nav a {
  border-left: none;
  border-right: 2px solid transparent;
}
[dir="rtl"] .sidebar-nav a:hover,
[dir="rtl"] .sidebar-nav a.active {
  border-right-color: var(--cs-blue);
  border-left-color: transparent;
}

/* service-list-item & contact-detail: direction:rtl already reverses flex row;
   no explicit row-reverse needed — that would double-reverse back to LTR */

[dir="rtl"] .hero-content { margin-left: 0; }
[dir="rtl"] .section-header p { margin-left: 0; }

[dir="rtl"] .mobile-nav .mobile-nav-sub { padding-left: 0; padding-right: var(--sp-5); }

[dir="rtl"] .nav-links a.active::after { left: 14px; right: 14px; }

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

[dir="rtl"] .eyebrow { letter-spacing: 0; }

[dir="rtl"] .stat-value { letter-spacing: -0.01em; }

[dir="rtl"] .about-split { direction: rtl; }

[dir="rtl"] .footer-brand p { max-width: 300px; }

[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

[dir="rtl"] .service-card-link { flex-direction: row-reverse; }

[dir="rtl"] .career-item { flex-direction: row-reverse; }

[dir="rtl"] .btn-actions { direction: rtl; }

[dir="rtl"] .form-group select { background-position: left 12px center; padding-right: var(--sp-4); padding-left: 36px; }

@media (max-width: 1024px) {
  [dir="rtl"] .sidebar-nav a {
    border-right: none;
    border-bottom: 2px solid transparent;
  }
  [dir="rtl"] .sidebar-nav a:hover,
  [dir="rtl"] .sidebar-nav a.active { border-bottom-color: var(--cs-blue); border-right-color: transparent; }
}

/* ── Differentiators ── */
.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.differentiator-card {
  padding: var(--sp-6);
  border: var(--bw-hair) solid var(--line);
  background: var(--bg);
  position: relative;
}
.differentiator-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--cs-lime);
}
[dir="rtl"] .differentiator-card::before { left: auto; right: 0; }
.differentiator-card h4 {
  font-family: var(--font-en-subhead);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cs-navy);
  margin-bottom: var(--sp-2);
}
[dir="rtl"] .differentiator-card h4 { font-family: var(--font-ar); }
.differentiator-card p { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .differentiators-grid { grid-template-columns: 1fr; }
  .lang-toggle { display: none; }
}

/* ── RTL — Additional Arabic formatting fixes ── */

/* Nav dropdown: open from the right edge in RTL */
[dir="rtl"] .nav-dropdown {
  left: auto;
  right: 0;
}

/* Buttons & nav CTA — switch to Arabic font */
[dir="rtl"] .btn { font-family: var(--font-ar); }
[dir="rtl"] .nav-cta-btn { font-family: var(--font-ar); }

/* Non-heading elements that have explicit EN display/subhead fonts */
[dir="rtl"] .team-card-name  { font-family: var(--font-ar); letter-spacing: 0; }
[dir="rtl"] .career-item-role { font-family: var(--font-ar); letter-spacing: 0; }
[dir="rtl"] .stat-value       { font-family: var(--font-ar); }
[dir="rtl"] .step-number      { font-family: var(--font-ar); letter-spacing: 0; }
[dir="rtl"] .cta-banner h2    { font-family: var(--font-ar); letter-spacing: 0; }

/* Form inputs — Arabic font + right-align text */
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
  font-family: var(--font-ar);
  text-align: right;
}

/* Remove uppercase + letter-spacing from UI labels that look broken in Arabic */
[dir="rtl"] .footer-col h5      { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .footer-accred-item { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .contact-detail-label { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .insight-card-meta  { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .career-badge       { letter-spacing: 0; }
[dir="rtl"] .badge              { letter-spacing: 0; }

/* Process steps — flip the vertical divider to the left edge in RTL */
[dir="rtl"] .process-step {
  border-right: none;
  border-left: var(--bw-hair) solid var(--line);
}
[dir="rtl"] .process-step:last-child { border-left: none; }

/* Section header eyebrow on dark backgrounds */
[dir="rtl"] .diff-dark .section-header .eyebrow { text-align: right; }

/* Page hero h1 max-width — allow wider text for Arabic */
[dir="rtl"] .page-hero h1 { max-width: 760px; }

/* Hero content alignment */
[dir="rtl"] .hero-content { text-align: right; }

/* Service card — align icon to the right in RTL */
[dir="rtl"] .service-card { text-align: right; }

/* Value card — align icon block to right */
[dir="rtl"] .value-card { text-align: right; }

/* Team card body text */
[dir="rtl"] .team-card-body { text-align: right; }

/* Stat item border — flip to left in RTL */
[dir="rtl"] .stat-item {
  border-right: none;
  border-left: var(--bw-hair) solid rgba(255,255,255,0.15);
}
[dir="rtl"] .stat-item:last-child { border-left: none; }
