/* ===== Sahaab Technology — Brand ===== */
:root,
[data-theme="blue"] {
  --brand-primary: #2E74B5;
  --brand-accent: #3BA3E0;
  --brand-primary-dark: #1F5A8F;
  --brand-deep: #0E2A48;
  --brand-glow: #7DD3F5;
  --brand-primary-rgb: 46, 116, 181;
  --brand-accent-rgb: 59, 163, 224;
  --brand-deep-rgb: 14, 42, 72;
  --brand-text: #4A4A4A;
  --brand-muted: #6B7280;
  --brand-soft: #F5F9FC;
  --brand-border: #E2EBF3;
  --brand-white: #FFFFFF;
  --font-family: "Cairo", system-ui, sans-serif;
  --nav-height: 76px;
  --section-pad: clamp(3.5rem, 6vw, 5.5rem);
  --radius: 12px;
  --shadow-soft: 0 8px 28px rgba(var(--brand-primary-rgb), 0.08);
  --transition: 0.25s ease;
}

[data-theme="red"] {
  --brand-primary: #C0392B;
  --brand-accent: #E74C3C;
  --brand-primary-dark: #922B21;
  --brand-deep: #4A1510;
  --brand-glow: #F5A39A;
  --brand-primary-rgb: 192, 57, 43;
  --brand-accent-rgb: 231, 76, 60;
  --brand-deep-rgb: 74, 21, 16;
  --brand-soft: #FCF5F4;
  --brand-border: #F0E0DE;
  --shadow-soft: 0 8px 28px rgba(var(--brand-primary-rgb), 0.08);
}

[data-theme="orange"] {
  --brand-primary: #E67E22;
  --brand-accent: #F39C12;
  --brand-primary-dark: #B35F14;
  --brand-deep: #5C2E08;
  --brand-glow: #F7C98A;
  --brand-primary-rgb: 230, 126, 34;
  --brand-accent-rgb: 243, 156, 18;
  --brand-deep-rgb: 92, 46, 8;
  --brand-soft: #FDF8F2;
  --brand-border: #F0E4D6;
  --shadow-soft: 0 8px 28px rgba(var(--brand-primary-rgb), 0.08);
}

[data-theme="yellow"] {
  --brand-primary: #C9A227;
  --brand-accent: #E8C547;
  --brand-primary-dark: #9A7A12;
  --brand-deep: #4A3B08;
  --brand-glow: #F5E6A3;
  --brand-primary-rgb: 201, 162, 39;
  --brand-accent-rgb: 232, 197, 71;
  --brand-deep-rgb: 74, 59, 8;
  --brand-soft: #FDFBF2;
  --brand-border: #F0EBD6;
  --shadow-soft: 0 8px 28px rgba(var(--brand-primary-rgb), 0.08);
}

[data-theme="green"] {
  --brand-primary: #27AE60;
  --brand-accent: #2ECC71;
  --brand-primary-dark: #1E8449;
  --brand-deep: #0E3D24;
  --brand-glow: #8FE0B0;
  --brand-primary-rgb: 39, 174, 96;
  --brand-accent-rgb: 46, 204, 113;
  --brand-deep-rgb: 14, 61, 36;
  --brand-soft: #F3FBF6;
  --brand-border: #D8EDE1;
  --shadow-soft: 0 8px 28px rgba(var(--brand-primary-rgb), 0.08);
}

[data-theme="indigo"] {
  --brand-primary: #3F51B5;
  --brand-accent: #5C6BC0;
  --brand-primary-dark: #303F9F;
  --brand-deep: #1A237E;
  --brand-glow: #9FA8DA;
  --brand-primary-rgb: 63, 81, 181;
  --brand-accent-rgb: 92, 107, 192;
  --brand-deep-rgb: 26, 35, 126;
  --brand-soft: #F4F5FC;
  --brand-border: #DDE0F0;
  --shadow-soft: 0 8px 28px rgba(var(--brand-primary-rgb), 0.08);
}

[data-theme="violet"] {
  --brand-primary: #8E44AD;
  --brand-accent: #9B59B6;
  --brand-primary-dark: #6C3483;
  --brand-deep: #3B1A4A;
  --brand-glow: #D2A6E5;
  --brand-primary-rgb: 142, 68, 173;
  --brand-accent-rgb: 155, 89, 182;
  --brand-deep-rgb: 59, 26, 74;
  --brand-soft: #F9F4FC;
  --brand-border: #E8DCEF;
  --shadow-soft: 0 8px 28px rgba(var(--brand-primary-rgb), 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--brand-text);
  background: var(--brand-white);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-primary-dark);
}

.section {
  padding: var(--section-pad) 0;
}

.section-soft {
  background: var(--brand-soft);
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.section-lead {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: var(--brand-muted);
  font-size: 1.05rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* ===== Inner pages ===== */
.page-hero {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background:
    linear-gradient(135deg, rgba(245, 249, 252, 0.95), color-mix(in srgb, var(--brand-soft) 90%, var(--brand-accent))),
    radial-gradient(circle at 90% 10%, rgba(var(--brand-accent-rgb), 0.18), transparent 40%);
  border-bottom: 1px solid var(--brand-border);
}

.page-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.page-lead {
  max-width: 640px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 1.05rem;
}

.home-tile {
  color: inherit;
}

.home-tile:hover {
  color: inherit;
}

.home-tile h3 {
  color: #1a1a1a;
}

/* ===== Buttons ===== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.25);
}

/* ===== Navbar ===== */
.site-navbar {
  min-height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand-border);
  z-index: 1030;
}

.site-navbar .navbar-brand {
  padding: 0;
  margin: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  max-width: min(260px, 55vw);
  object-fit: contain;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.navbar-nav .nav-link {
  color: var(--brand-text);
  font-weight: 600;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand-primary);
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  left: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.navbar-toggler {
  border-color: var(--brand-border);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--brand-primary-rgb), 0.2);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: min(calc(100vh - var(--nav-height)), 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
  box-shadow:
    0 34px 60px -30px rgba(14, 44, 78, 0.6),
    0 14px 28px -18px rgba(14, 44, 78, 0.4);
  background:
    linear-gradient(250deg, rgba(var(--brand-deep-rgb), 0.92) 0%, rgba(var(--brand-primary-rgb), 0.78) 45%, rgba(var(--brand-primary-rgb), 0.45) 100%),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--brand-accent-rgb), 0.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-content {
  max-width: 620px;
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-badge i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-glow);
  box-shadow: 0 0 10px var(--brand-glow);
}

.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.3;
  color: #fff;
}

.hero-title span {
  color: var(--brand-glow);
}

.hero-text {
  max-width: 520px;
  margin: 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== Cards ===== */
.feature-card {
  height: 100%;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(var(--brand-primary-rgb), 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-primary-rgb), 0.1);
  color: var(--brand-primary);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #1a1a1a;
}

.feature-card p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.98rem;
}

/* ===== Why us ===== */
.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-item .check {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-primary-rgb), 0.12);
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-item p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

/* ===== Clients ===== */
.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.client-logo {
  min-width: 120px;
  height: 64px;
  padding: 0 1.25rem;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  background: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-muted);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px solid rgba(255, 255, 255, 0.92);
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-brand-text {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding: 1.15rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  :root {
    --nav-height: 68px;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .navbar-collapse {
    padding: 0.75rem 0 1rem;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 3.5rem;
  }

  .hero .container {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-actions .btn-sahaab {
    width: 100%;
  }
}

/* ===== Contact button (header) and shared buttons ===== */
.btn-sahaab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(100deg, var(--brand-primary-dark), var(--brand-accent));
  box-shadow: 0 12px 28px -14px rgba(var(--brand-primary-rgb), 0.65);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-sahaab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(var(--brand-primary-rgb), 0.75);
}

.btn-sahaab .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-sahaab:hover .arrow {
  transform: translateX(-3px);
}

.btn-sahaab-lg {
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
}

.btn-sahaab-ghost {
  color: #0C1D36;
  background: #fff;
  border-color: var(--brand-border);
  box-shadow: none;
}

.btn-sahaab-ghost:hover {
  color: #0C1D36;
  border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--brand-border));
  box-shadow: 0 10px 26px -18px rgba(var(--brand-deep-rgb), 0.35);
}

.btn-sahaab-light {
  color: var(--brand-primary-dark);
  background: #fff;
  box-shadow: 0 12px 28px -14px rgba(var(--brand-deep-rgb), 0.5);
}

.btn-sahaab-light:hover {
  color: var(--brand-primary-dark);
}

.btn-sahaab-outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn-sahaab-outline-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ===== Card hover (theme color overlay) ===== */
.earth-hover {
  position: relative;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.earth-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(var(--brand-deep-rgb), 0.94) 0%, rgba(var(--brand-primary-rgb), 0.86) 50%, rgba(var(--brand-primary-rgb), 0.9) 100%),
    url("../images/earth.jpg") center / cover;
  transition: opacity 0.35s ease;
}

.earth-hover:hover::after {
  opacity: 1;
}

.earth-hover:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(var(--brand-primary-rgb), 0.65);
}

.earth-hover h3,
.earth-hover p,
.earth-hover b,
.earth-hover small,
.earth-hover .sx-ltr,
.earth-hover .sx-muted,
.earth-hover .sx-step-icon,
.earth-hover .feature-icon,
.earth-hover .sx-feature-icon,
.earth-hover .sx-icon,
.earth-hover .sx-hq,
.earth-hover .sx-office,
.earth-hover .sx-step-line {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.earth-hover:hover h3,
.earth-hover:hover p,
.earth-hover:hover b,
.earth-hover:hover small,
.earth-hover:hover .sx-ltr,
.earth-hover:hover .sx-muted,
.earth-hover:hover .sx-step-icon {
  color: #fff;
}

.earth-hover:hover .feature-icon,
.earth-hover:hover .sx-feature-icon,
.earth-hover:hover .sx-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: transparent;
  box-shadow: none;
}

.earth-hover:hover .sx-hq {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.earth-hover:hover .sx-office {
  border-color: rgba(255, 255, 255, 0.25);
}

.earth-hover:hover .sx-step-line {
  background: rgba(255, 255, 255, 0.45);
}

.sx-hire li.earth-hover:hover::before {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: transparent;
}

/* ===== Contact / Careers / Projects pages ===== */
.sx-page {
  --sx-ink: #0C1D36;
  --sx-ink-2: #34475F;
  --sx-muted: #5D6F87;
  --sx-blue: var(--brand-primary);
  --sx-line: var(--brand-border);
  --sx-line-2: color-mix(in srgb, var(--brand-border) 70%, var(--brand-primary));
  --sx-soft: var(--brand-soft);
  --sx-tint: rgba(var(--brand-primary-rgb), 0.07);
  --sx-tint-2: rgba(var(--brand-primary-rgb), 0.14);
  --sx-shadow-sm: 0 1px 2px rgba(var(--brand-deep-rgb), 0.05), 0 10px 26px -18px rgba(var(--brand-deep-rgb), 0.22);
  --sx-shadow-lg: 0 2px 4px rgba(var(--brand-deep-rgb), 0.04), 0 34px 64px -32px rgba(var(--brand-deep-rgb), 0.3);
  background: var(--brand-soft);
  color: var(--sx-ink-2);
}

.sx-page h1,
.sx-page h2,
.sx-page h3 {
  color: var(--sx-ink);
  margin: 0;
}

.sx-page p {
  margin: 0;
}

.sx-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.sx-section-bottom {
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.sx-grad {
  background: linear-gradient(95deg, var(--brand-primary-dark) 0%, var(--brand-primary) 60%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sx-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--sx-line-2);
  box-shadow: var(--sx-shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sx-ink-2);
}

.sx-badge i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.sx-head {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.sx-label {
  color: var(--sx-blue);
  font-weight: 700;
  font-size: 0.95rem;
}

.sx-head h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.4;
}

.sx-head p {
  color: var(--sx-muted);
  font-size: 1.1rem;
}

.sx-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--sx-tint);
  border: 1px solid var(--sx-tint-2);
  color: var(--sx-blue);
  font-size: 1.35rem;
}

.sx-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.75rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-sm);
}

.sx-card .sx-icon {
  margin-bottom: 0.5rem;
}

.sx-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.sx-card p {
  color: var(--sx-muted);
}

/* Page hero */
.sx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.sx-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 40%, var(--brand-border)) 0%, var(--brand-soft) 70%);
}

.sx-glow-1,
.sx-glow-2 {
  position: absolute;
  border-radius: 50%;
}

.sx-glow-1 {
  width: 820px;
  height: 820px;
  top: -340px;
  left: -240px;
  background: radial-gradient(closest-side, rgba(var(--brand-accent-rgb), 0.26), transparent);
}

.sx-glow-2 {
  width: 680px;
  height: 680px;
  bottom: -380px;
  right: -260px;
  background: radial-gradient(closest-side, rgba(var(--brand-primary-rgb), 0.13), transparent);
}

.sx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--brand-primary-rgb), 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-primary-rgb), 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 40% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 40% 35%, #000 25%, transparent 75%);
}

.sx-hero-body {
  position: relative;
  display: grid;
  gap: 1.35rem;
}

.sx-hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.35;
  max-width: 15ch;
}

.sx-hero p {
  color: var(--sx-ink-2);
  font-size: 1.15rem;
  max-width: 38em;
}

.sx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sx-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.sx-hero-split h1 {
  max-width: none;
}

/* The logo squares (mirrored for right-to-left) */
.sx-cluster {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(300px, 26vw);
  aspect-ratio: 500 / 353;
  transform: translateY(-50%) scaleX(-1);
}

.sx-cluster span {
  position: absolute;
  border-radius: 12%;
  animation: sx-float 6s ease-in-out infinite;
}

.sx-cluster span:nth-child(1) { left: 5%; top: 17.3%; width: 15.2%; height: 22.1%; background: color-mix(in srgb, var(--brand-primary) 92%, black); animation-delay: -1s; }
.sx-cluster span:nth-child(2) { left: 24.4%; top: 10.8%; width: 19.8%; height: 28.6%; background: color-mix(in srgb, var(--brand-primary) 88%, white); animation-delay: -2.2s; }
.sx-cluster span:nth-child(3) { left: 48.8%; top: 0; width: 28%; height: 40.2%; background: color-mix(in srgb, var(--brand-primary) 70%, var(--brand-accent)); animation-delay: -3.1s; }
.sx-cluster span:nth-child(4) { left: 0.6%; top: 45.9%; width: 9.6%; height: 14.4%; background: var(--brand-primary-dark); animation-delay: -0.4s; }
.sx-cluster span:nth-child(5) { left: 14.2%; top: 45.9%; width: 22.2%; height: 31.4%; background: var(--brand-primary); animation-delay: -4s; }
.sx-cluster span:nth-child(6) { left: 40.6%; top: 46.7%; width: 16.8%; height: 24.1%; background: color-mix(in srgb, var(--brand-primary) 75%, var(--brand-accent)); animation-delay: -1.7s; }
.sx-cluster span:nth-child(7) { left: 46%; top: 76.5%; width: 11.4%; height: 16.1%; background: color-mix(in srgb, var(--brand-primary) 65%, var(--brand-accent)); animation-delay: -2.8s; }
.sx-cluster span:nth-child(8) { left: 61.8%; top: 45.9%; width: 38.2%; height: 54.1%; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); animation-delay: -3.6s; }

@keyframes sx-float {
  50% {
    transform: translateY(-8px);
  }
}

/* Contact */
.sx-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.sx-contact-info {
  display: grid;
  gap: 1rem;
}

.sx-contact-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-sm);
}

.sx-contact-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.sx-contact-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.15rem;
}

.sx-muted {
  color: var(--sx-muted);
  font-size: 0.9rem;
  min-width: 52px;
}

.sx-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 600;
  color: var(--sx-ink);
}

a.sx-ltr:hover {
  color: var(--sx-blue);
  text-decoration: underline;
}

.sx-offices {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.sx-office {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sx-line);
}

.sx-office:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sx-office b {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sx-ink);
}

.sx-office small {
  color: var(--sx-muted);
  font-size: 0.88rem;
}

.sx-hq {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sx-tint);
  color: var(--sx-blue);
  font-size: 0.72rem;
  font-weight: 700;
}

.sx-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-sm);
}

.sx-form h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.sx-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sx-field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sx-field label,
.sx-field legend {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sx-ink-2);
}

.sx-field legend {
  float: none;
  width: auto;
  margin-bottom: 0.5rem;
}

.sx-input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid var(--sx-line-2);
  background: var(--sx-soft);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--sx-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sx-input::placeholder {
  color: #8A9AB0;
}

.sx-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--sx-blue);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.14);
}

textarea.sx-input {
  height: auto;
  min-height: 130px;
  padding: 0.85rem 1rem;
  resize: vertical;
  line-height: 1.6;
}

select.sx-input {
  appearance: none;
  cursor: pointer;
  padding-left: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235D6F87' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px;
  background-position: left 16px center;
}

/* File input (CV upload): keep the button and the chosen file name vertically centred in the field. */
input[type="file"].sx-input {
  display: flex;
  align-items: center;
  padding: 0.35rem 1rem;
  line-height: 1;
  cursor: pointer;
}

input[type="file"].sx-input::file-selector-button {
  margin-inline-end: 0.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--sx-line-2);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  color: var(--sx-ink);
  cursor: pointer;
}

.sx-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sx-needs input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sx-needs label {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 1rem;
  border-radius: 10px;
  border: 1px solid var(--sx-line-2);
  background: var(--sx-soft);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--sx-ink-2);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.sx-needs label:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--brand-border));
  color: var(--sx-ink);
}

.sx-needs input:checked + label {
  background: var(--sx-tint-2);
  border-color: var(--sx-blue);
  color: var(--brand-primary-dark);
  font-weight: 700;
}

.sx-needs input:focus-visible + label {
  outline: 2px solid var(--sx-blue);
  outline-offset: 2px;
}

.sx-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.sx-form-foot small {
  color: var(--sx-muted);
  font-size: 0.88rem;
}

/* Careers */
.sx-roles {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-sm);
}

.sx-roles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.sx-roles-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
}

.sx-roles-head span {
  color: var(--sx-muted);
}

.sx-page .sx-roles-how {
  margin: 0.35rem 0 1.4rem;
  color: var(--sx-muted);
  font-size: 0.95rem;
}

.sx-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.sx-jobs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  padding: 1.35rem 0.25rem;
  border-top: 1px solid var(--sx-line);
}

.sx-job-main {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.sx-job h3 {
  font-size: 1.15rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.sx-job:hover h3 {
  color: var(--sx-blue);
}

.sx-job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  color: var(--sx-muted);
  font-size: 0.92rem;
}

.sx-chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sx-tint);
  color: var(--sx-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.sx-empty {
  padding: 1.75rem 0.25rem;
  border-top: 1px solid var(--sx-line);
  color: var(--sx-muted);
}

.sx-hire {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: hire;
}

.sx-hire li {
  counter-increment: hire;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.6rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-sm);
}

.sx-hire li::before {
  content: counter(hire);
  width: 40px;
  height: 40px;
  margin-bottom: 0.35rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--sx-tint);
  border: 1px solid var(--sx-tint-2);
  color: var(--sx-blue);
  font-weight: 800;
}

.sx-hire h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.sx-hire p,
.sx-why p {
  color: var(--sx-muted);
}

.sx-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* About */
.sx-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.sx-about-media {
  position: relative;
  isolation: isolate;
}

.sx-about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--brand-accent-rgb), 0.35), transparent 55%),
    linear-gradient(135deg, rgba(var(--brand-deep-rgb), 0.94) 0%, rgba(var(--brand-primary-rgb), 0.86) 50%, rgba(var(--brand-primary-rgb), 0.9) 100%),
    url("../images/earth.jpg") center / cover;
  box-shadow: var(--sx-shadow-lg);
}

.sx-about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}

.sx-about-visual img {
  position: relative;
  width: 42%;
  max-width: 240px;
  filter: drop-shadow(0 18px 30px rgba(5, 25, 50, 0.45));
}

.sx-orbit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  animation: sx-float 6s ease-in-out infinite;
}

.sx-orbit i {
  color: var(--brand-glow);
}

.sx-orbit-1 { top: 9%; right: 8%; }
.sx-orbit-2 { top: 14%; left: 8%; animation-delay: -1.5s; }
.sx-orbit-3 { bottom: 14%; right: 8%; animation-delay: -3s; }
.sx-orbit-4 { bottom: 9%; left: 8%; animation-delay: -4.5s; }

.sx-about-text {
  display: grid;
  gap: 1rem;
}

.sx-about-text h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.4;
}

.sx-about-text p {
  color: var(--sx-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Projects: law firm system */
.sx-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 1.75rem;
}

.sx-app {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--sx-line-2);
  box-shadow: var(--sx-shadow-lg), 0 0 0 6px rgba(var(--brand-primary-rgb), 0.04);
}

.sx-app-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  background: var(--brand-soft);
  border-left: 1px solid var(--sx-line);
}

.sx-app-side i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-border);
}

.sx-app-side i:first-child {
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.sx-app-side i.on {
  background: var(--sx-tint-2);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), 0.35);
}

.sx-app-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.sx-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sx-ink);
}

.sx-app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 9px;
  background: #F4F7FB;
  border: 1px solid var(--sx-line);
  color: var(--sx-muted);
  font-size: 0.8rem;
}

.sx-app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sx-stat {
  display: grid;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sx-soft);
  border: 1px solid var(--sx-line);
}

.sx-stat small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--sx-muted);
  font-size: 0.75rem;
}

.sx-stat b {
  color: var(--sx-ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.sx-hearings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sx-hearings li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--sx-line);
}

.sx-date {
  display: grid;
  justify-items: center;
  padding: 4px 0;
  border-radius: 9px;
  background: var(--sx-tint);
  color: var(--sx-blue);
  line-height: 1.25;
}

.sx-date b {
  font-size: 1.1rem;
  font-weight: 800;
}

.sx-date small {
  color: var(--sx-muted);
  font-size: 0.66rem;
}

.sx-h-info {
  display: grid;
  min-width: 0;
}

.sx-h-info b {
  color: var(--sx-ink);
  font-size: 0.92rem;
}

.sx-h-info small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--sx-muted);
  font-size: 0.78rem;
}

.sx-status {
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
}

.sx-status.up { background: rgba(var(--brand-primary-rgb), 0.12); color: var(--brand-primary-dark); }
.sx-status.pp { background: rgba(230, 150, 30, 0.15); color: #A15F00; }
.sx-status.jd { background: rgba(14, 143, 100, 0.12); color: #0B7E58; }

.sx-toast {
  position: absolute;
  bottom: 0;
  right: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(340px, 92%);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-lg);
  color: var(--sx-ink-2);
  font-size: 0.86rem;
  animation: sx-float 5s ease-in-out infinite;
}

.sx-toast span {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(14, 143, 100, 0.12);
  color: #0B7E58;
}

.sx-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-lg);
}

.sx-facts.sx-facts-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sx-facts div {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-width: 0;
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--sx-line);
}

.sx-facts div:first-child {
  border-right: 0;
}

.sx-facts b {
  color: var(--sx-blue);
  font-size: 1.35rem;
  font-weight: 800;
}

.sx-facts.sx-facts-3 b {
  font-size: 2rem;
}

.sx-facts small {
  color: var(--sx-muted);
  font-size: 0.9rem;
}

.sx-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.sx-feature {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sx-feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--sx-blue);
  font-size: 1.5rem;
  box-shadow: 0 0 0 6px var(--sx-tint), 0 6px 16px -8px rgba(var(--brand-deep-rgb), 0.35);
}

.sx-feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.sx-feature p {
  color: var(--sx-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.sx-steps {
  list-style: none;
  margin: 0;
  padding: 2.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sx-step {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 3.25rem 1.5rem 1.75rem;
  text-align: center;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sx-step-num {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 46% 54% / 60% 58% 42% 40%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 12px 24px -12px rgba(var(--brand-primary-rgb), 0.7);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.sx-step:nth-child(2) .sx-step-num { background: linear-gradient(135deg, var(--brand-deep), var(--brand-primary)); }
.sx-step:nth-child(3) .sx-step-num { background: linear-gradient(135deg, var(--brand-primary), var(--brand-glow)); }
.sx-step:nth-child(4) .sx-step-num { background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-accent)); }

.sx-step-icon {
  color: var(--sx-ink);
  font-size: 2.6rem;
  line-height: 1;
}

.sx-step h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.sx-step-line {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand-border) 60%, var(--brand-primary));
}

.sx-step p {
  color: var(--sx-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.sx-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 28px;
  background:
    radial-gradient(620px 320px at 15% 20%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(245deg, var(--brand-primary-dark) 0%, var(--brand-primary) 55%, var(--brand-accent) 100%);
  box-shadow: 0 30px 60px -34px rgba(var(--brand-primary-rgb), 0.7);
}

.sx-cta-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.sx-page .sx-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
}

.sx-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.sx-cta .btn-sahaab {
  justify-self: start;
  margin-top: 0.4rem;
}

.sx-cta .sx-cluster {
  left: 7%;
  width: min(320px, 30%);
}

.sx-cta .sx-cluster span {
  background: rgba(255, 255, 255, 0.22);
}

.sx-cta .sx-cluster span:nth-child(3),
.sx-cta .sx-cluster span:nth-child(6) {
  background: rgba(255, 255, 255, 0.34);
}

.sx-cta .sx-cluster span:nth-child(8) {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
  .sx-hero-split,
  .sx-contact-grid,
  .sx-about {
    grid-template-columns: 1fr;
  }

  .sx-features,
  .sx-hire {
    grid-template-columns: repeat(2, 1fr);
  }

  .sx-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3.25rem;
  }

  .sx-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-facts:not(.sx-facts-3) div:nth-child(3) {
    border-right: 0;
  }

  .sx-facts:not(.sx-facts-3) div:nth-child(n + 3) {
    border-top: 1px solid var(--sx-line);
  }

  .sx-facts.sx-facts-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sx-why {
    grid-template-columns: 1fr;
  }

  .sx-cluster {
    display: none;
  }

  .sx-toast {
    right: 12px;
  }
}

@media (max-width: 767.98px) {
  .sx-filters {
    grid-template-columns: 1fr 1fr;
  }

  .sx-filters .sx-search,
  .sx-filters .btn-sahaab {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .sx-row,
  .sx-features,
  .sx-hire,
  .sx-steps,
  .sx-facts {
    grid-template-columns: 1fr;
  }

  .sx-facts div {
    border-right: 0;
  }

  .sx-facts div:not(:first-child) {
    border-top: 1px solid var(--sx-line);
  }

  .sx-app {
    grid-template-columns: 1fr;
  }

  .sx-app-side,
  .sx-app-search {
    display: none;
  }

  .sx-about-visual img {
    width: 36%;
  }

  .sx-orbit {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .sx-orbit-1,
  .sx-orbit-2 {
    top: 6%;
  }

  .sx-orbit-3,
  .sx-orbit-4 {
    bottom: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-cluster span,
  .sx-toast,
  .sx-orbit {
    animation: none;
  }
}

/* ===== Contact form states and footer dashboard link ===== */
.footer-admin {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-admin:hover {
  color: #fff;
}

.state-note {
  text-align: center;
  color: var(--brand-muted);
  padding: 2rem 0;
}

.sx-error {
  color: #B42318;
  font-size: 0.85rem;
}

.has-error .sx-input {
  border-color: #D92D20;
}

.sx-form-error {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #FEF3F2;
  color: #B42318;
}

.sx-form-done {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: start;
}


/* ===== Signed-in admin: top bar and «تعديل» buttons (visitors never get these) ===== */
.admin-bar {
  background: #0F2A45;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.admin-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}
.admin-bar-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.admin-bar a,
.admin-bar button {
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.admin-bar a:hover,
.admin-bar button:hover {
  color: #FFD66B;
}
.admin-edit {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.65rem;
  border: 1px dashed #D4A20A;
  border-radius: 999px;
  background: #FFF6D8;
  color: #6B4E00;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  position: relative;
  z-index: 3;
}
.admin-edit:hover {
  background: #FFE9A3;
  color: #4A3600;
}
.text-center > .admin-edit {
  align-self: center;
}
h4 > .admin-edit {
  margin: 0 0.4rem 0 0;
  font-size: 0.7rem;
  vertical-align: middle;
}

/* ===== Theme color picker (header) ===== */
.theme-picker {
  position: relative;
  margin-inline-end: 0.75rem;
}

.theme-picker-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  background: var(--brand-white);
  color: var(--brand-primary);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.theme-picker-toggle:hover,
.theme-picker-toggle[aria-expanded="true"] {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
  color: var(--brand-primary-dark);
}

.theme-picker-toggle i {
  font-size: 1.15rem;
  line-height: 1;
}

.theme-picker-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.theme-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1040;
  display: none;
  gap: 0.45rem;
  padding: 0.65rem;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: var(--brand-white);
  box-shadow: 0 16px 40px -18px rgba(var(--brand-deep-rgb), 0.35);
  min-width: max-content;
}

.theme-picker.is-open .theme-picker-menu {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.theme-color-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.theme-color-btn:hover {
  transform: scale(1.12);
}

.theme-color-btn.is-active,
.theme-color-btn:focus-visible {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch);
  outline: none;
}

.theme-color-btn[data-theme="red"] { --swatch: #C0392B; }
.theme-color-btn[data-theme="orange"] { --swatch: #E67E22; }
.theme-color-btn[data-theme="yellow"] { --swatch: #C9A227; }
.theme-color-btn[data-theme="green"] { --swatch: #27AE60; }
.theme-color-btn[data-theme="blue"] { --swatch: #2E74B5; }
.theme-color-btn[data-theme="indigo"] { --swatch: #3F51B5; }
.theme-color-btn[data-theme="violet"] { --swatch: #8E44AD; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-auth-btn:hover,
.nav-auth-btn:focus-visible {
  color: var(--brand-primary-dark);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
  outline: none;
}

@media (max-width: 991.98px) {
  .navbar-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin-top: 0.75rem;
    gap: 0.65rem;
  }

  .navbar-actions .btn-sahaab {
    flex: 1 1 auto;
  }

  .nav-auth-btn {
    flex: 0 0 42px;
  }
}
