/* ==========================================================================
   Sadeema — frontend design system
   One stylesheet, logical properties throughout so RTL/LTR share every rule.
   ========================================================================== */

:root {
  --ink: #171b1f;
  --ink-2: #1d2327;
  --ink-3: #252d32;
  /* Brand = logo colour; shades derived from it (AA contrast checked for text/buttons). */
  --brand: #bf4a2d;
  --brand-rgb: 191, 74, 45;
  --brand-600: #a8412a;
  --brand-400: #e07a5c;
  --brand-50: #faf1ed;
  --brand-100: #f3dfd7;
  --bg: #f7f6f4;
  --surface: #ffffff;
  --line: #e8e3de;
  --text: #1f2a30;
  --muted: #5f6d74;
  --on-dark: #eeebe8;
  --on-dark-muted: #b4bcc0;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 27, .06), 0 2px 8px rgba(20, 24, 27, .04);
  --shadow: 0 10px 30px -12px rgba(20, 24, 27, .18);
  --shadow-lg: 0 24px 60px -20px rgba(20, 24, 27, .28);
  --shadow-brand: 0 10px 24px -12px rgba(var(--brand-rgb), .38);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 72px;

  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.3; font-weight: 800; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--white { background: var(--surface); }
.section--tint { background: linear-gradient(180deg, var(--brand-50) 0%, var(--bg) 100%); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 992px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-start { grid-template-columns: 1.1fr .9fr; }
}

.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: .875rem; font-weight: 700; letter-spacing: .02em;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: var(--brand-400); }

.h-display { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.25; letter-spacing: -.01em; }
.h-section { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.h-card { font-size: 1.2rem; margin-bottom: .4em; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); line-height: 1.9; }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head--row > div { max-width: 640px; }
.section-head .lead { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background-image: linear-gradient(180deg, #c8573a, var(--brand) 55%, var(--brand-600)); box-shadow: var(--shadow-brand); }
.btn--primary:hover { box-shadow: 0 16px 34px -10px rgba(var(--brand-rgb), .42); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: rgba(var(--brand-rgb), .22); }
.btn--outline:hover { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-600); }
.btn--white:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .925rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--on-dark);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would become
   the containing block for the fixed mobile menu and clip it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 24, 27, .94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header__bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Max box instead of a fixed height (logos often carry transparent padding): wide wordmark ~ 230x61, square icon 60x60. */
.brand img { display: block; width: auto; height: auto; max-width: min(230px, 46vw); max-height: 62px; object-fit: contain; }
@media (max-width: 991.98px) { .brand img { max-width: min(180px, 44vw); max-height: 52px; } }
.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .975rem; color: var(--on-dark-muted);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font-size: .9rem; font-weight: 700; color: var(--on-dark);
  transition: background-color .2s, border-color .2s;
}
.lang-switch:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.lang-switch .icon { width: 16px; height: 16px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
  background: transparent; color: #fff;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--menu { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }
.nav__cta { display: none; }

@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0;
    margin: 0; padding: 20px var(--gutter) 32px;
    background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 16px; border-radius: 12px; font-size: 1.1rem; }
  .nav__link.is-active { background: rgba(255, 255, 255, .06); }
  .nav__link.is-active::after { inset-inline: auto 16px; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .nav__cta { display: block; margin-top: 16px; }
  .nav__cta .btn { width: 100%; }
  .nav-open { overflow: hidden; }
  .header-actions { margin-inline-start: auto; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(48px, 8vw, 112px) clamp(64px, 9vw, 128px);
  color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 85% 80%, rgba(var(--brand-rgb), .24), transparent 65%),
    radial-gradient(600px 260px at 30% 0%, rgba(var(--brand-rgb), .10), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 45%, var(--ink-3) 100%);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(900px 520px at 15% 80%, rgba(var(--brand-rgb), .24), transparent 65%),
    radial-gradient(600px 260px at 70% 0%, rgba(var(--brand-rgb), .10), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 45%, var(--ink-3) 100%);
}
.hero::before {
  /* subtle dot grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 992px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__wordmark { width: min(220px, 60%); margin-bottom: 20px; opacity: .95; }
.hero__title { color: #fff; margin-bottom: 18px; }
.hero__text { max-width: 34rem; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.95; color: var(--on-dark-muted); margin-bottom: 32px; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual::before {
  content: ""; position: absolute; inset: 10% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .26), transparent 70%);
  filter: blur(20px);
}
.hero__visual img { width: min(100%, 560px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding: 0; list-style: none; color: var(--on-dark-muted); font-size: .95rem; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon { width: 18px; height: 18px; color: var(--brand-400); }
@media (max-width: 991.98px) {
  .hero__visual { order: -1; }
  .hero__visual img { width: min(100%, 400px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(48px, 7vw, 96px);
  color: var(--on-dark);
  background:
    radial-gradient(700px 360px at 90% 120%, rgba(var(--brand-rgb), .22), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%);
}
[dir="rtl"] .page-hero {
  background:
    radial-gradient(700px 360px at 10% 120%, rgba(var(--brand-rgb), .22), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero__inner { display: grid; gap: 16px 64px; align-items: end; }
@media (min-width: 992px) { .page-hero__inner--split { grid-template-columns: 1.1fr .9fr; } }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0; }
.page-hero p { color: var(--on-dark-muted); font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.9; margin: 0; max-width: 40rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 0; list-style: none; font-size: .9rem; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .25); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 28px); }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16 / 10; background: var(--brand-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card--hover:hover .card__media img { transform: scale(1.05); }
.card__text { color: var(--muted); margin-bottom: 0; }
.card__footer { margin-top: auto; padding-top: 18px; }

.icon-tile {
  display: grid; place-items: center; flex-shrink: 0;
  width: 64px; height: 64px; margin-bottom: 20px; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  border: 1px solid rgba(var(--brand-rgb), .12);
}
.icon-tile img { width: 38px; height: 38px; object-fit: contain; }
.icon-tile .icon { width: 28px; height: 28px; color: var(--brand); }

/* Service card */
.service-card .card__body { padding: clamp(24px, 2.6vw, 32px); }
.service-card::before {
  content: ""; position: absolute; inset-inline: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  transform: scaleX(.25); transform-origin: var(--origin, left); transition: transform .4s var(--ease);
}
[dir="rtl"] .service-card::before { --origin: right; }
.service-card:hover::before { transform: scaleX(1); }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 4); overflow: hidden; }
.clamp.is-open { -webkit-line-clamp: unset; display: block; }
.clamp p { margin: 0; }
.more-toggle { padding: 0; border: 0; background: none; }
.more-toggle .icon { transition: transform .25s var(--ease); }
.more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Step card */
.step-list { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.step:hover { border-color: rgba(var(--brand-rgb), .3); box-shadow: var(--shadow); transform: translateX(var(--nudge, 4px)); }
[dir="rtl"] .step:hover { --nudge: -4px; }
.step__num {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.step:hover .step__num { background: var(--brand); }
.step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* Media frame */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--brand-50); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--accent::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.media-stack { position: relative; padding-block-end: 32px; padding-inline-end: 32px; }
.media-stack::before {
  content: ""; position: absolute; inset-block: 32px 0; inset-inline: 32px 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); border: 1px solid rgba(var(--brand-rgb), .15);
}

/* Post card */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--chip, var(--brand)); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.6;
}
.post-card .chip { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.post-card .h-card { transition: color .2s; }
.post-card:hover .h-card { color: var(--brand); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: .875rem; margin-bottom: 10px; }
.meta .icon { width: 16px; height: 16px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Case card */
/* Case-study images are often client logos, so show them whole on a soft backdrop. */
.case-card .card__media { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #fff, var(--brand-50)); border-bottom: 1px solid var(--line); }
.case-card .card__media img { object-fit: contain; padding: clamp(16px, 3vw, 32px); }
.case-card .card__text { --lines: 3; }

/* Team card */
.team-card { text-align: center; }
.team-card .card__media { aspect-ratio: 1 / 1; }
.team-card__role { color: var(--brand); font-weight: 700; font-size: .925rem; margin-bottom: 8px; }

/* Stat card */
.stat { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; color: #fff; }
.stat__num span { color: var(--brand-400); }
.stat__label { color: var(--on-dark-muted); margin-top: 6px; }

/* Timeline (about story) */
.timeline { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; }
.timeline li { position: relative; padding: 24px; padding-top: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: 0; inset-inline: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.timeline__year { font-size: 1.6rem; font-weight: 800; color: var(--brand); line-height: 1.2; }
.timeline h3 { font-size: 1.05rem; margin: 8px 0 0; }

/* ---------- Partners ---------- */
.partners { padding-block: clamp(40px, 6vw, 64px); background: var(--surface); border-bottom: 1px solid var(--line); }
.collab { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 32px; color: var(--muted); font-weight: 700; }
.collab__logo {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 10px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.collab__logo img { max-height: 100%; width: auto; object-fit: contain; }
.collab__line { flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.collab__line:last-child { background: linear-gradient(90deg, var(--line), transparent); }

.marquee {
  --gap: clamp(32px, 5vw, 64px);
  display: flex; overflow: hidden; user-select: none; gap: var(--gap);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; flex-shrink: 0; align-items: center; justify-content: space-around; gap: var(--gap); min-width: 100%;
  list-style: none; padding: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__track img { height: 64px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.marquee__track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@keyframes marquee-rtl { to { transform: translateX(calc(100% + var(--gap))); } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c65638 0%, var(--brand) 45%, #9a3a24 100%);
  color: #fff; box-shadow: var(--shadow-brand);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
}
.cta-band::before { width: 340px; height: 340px; inset-inline-end: -90px; top: -160px; }
.cta-band::after { width: 220px; height: 220px; inset-inline-end: 120px; bottom: -150px; background: rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 40rem; }
.cta-band__content { display: flex; align-items: center; gap: 20px; flex: 1 1 420px; }
.cta-band__icon { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .16); }
.cta-band__icon .icon { width: 30px; height: 30px; }
@media (max-width: 575.98px) { .cta-band__icon { display: none; } .cta-band .btn { width: 100%; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  font-size: 1rem; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: #9aa5ab; }
.input:hover { border-color: #d9cfc7; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
.input:user-invalid { border-color: #d93025; }
select.input {
  padding-inline-end: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235f6d74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] select.input { background-position: left 14px center; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 576px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-error { color: #d93025; font-size: .85rem; margin: 0; }
.ltr-input { direction: ltr; }
[dir="rtl"] .ltr-input { text-align: right; }


/* ---------- Contact ---------- */
.contact-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.contact-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 28px 0; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
a.contact-item:hover { border-color: rgba(var(--brand-rgb), .35); box-shadow: var(--shadow-sm); }
.contact-item__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.contact-item__label { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.contact-item__value { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark);
  font-size: 1.05rem; transition: background-color .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.social--light a { background: var(--surface); border-color: var(--line); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(var(--brand-rgb), .3); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex-shrink: 0; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--brand-50); color: var(--brand); transition: transform .25s var(--ease), background-color .2s, color .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__answer { padding: 0 22px 20px; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }

/* ---------- Blog ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; list-style: none; padding: 0; }
.filter-bar a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .925rem; color: var(--muted);
  transition: all .2s;
}
.filter-bar a:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pager { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }

.article-header { max-width: 820px; margin-inline: auto; text-align: center; }
.article-header h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.article-header .meta { justify-content: center; color: var(--on-dark-muted); }
.article-cover { max-width: 1000px; margin: calc(var(--section-y) * -0.6) auto 0; position: relative; z-index: 2; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--brand-50); }
.page-hero--article { padding-bottom: calc(var(--section-y) * 1.1); }

.prose { font-size: 1.075rem; line-height: 2; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; margin-bottom: .4em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose p { margin: 0; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-inline-start: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
[dir="rtl"] .prose blockquote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-dark); direction: ltr; }
.prose iframe, .prose video { max-width: 100%; }

  display: grid; gap: 20px 40px; align-items: center; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg); background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate;
}

/* ---------- Certificates ---------- */
.cert-card { display: block; padding: 20px; text-align: center; }
.cert-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 16px; }
.cert-card h3 { font-size: 1.05rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; inset-inline-start: -300px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), .10), transparent 70%); }
.footer-grid { display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
/* Max box instead of a fixed height: fits a wide wordmark (~240x63) or a square icon (72x72). */
.footer-logo { display: block; width: auto; height: auto; max-width: min(240px, 72vw); max-height: 72px; object-fit: contain; margin-bottom: 6px; }
@media (max-width: 639.98px) { .footer-logo { max-width: min(200px, 60vw); max-height: 60px; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer p { font-size: .95rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; list-style: none; padding: 0; }
.footer-links a { font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 14px; list-style: none; padding: 0; }
.footer-contact a, .footer-contact span { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #fff; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--brand-400); }
.footer-docs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.footer-doc {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; transition: border-color .2s, color .2s;
}
[dir="rtl"] .footer-doc { padding: 8px 8px 8px 16px; }
.footer-doc:hover { border-color: rgba(255, 255, 255, .25); color: #fff; }
.footer-doc img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
  transition: transform .2s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab i { font-size: 28px; }
.whatsapp-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 14px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); pointer-events: auto; font-weight: 600;
  animation: toast-in .3s var(--ease);
}
.toast .icon { color: #4ade80; }
.toast--error .icon { color: #f87171; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Empty state ---------- */
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found__code {
  font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero__visual img { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-12px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

/* ---------- Small utilities used by views ---------- */
.pt-0 { padding-top: 0 !important; }
.btn-row--center { justify-content: center; margin-top: 24px; }
[dir="ltr"] .icon--back { transform: scaleX(-1); }
.article-body { padding-top: clamp(40px, 5vw, 64px); }
.article-lead { font-size: 1.2rem; line-height: 1.9; font-weight: 600; color: var(--ink); margin-bottom: 1.5em; }

/* Editor (TinyMCE) HTML inside designed blocks */
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .8em; }
.rich ul, .rich ol { padding-inline-start: 1.3em; margin-bottom: .8em; }
.rich a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.hero__text.rich { margin-bottom: 32px; }
.hero__text.rich p { color: inherit; }
.page-hero__text { color: var(--on-dark-muted); font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.9; max-width: 40rem; }
.page-hero__text a { color: #fff; }
.cta-band .h2-rich, .cta-band .h2-rich * { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 800; line-height: 1.4; margin: 0; }

/* Honeypot: kept in the DOM for bots, invisible and unreachable for people */
.hp-field { position: absolute !important; 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; opacity: 0; pointer-events: none; }
.cf-turnstile { min-height: 65px; }

/* ---------- Detail pages (service / case study) ---------- */
.detail-layout { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 992px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.detail-main { min-width: 0; }
.icon-tile--lg { width: 88px; height: 88px; border-radius: 24px; margin-bottom: 28px; }
.icon-tile--lg img { width: 56px; height: 56px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-dark-muted); box-shadow: var(--shadow); }
.aside-card .h-card { color: #fff; }
.aside-card p { margin-bottom: 20px; }
.case-cover { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #fff, var(--brand-50)); aspect-ratio: 16 / 9; }
.case-cover img { display: block; width: 100%; height: 100%; object-fit: contain; padding: clamp(20px, 4vw, 48px); }

/* Links on dark surfaces use the lighter brand shade (AA contrast on --ink). */
.site-footer .link-arrow, .page-hero a.link-arrow, .aside-card .link-arrow { color: var(--brand-400); }

/* Header on small laptops (992–1199px): keep every nav label on one line. */
.nav__link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header__bar { gap: 12px; }
  .brand img { max-width: 170px; max-height: 52px; }
  .nav__list { gap: 0; }
  .nav__link { padding-inline: 9px; font-size: .925rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding-inline: 14px; }
}
