/* =========================================================================
   Mushairq Real Estate — Team Directory (vCards) — Design System
   Brand: deep charcoal-teal #0e2129 · Mushairq teal #4b9db5 · pale teal #dcedf3
   Typography: Cairo (Arabic + Latin), matching aqar.mushairq.com
   Heroes use the firm's own photography under a dark charcoal-teal wash.
   ========================================================================= */

:root {
  /* Mushairq Real Estate — brand tokens (mirrors src/styles/theme.css on the main site) */
  --brand: #0e2129;          /* deep charcoal-teal — primary */
  --brand-600: #12303a;
  --brand-700: #08161b;      /* darkest — footer / hero base */
  --brand-50: #f2f9fb;
  --brand-100: #dcedf3;      /* pale teal tint, from the logo panel */
  --accent: #4b9db5;         /* Mushairq teal */
  --accent-600: #35798e;
  --accent-light: #a0d0e0;   /* raw logo teal — decorative only */
  --ink: #0a181d;
  --footer-bg: #0e2129;
  --bg: #ffffff;
  --surface: #f2f9fb;
  --surface-2: #dcedf3;      /* logo panel teal — strongest flat tint */
  --tint: #eaf5f9;           /* card/table fill on white grounds */
  --tint-strong: #dbeef5;    /* hover state for tinted rows */
  --border: rgba(14,33,41,.10);
  --border-strong: rgba(14,33,41,.18);
  --border-teal: rgba(75,157,181,.26);
  --text: #2f3639;
  --text-muted: #6b787d;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow: 0 1px 3px rgba(8,22,27,.04), 0 6px 18px rgba(8,22,27,.07);
  --container: 1320px;
  /* The Mushairq mark is a square lockup (symbol + Arabic wordmark + est. line);
     the main site sets it at 72px, so the bar has to be tall enough to carry it. */
  --header-h: 84px;
  --header-pad-top: 30px;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cairo', system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 17px;
  color: var(--text);
  background: var(--brand-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv11' on;
}
html[lang="ar"] body { font-family: var(--font-ar); }
/* Arabic is a connected script — never letter-space it (it breaks letter joining). */
html[lang="ar"], html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

/* ===== Header / nav ===== */
/* Visually hidden until focused — clip technique (no off-screen offset, so it
   never causes horizontal overflow, incl. RTL). */
.skip-link {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 2000;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
}
.skip-link:focus {
  width: auto; height: auto; padding: 10px 18px; margin: 0; overflow: visible;
  clip: auto; clip-path: none;
  border-radius: 0 0 10px 10px; outline: 2px solid var(--accent); outline-offset: 2px;
}

nav#nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  width: 100%; box-sizing: border-box;
  height: var(--header-h); padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 1px 0 rgba(75,157,181,.10), 0 4px 24px rgba(14,33,41,.06);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
nav#nav.sc {
  background: rgba(255,255,255,.80);
  border-bottom-color: rgba(255,255,255,.45);
  box-shadow: 0 4px 28px rgba(14,33,41,.12), 0 1px 0 rgba(75,157,181,.14);
}
nav#nav img, nav#nav .logo {
  -webkit-transform: translateZ(0); transform: translateZ(0);
  isolation: isolate; position: relative; z-index: 1;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; isolation: isolate; transition: opacity .2s ease; }
.logo:hover { opacity: .85; }
.logo img { height: 68px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 2px; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(14,33,41,.58); text-decoration: none;
  font-size: .82rem; font-weight: 600; padding: 6px 12px;
  border-radius: 7px; transition: all .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); background: rgba(14,33,41,.06); }
.nav-links a[aria-current="page"] { color: var(--brand); background: rgba(75,157,181,.16); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  padding: 8px 18px; background: var(--brand); color: #fff;
  font-size: .80rem; font-weight: 700; border-radius: 50px;
  text-decoration: none; transition: all .25s;
}
.nav-btn:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,33,41,.28); }
.lang-link {
  width: 34px; height: 34px; border-radius: 50%; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .90rem; color: rgba(14,33,41,.58); transition: all .2s;
}
.lang-link:hover { color: var(--brand); background: rgba(14,33,41,.07); }

.hbg { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.hbg span { width: 22px; height: 1.5px; background: rgba(14,33,41,.70); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; transform-origin: center; }
/* hamburger -> X when the full-screen menu is open */
.hbg[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hbg[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hbg[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Full-screen mobile menu — covers the whole page below the header bar */
.mob {
  display: none; position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0; z-index: 999;
  width: 100%; box-sizing: border-box;
  height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: #fbfeff;
  padding: 24px 8% max(40px, env(safe-area-inset-bottom));
}
.mob.open { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mob a { display: block; padding: 16px 0; color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 600; text-align: center; border-bottom: 1px solid var(--border); transition: color .2s; }
.mob a:hover { color: var(--accent-600); }
.mob .m-cta { margin-top: 20px; padding: 15px; text-align: center; background: var(--brand); color: #fff; font-weight: 700; border-radius: 12px; text-decoration: none; border-bottom: none; font-size: 1rem; }

@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .nav-links, .nav-btn, nav#nav .nav-right { display: none; }
  .hbg { display: flex; }
  .logo img { height: 54px; }
}

/* ===== Heroes — Mushairq photography under a dark brand wash =====
   Each hero pairs one of the firm's own photos with a charcoal-teal gradient
   heavy enough to keep white text at AA contrast. Backgrounds are set per
   variant below; the base carries the colour fallback and layout. */
.hero-dark {
  position: relative;
  overflow: hidden;
  padding: 130px 0 56px;
  color: #fff;
  border-bottom: none;
  background-color: var(--brand);
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-dark > .container { position: relative; z-index: 2; }

/* Home hero — the logo carries the page, over the top-down brokerage shot */
.hero-home {
  padding: 140px 0 96px;
  background-image:
    linear-gradient(170deg, rgba(14,33,41,.86) 0%, rgba(14,33,41,.78) 45%, rgba(8,22,27,.90) 100%),
    url('../images/hero/home-hero.webp');
  background-position: center 42%;
}
.hero-home > .container { text-align: center; }
/* The official mark is full-colour with dark type, so on the dark hero it gets
   a white rounded panel — the same treatment the brand gives it in its own
   Open Graph image. */
.hero-home .hero-logo {
  display: block;
  margin: 0 auto;
  width: min(272px, 60%);
  height: auto;
  background: #fff;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.38);
}
.hero-dark.hero-home .lede {
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  margin: 22px auto 0;
  max-width: 900px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.60), 0 1px 4px rgba(0,0,0,.45);
  text-align: center;
}
.hero-home .hero-est {
  margin: 16px auto 0;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(160,208,224,.28);
  color: rgba(255,255,255,.88);
  font-size: .82rem; font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* the inline SVG carries no width/height attrs — pin it so it can't crowd the label */
.hero-home .hero-est svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* Team listing hero — the marketing/leasing shot (people, deal-making) */
.hero-csuite {
  padding-top: 150px; padding-bottom: 64px;
  background-image:
    linear-gradient(170deg, rgba(14,33,41,.84) 0%, rgba(14,33,41,.76) 50%, rgba(8,22,27,.90) 100%),
    url('../images/hero/team-hero.webp');
  background-position: center 34%;
}
/* Profile hero — the desk/charts shot, so the portrait reads against depth */
.hero-csuite.hero-person {
  padding-top: 146px; padding-bottom: 58px;
  background-image:
    linear-gradient(170deg, rgba(14,33,41,.86) 0%, rgba(14,33,41,.80) 45%, rgba(8,22,27,.92) 100%),
    url('../images/hero/profile-hero.webp');
  background-position: center 46%;
}
.hero-csuite h1,
.hero-csuite .lede,
.hero-csuite .crumbs,
.hero-csuite .crumbs .here,
.hero-csuite .profile-hero h1,
.hero-csuite .profile-hero .title,
.hero-csuite .profile-hero .org { color: #fff !important; }
.hero-csuite h1,
.hero-csuite .profile-hero h1 {
  text-shadow: 0 2px 22px rgba(0,0,0,.60), 0 1px 4px rgba(0,0,0,.45);
  font-weight: 800;
}
.hero-csuite .lede,
.hero-csuite .profile-hero .title,
.hero-csuite .profile-hero .org {
  text-shadow: 0 1px 14px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.40);
  font-weight: 500;
}
.hero-csuite .profile-hero .title { font-weight: 700; color: var(--accent-light) !important; }
.hero-csuite .crumbs a { color: rgba(255,255,255,.95) !important; font-weight: 500; }
.hero-csuite .crumbs a:hover { color: #fff !important; }
.hero-csuite .crumbs .sep { color: rgba(255,255,255,.70) !important; }
.hero-csuite .btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-csuite .btn:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.36); }
.hero-csuite .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero-csuite .btn.primary:hover { background: var(--accent-light); color: var(--brand-700); border-color: var(--accent-light); }

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 16px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.crumbs a { color: rgba(255,255,255,.88); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .25s; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: rgba(255,255,255,.6); font-size: 12px; }
.crumbs .here { color: #fff; font-size: 14px; font-weight: 700; }

.hero-dark h1 {
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin: 12px 0 14px;
  color: #fff;
  font-weight: 700;
}
html[lang="ar"] .hero-dark h1 { letter-spacing: 0; line-height: 1.25; }
.hero-dark .lede {
  font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(255,255,255,.80);
  max-width: 760px;
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

/* ===== Cards section ===== */
.section { padding: 88px 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(700px, 100%), 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 920px;
  margin-inline: auto;
}
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
html[dir="rtl"] .card::before { transform-origin: right; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.card:hover::before { transform: scaleX(1); }
.card .eyebrow {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.card h3 { font-size: 24px; margin: 0 0 8px; color: var(--ink); font-weight: 700; letter-spacing: -.3px; }
.card .role { font-size: 15px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.card .tag {
  font-size: 12px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.card .cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--accent-600);
}
.card .cta::after { content: "→"; transition: transform .25s ease; }
html[dir="rtl"] .card .cta::after { content: "←"; }
.card:hover .cta::after { transform: translateX(4px); }
html[dir="rtl"] .card:hover .cta::after { transform: translateX(-4px); }

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 22px;
  margin-bottom: 18px;
  font-family: var(--font-en);
}
html[lang="ar"] .avatar { font-family: var(--font-ar); }
/* Photo avatars sit on white studio backgrounds — a ring keeps them from
   dissolving into the light card surface. */
img.avatar {
  object-fit: cover;
  background: var(--surface);
  display: block;
  box-shadow: 0 0 0 1px var(--border-strong), 0 4px 14px rgba(8,22,27,.10);
}

/* ===== Profile page ===== */
.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px 0 12px;
}
.profile-hero .avatar-lg {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 42px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.profile-hero img.avatar-lg {
  object-fit: cover;
  background: #fff;
  display: block;
  box-shadow: 0 0 0 3px rgba(255,255,255,.90), 0 10px 30px rgba(0,0,0,.35);
}
.profile-hero.no-avatar { grid-template-columns: 1fr; }
.profile-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -.5px;
  font-weight: 700;
}
.profile-hero .title { font-size: 17px; color: var(--accent-600); font-weight: 600; margin: 0 0 4px; }
.profile-hero .org { font-size: 14px; color: var(--text-muted); margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  transition: all .15s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(8,22,27,.04);
}
.btn:hover { border-color: var(--border-strong); background: var(--surface); box-shadow: 0 1px 3px rgba(8,22,27,.08); }
.btn.primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(8,22,27,.1);
}
.btn.primary:hover { background: var(--accent-600); border-color: var(--accent-600); box-shadow: 0 2px 6px rgba(8,22,27,.15); }
.btn .icon { width: 16px; height: 16px; }

/* White ground for the profile page — it also gives the bio box and the
   contact table's tinted cells something to sit against (both are --surface,
   which was previously the same colour as the page). */
.profile-body { padding: 56px 0 64px; background: #fff; }
.profile-body h2 {
  font-size: 34px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -.3px;
  margin: 36px 0 16px;
}
.profile-body h2:first-child { margin-top: 0; }
.profile-body .bio {
  font-size: 16px;
  color: var(--text);
  line-height: 1.85;
  max-width: 760px;
  margin: 0;
  text-align: justify;
  background: var(--tint);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}

/* Direct-contact table (phone / email / site / address) on the profile page.
   Two columns of key/value data, so it's a real <table> with row headers. */
.contact-table-wrap { max-width: 620px; overflow-x: auto; }
.contact-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-lg);
  overflow: hidden;                 /* clips the row fills to the rounded corners */
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(8,22,27,.03);
}
.contact-table th,
.contact-table td {
  padding: 14px 18px;
  /* set directly so the mobile "center everything" rule can't inherit into cells */
  text-align: start;
  vertical-align: middle;
  border-top: 1px solid var(--border-teal);
}
.contact-table tr:first-child th,
.contact-table tr:first-child td { border-top: 0; }
.contact-table th {
  width: 1%;                        /* shrink-to-fit the label column */
  white-space: nowrap;
  background: var(--surface-2);
  border-inline-end: 1px solid var(--border-teal);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.contact-table .ci {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-600);
  margin-inline-end: 10px;
  vertical-align: middle;
}
.contact-table .ci svg { width: 15px; height: 15px; }
.contact-table .lbl { vertical-align: middle; }
.contact-table td {
  background: var(--tint);
  color: var(--text); font-weight: 500; line-height: 1.6;
}
.contact-table td a { color: var(--ink); }
.contact-table td a:hover { color: var(--accent-600); text-decoration: underline; }
.contact-table tbody tr { transition: background .18s ease; }
.contact-table tbody tr:hover td { background: var(--tint-strong); }

@media (max-width: 560px) {
  .contact-table th, .contact-table td { padding: 12px 12px; }
  .contact-table th { font-size: 12px; }
  .contact-table .ci { width: 26px; height: 26px; margin-inline-end: 8px; }
  .contact-table .ci svg { width: 13px; height: 13px; }
}

.timeline { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.timeline li {
  position: relative;
  padding-inline-start: 26px;
  padding-block: 14px;
  border-inline-start: 2px solid var(--border-strong);
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -7px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline .role { font-weight: 700; color: var(--ink); margin: 0 0 2px; font-size: 15px; }
.timeline .org { color: var(--text); margin: 0 0 2px; font-size: 14px; }
.timeline .when { color: var(--text-muted); font-size: 12px; margin: 0; }

.qr-block {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 36px;
  padding: 24px;
  background: var(--tint);
  border: 1px dashed rgba(75,157,181,.45);
  border-radius: var(--radius-lg);
  max-width: 420px;
  text-align: center;
}
.qr-block .qr {
  width: 220px; height: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: grid; place-items: center;
  color: var(--text-muted); font-size: 11px;
  overflow: hidden;
}
.qr-block .qr svg { width: 100%; height: 100%; display: block; }
.qr-block .qr-cap { font-size: 12px; color: var(--text-muted); }
.qr-block .qr[role="button"] { cursor: zoom-in; transition: transform .15s ease; }
.qr-block .qr[role="button"]:hover { transform: scale(1.02); }
.qr-block .qr[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* QR enlargement modal */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(8,22,27,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
  animation: qr-modal-in .15s ease;
}
@keyframes qr-modal-in { from { opacity: 0; } to { opacity: 1; } }
.qr-modal-inner {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(92vw, 560px);
}
.qr-modal-inner svg { width: 100%; height: auto; max-width: 480px; max-height: 70vh; display: block; }
.qr-modal-url {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
  text-align: center;
}

/* ===== Cookie consent banner (LP) ===== */
.lp-cookie {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  inset-inline-end: 20px;
  max-width: 520px;
  margin-inline: auto;
  background: var(--brand);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  padding: 20px 22px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s,
              background .25s ease, color .25s ease, border-color .25s ease;
}
.lp-cookie.active { opacity: 1; visibility: visible; transform: translateY(0); }
.lp-cookie h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #fff; }
.lp-cookie p { margin: 0 0 16px; font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.55; }
.lp-cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.lp-cookie button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lp-c-accept { background: #fff; color: var(--brand); border-color: #fff; }
.lp-c-accept:hover { background: rgba(255,255,255,.85); }
.lp-c-reject { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.lp-c-reject:hover { background: rgba(255,255,255,.08); }

/* Over footer: invert to light (footer bg is dark, so banner switches to white) */
.lp-cookie.over-footer {
  background: #fff;
  border-color: rgba(8,22,27,.10);
  box-shadow: 0 8px 32px rgba(8,22,27,.12);
}
.lp-cookie.over-footer h3 { color: var(--ink); }
.lp-cookie.over-footer p { color: var(--text-muted); }
.lp-cookie.over-footer .lp-c-accept { background: var(--brand); color: #fff; border-color: var(--brand); }
.lp-cookie.over-footer .lp-c-accept:hover { background: var(--accent-600); border-color: var(--accent-600); }
.lp-cookie.over-footer .lp-c-reject { color: var(--ink); border-color: var(--border-strong); }
.lp-cookie.over-footer .lp-c-reject:hover { background: var(--surface); }

@media (max-width: 520px) {
  .lp-cookie { bottom: 12px; inset-inline-start: 12px; inset-inline-end: 12px; padding: 16px 18px; }
  .lp-cookie-actions { justify-content: stretch; }
  .lp-cookie-actions button { flex: 1; }
}

/* Force LTR for phone numbers, emails, URLs in RTL context */
.ltr { unicode-bidi: isolate; direction: ltr; display: inline-block; }

/* Screen-reader-only (table captions etc.) — clip technique, no layout impact */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ===== Footer ===== */
footer {
  background: var(--footer-bg);
  color: #fff;
  /* --fixed-bottom-h is measured by footer-ui.js: how much of the viewport
     bottom the fixed furniture (cookie banner + mobile sticky bar) actually
     covers. Reserving it here keeps the last footer rows reachable, and the
     space collapses again once the banner is dismissed. */
  padding: 52px 5% calc(24px + var(--fixed-bottom-h, 0px));
  position: relative;
  overflow: hidden;
}
/* faint echo of the hero hairlines */
footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 1px, transparent 1px 26px);
}
footer > * { position: relative; z-index: 1; }
.f-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
/* The Mushairq footer mark is a circular badge that fills its box edge to edge,
   so it needs real clearance below it (the wordmark this layout came from had
   built-in whitespace and used a negative margin here). */
.footer-logo { display: flex; justify-content: flex-start; margin-bottom: 20px; }
.footer-logo img { display: block; height: 110px; width: auto; }
.f-brand p { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 12px; line-height: 1.68; max-width: 320px; }
html[dir="rtl"] .f-brand p { text-align: right; }
.f-brand-info { line-height: 1.4; }
.f-col h4 { font-size: .66rem; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 12px; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
html[dir="rtl"] .f-col ul { text-align: right; }
.f-col li { margin-bottom: 7px; }
.f-col li::before { content: '— '; color: var(--accent); font-size: .70rem; }
.f-col a { font-size: .82rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.f-col a:hover { color: #fff; }

.cr-link { color: var(--accent-light); direction: ltr; unicode-bidi: embed; text-decoration: none; transition: color .2s; }
.cr-link:hover { color: #fff; }

/* Social icons — glass */
.f-socials { display: flex; gap: 10px; margin-top: 14px; margin-bottom: 14px; justify-content: flex-start; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: .88rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.65); transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.10);
}
.soc-btn:hover {
  background: rgba(75,157,181,.24); border-color: rgba(160,208,224,.50); color: var(--accent-light);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(75,157,181,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.soc-btn.mp { position: relative; }
.pin-num {
  position: absolute; top: -4px; right: -4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; direction: ltr;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  border: 1.5px solid var(--footer-bg); box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: background .25s ease, transform .25s ease; pointer-events: none;
}
.soc-btn.mp:hover .pin-num { background: #fff; color: var(--brand); transform: scale(1.08); }

/* Powered-by */
.f-powered { margin-top: 28px; }
.f-powered-line { height: 1px; background: rgba(255,255,255,.10); }
.f-powered-content { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 18px; padding-bottom: 4px; flex-direction: column; }
.f-powered-txt { font-size: .68rem; font-weight: 500; letter-spacing: .06em; color: rgba(255,255,255,.72); text-transform: uppercase; }
.f-powered-logo { display: flex; align-items: center; opacity: .88; transition: opacity .2s; }
.f-powered-logo:hover { opacity: 1; }
/* Official LEAP footer mark — already white, so no invert filter (which would
   have flattened its teal accent). */
.f-powered-logo img { height: 34px; width: auto; display: block; }

/* Scroll-to-top */
#stt {
  position: fixed; bottom: 80px; inset-inline-start: 26px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 900;
  opacity: 0; pointer-events: none; transition: all .3s; border: none;
  background: var(--brand); box-shadow: 0 4px 16px rgba(14,33,41,.25);
  color: whitesmoke;
}
#stt.show { opacity: 1; pointer-events: all; }
#stt:hover { transform: translateY(-3px); }
#stt.gold { background: var(--accent); box-shadow: 0 4px 16px rgba(75,157,181,.38); color: #fff; }
#stt.gold:hover { background: var(--accent-600); }

/* Sticky bottom action bar (mobile) */
#sticky-bar {
  display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 950; width: 100%; box-sizing: border-box;
  padding: 10px 5% max(14px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.65); border-top: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 -1px 0 rgba(75,157,181,.14), 0 -8px 32px rgba(14,33,41,.10);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); gap: 10px;
}
.sb-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 10px; border-radius: 12px; text-decoration: none; font-size: .82rem; font-weight: 700; transition: all .2s; min-height: 48px; }
.sb-wa { background: rgba(37,211,102,.92); color: #fff; box-shadow: 0 2px 12px rgba(37,211,102,.30); border: 1px solid rgba(255,255,255,.25); }
.sb-wa:hover { background: rgba(29,174,86,.95); transform: translateY(-1px); }
.sb-mail { background: rgba(14,33,41,.90); color: #fff; box-shadow: 0 2px 12px rgba(14,33,41,.22); border: 1px solid rgba(255,255,255,.12); }
.sb-mail:hover { background: rgba(8,22,27,.94); transform: translateY(-1px); }
.sb-lang { background: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.sb-lang .lang-link { color: whitesmoke; display: flex; align-items: center; }
.sb-lang .lang-link:hover { background: rgba(255,255,255,.14); color: #fff; }

@media (max-width: 1024px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  #sticky-bar { display: flex; }
  .f-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .f-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .f-brand p { text-align: center !important; max-width: 100%; }
  .f-socials { justify-content: center; }
  .f-col ul,
  html[dir="rtl"] .f-col ul { text-align: center; }
  .footer-logo { justify-content: center; margin-bottom: 16px; }
  .footer-logo img { height: 92px; }
  .f-powered-logo img { height: 30px; }
  /* 84px is the no-JS fallback (roughly the sticky bar); footer-ui.js replaces
     it with the real measured height once it runs. */
  footer { padding-bottom: calc(24px + var(--fixed-bottom-h, 84px)); }
  .lp-cookie { bottom: 84px; }       /* clear the mobile sticky bar */
  #stt { bottom: 84px; }             /* lift above the sticky bar */
}
@media (max-width: 700px) { .f-col li::before { content: ''; } }

/* ===== vCard download CTA card ===== */
.vcf-cta {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  margin: 24px 0 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  max-width: 760px;
  box-shadow: 0 10px 30px rgba(14,33,41,.22);
  flex-wrap: wrap;
}
.vcf-cta .vcf-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.vcf-cta .vcf-icon svg { width: 26px; height: 26px; color: #fff; }
.vcf-cta .vcf-text { flex: 1; min-width: 200px; }
.vcf-cta .vcf-text h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #fff; }
.vcf-cta .vcf-text p { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 400; }
.vcf-cta .vcf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 14px; font-weight: 700;
  transition: all .2s ease;
}
.vcf-cta .vcf-btn:hover { background: rgba(255,255,255,.92); transform: translateY(-1px); }
.vcf-cta .vcf-btn svg { width: 16px; height: 16px; }

/* ===== Sitemap ===== */
.sitemap-list { padding: 24px 0 64px; }
.sitemap-list h2 {
  font-size: 14px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent-600);
  font-weight: 700; margin: 28px 0 12px;
}
.sitemap-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sitemap-list a { color: var(--ink); font-weight: 500; }
.sitemap-list a:hover { color: var(--accent-600); text-decoration: underline; }

/* ===== Section heading ===== */
.section-head {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 980px;
  padding: 0 16px;
}
.section-head h2 {
  display: inline-block;
  position: relative;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding-bottom: 14px;
  letter-spacing: -.8px;
  line-height: 1.15;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head h2 .alt { color: var(--text-muted); font-weight: 400; }
.section-head .divider { display: none; }
.section-head > .icon { display: none; }

/* ===== About block ===== */
.about-block {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.about-block p { margin: 0; font-size: 18px; line-height: 1.75; color: var(--text); }
.about-block p + p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* ===== Glass card variant (team directory) ===== */
.section-glass { background: #fff; padding-top: 64px; padding-bottom: 64px; }
.cards-glass .card {
  background: linear-gradient(135deg, rgba(242,249,251,.90) 0%, rgba(255,255,255,.70) 100%);
  border: 1px solid rgba(14,33,41,.07);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(8,22,27,.07), inset 0 1px 0 rgba(255,255,255,.7);
}
.cards-glass .card::before {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 50%, var(--brand) 100%);
  height: 3px;
}
.cards-glass .card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(242,249,251,.88) 100%);
  border-color: rgba(14,33,41,.13);
  box-shadow: 0 18px 40px rgba(8,22,27,.11), inset 0 1px 0 rgba(255,255,255,.9);
}
.cards-glass .card .eyebrow { color: var(--accent-600); letter-spacing: 1.6px; }
.cards-glass .card .cta { color: var(--brand); }

/* People grid — contact-card proportions that stay sane at any headcount
   (one person shouldn't stretch into a full-width slab). */
.cards-people {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  max-width: 1080px;
}
.cards-people .card { padding: 30px 24px; text-align: center; }
.cards-people .card .avatar { margin-inline: auto; }
.cards-people .card .eyebrow { margin-bottom: 10px; }
.cards-people .card .role { margin-bottom: 18px; }
.cards-people .card .cta { display: inline-flex; }
@media (max-width: 600px) { .cards-people { grid-template-columns: minmax(0, 1fr); } }

/* ===== About highlights ===== */
.about-highlights {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
@media (max-width: 767px) { .about-highlights { grid-template-columns: 1fr 1fr; gap: 10px; } }
.about-highlights li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(8,22,27,.03);
}
.about-highlights .hl-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.about-highlights .hl-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.about-highlights li:nth-child(4n+1) .hl-icon { background: var(--brand); }
.about-highlights li:nth-child(4n+2) .hl-icon { background: var(--accent); }
.about-highlights li:nth-child(4n+3) .hl-icon { background: var(--brand-600); }
.about-highlights li:nth-child(4n+4) .hl-icon { background: var(--accent-600); }

/* ===== Profile download CTA ===== */
.profile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 920px;
  margin: 28px auto 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 24px rgba(8,22,27,.14);
}
.profile-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(8,22,27,.22); }
.profile-cta .cta-icon { display: none; }
.profile-cta .cta-text { width: 100%; }
.profile-cta .cta-text h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #fff; }
.profile-cta .cta-text p { margin: 0; font-size: 15px; color: rgba(255,255,255,.78); line-height: 1.55; }
.profile-cta .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 14px; font-weight: 700;
  transition: background .2s ease;
}
.profile-cta:hover .cta-btn { background: var(--accent-light); }
.profile-cta .cta-btn svg { width: 16px; height: 16px; }

/* ===== Services grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 700px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }
.service {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.service-head { position: relative; padding: 28px 26px 18px; background: var(--bg); transition: background .25s ease; }
.service-body {
  padding: 18px 26px 22px;
  background: linear-gradient(135deg, rgba(242,249,251,.85), rgba(220,237,243,.45));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid rgba(14,33,41,.05);
  flex: 1;
  transition: background .25s ease;
}
.service:hover .service-head { background: var(--surface); }
.service:hover .service-body { background: linear-gradient(135deg, rgba(220,237,243,.80), rgba(200,227,237,.55)); }
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
html[dir="rtl"] .service::before { transform-origin: right; }
.service:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.service:hover::before { transform: scaleX(1); }
.service .num {
  position: absolute;
  top: 16px;
  inset-inline-end: 18px;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  font-family: var(--font-en);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14,33,41,.05);
  transition: all .25s ease;
}
.service:hover .num { background: var(--brand); color: #fff; }
.service .icon {
  display: block;
  width: 40px; height: 40px;
  margin: 0 0 18px;
  padding: 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  stroke-width: 1.8;
}
.services-grid .service:nth-child(5n+1) .icon { background: var(--brand); }
.services-grid .service:nth-child(5n+2) .icon { background: var(--accent); }
.services-grid .service:nth-child(5n+3) .icon { background: var(--brand-600); }
.services-grid .service:nth-child(5n+4) .icon { background: var(--accent-600); }
.services-grid .service:nth-child(5n+5) .icon { background: var(--brand-700); }
.service h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
  min-height: 2.8em;
  padding-inline-end: 40px;
  letter-spacing: -.2px;
}
.service-body p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.6; }
.service p + p { margin-top: 6px; }

/* ===== Stat strip (est. / experience / unified national number) ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: 22px auto 0;
  list-style: none;
  padding: 0;
}
.stat-strip li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(8,22,27,.03);
}
.stat-strip .val {
  display: block;
  font-size: 22px; font-weight: 800;
  color: var(--brand);
  line-height: 1.25;
  /* Isolate from surrounding text, but inherit the page direction — forcing LTR
     would scramble mixed values like "1413هـ / 1993م". */
  unicode-bidi: isolate;
}
.stat-strip .lab { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-strip a.val { transition: color .2s ease; }
.stat-strip a.val:hover { color: var(--accent-600); }

/* ===== Profile preview (Company Profile) ===== */
.profile-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 12px 0 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 420px;
  text-align: center;
}
.profile-preview > a:first-child { width: 100%; max-width: 220px; }
.profile-preview .preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 22px rgba(8,22,27,.08);
  margin-inline: auto;
}
.profile-preview .preview-meta { width: 100%; }
.profile-preview .preview-meta h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--ink); }
.profile-preview .preview-meta p { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== Back to top button ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(8,22,27,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, visibility .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top.over-footer { background: #fff; color: var(--ink); border-color: rgba(8,22,27,.10); }
.back-to-top:hover { background: var(--accent-600); }
.back-to-top.over-footer:hover { background: var(--surface); color: var(--ink); }
.back-to-top svg { display: block; }
@media (max-width: 640px) {
  .back-to-top { bottom: 18px; inset-inline-end: 18px; width: 40px; height: 40px; }
  .back-to-top svg { width: 20px; height: 20px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .profile-hero { grid-template-columns: 1fr; gap: 18px; padding: 8px 0 4px; }
  .profile-hero .avatar-lg { width: 96px; height: 96px; font-size: 32px; }
  .profile-body { padding: 40px 0 56px; }
  .section { padding: 40px 0; }
  .hero-dark { padding: 110px 0 40px; }
}

/* ===== Mobile: center all body content (header excluded) ===== */
@media (max-width: 767px) {
  main { text-align: center; }
  main .hero-dark,
  main .section,
  main .profile-body,
  main .container { text-align: center; }
  main .card,
  main .service,
  main .about-block,
  main .about-block p,
  main .profile-cta { text-align: center; }
  main .about-highlights li {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
    padding: 12px 10px;
    font-size: 13px;
  }
  main .about-block { padding: 22px 16px; }
  main .service h3 { padding-inline-end: 0; }
  main .service .icon,
  main .card .avatar,
  main img.avatar,
  main .section-head .icon { margin-inline: auto; }
  main .actions { justify-content: center; }
  main .crumbs { justify-content: center; }
  main .profile-hero,
  main .profile-hero > div { text-align: center; }
  main .profile-hero img.avatar-lg,
  main .profile-hero .avatar-lg { margin-inline: auto; }
  main .tags { justify-content: center; }
  main .card .cta { display: inline-flex; }
  main .cta-text { text-align: center; }
  main .profile-cta { flex-direction: column; }
  main .qr-block { margin-inline: auto; align-items: center; }
  main .profile-body { text-align: center; }
  main .profile-body .bio,
  main .timeline,
  main .timeline li { text-align: center; }
  main .contact-table-wrap { margin-inline: auto; }
  .hero-home .hero-logo { width: min(200px, 56%); padding: 16px; border-radius: 20px; }
}
