/* ==========================================================================
   AZM Alsafwa — design system
   Warm editorial: off-white paper, serif display with italic accents,
   soft cards, bronze from the logo. Logical properties keep RTL mirrored.
   ========================================================================== */

:root {
  /* Brand */
  --bronze: #a0804d;
  --bronze-dk: #84632f;
  --bronze-lt: #d4b98c;
  --steel: #9d9d9d;

  /* Neutrals */
  --ink: #1b1915;
  --ink-2: #26231e;
  --text: #1b1915;
  --body: #56534b;
  --muted: #8a867c;
  --paper: #f5f3ee;
  --card: #fbfaf6;
  --sand: #ddd8cc;
  --line: rgba(27, 25, 21, 0.1);
  --line-inv: rgba(245, 243, 238, 0.14);
  --on-dark: #f5f3ee;
  --on-dark-2: rgba(245, 243, 238, 0.72);
  --on-dark-3: rgba(245, 243, 238, 0.5);

  /* Type */
  --serif: "Newsreader", "Noto Naskh Arabic", Georgia, serif;
  --sans: "Instrument Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(27, 25, 21, 0.04), 0 12px 32px -12px rgba(27, 25, 21, 0.12);
  --shadow-lg: 0 30px 60px -28px rgba(27, 25, 21, 0.35);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

html[lang="ar"] {
  --serif: "Noto Naskh Arabic", "Newsreader", serif;
  --sans: "IBM Plex Sans Arabic", "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--text); margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em, .serif em { font-style: italic; color: var(--bronze-dk); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.45; letter-spacing: 0; font-weight: 500; }
html[lang="ar"] em { font-style: normal !important; }
html[dir="rtl"] .glass__num, html[dir="rtl"] .tile__stat { direction: ltr; text-align: right; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 999px; z-index: 300; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 8px; }
html[dir="rtl"] .i-dir { transform: scaleX(-1); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(80px, 10vw, 136px); }
.pill-label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .pill-label { letter-spacing: 0; font-size: 12.5px; }
.pill-label--glass { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: var(--on-dark-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill-label--dark { background: transparent; border-color: var(--line-inv); color: var(--on-dark-3); }

.head-c { text-align: center; max-width: 680px; margin: 0 auto clamp(44px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; }
.head-c h2, .head-l h2 { margin-top: 18px; font-size: clamp(32px, 3.6vw, 46px); }
.head-c p, .head-l p { margin-top: 16px; font-size: 17px; color: var(--body); max-width: 52ch; }
.head-l h2 { max-width: 14ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg.i-dir { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg.i-dir { transform: scaleX(-1) translateX(3px); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--ink-2); }
.btn--light { background: var(--card); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--glass { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: var(--on-dark); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--line-inv { border-color: var(--line-inv); color: var(--on-dark); }
.btn--line-inv:hover { border-color: var(--on-dark-2); }
.btn--wa { background: #1f9d57; color: #fff; }
.btn--wa:hover { background: #188547; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink); }
.link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
html[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(245, 243, 238, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow 0.3s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo img { height: 32px; width: auto; }
.logo .logo-mark { display: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding-inline: 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--body); background: none; border: 0; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); background: rgba(27, 25, 21, 0.06); }
.nav__link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav__item { position: relative; }
.nav__item:hover > .nav__link svg, .nav__item:focus-within > .nav__link svg { transform: rotate(180deg); }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 420px;
  padding: 8px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
html[dir="rtl"] .mega { translate: 50% 0; }
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; transition: background 0.2s; }
.mega a:hover { background: var(--paper); }
.mega__ic { width: 38px; height: 38px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--bronze-dk); display: grid; place-items: center; }
.mega__ic svg { width: 18px; height: 18px; }
.mega strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--ink); line-height: 1.25; }
.mega small { display: block; font-size: 13px; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color 0.2s; }
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle svg { width: 15px; height: 15px; color: var(--bronze); }
.header .btn { height: 38px; padding-inline: 18px; font-size: 14px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; place-items: center; color: var(--ink); }
.menu-btn svg { width: 20px; height: 20px; }

.drawer { position: fixed; inset: 0; z-index: 200; background: var(--paper); padding: 0 var(--gutter) 40px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; overflow-y: auto; }
.drawer.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.drawer__top img { height: 30px; width: auto; }
.drawer .menu-btn { display: grid; }
.drawer nav { display: flex; flex-direction: column; margin-top: 20px; }
.drawer nav a { font-family: var(--serif); font-size: 30px; color: var(--ink); padding-block: 8px; }
.drawer nav a.sub { font-family: var(--sans); font-size: 15px; color: var(--muted); padding-inline-start: 4px; padding-block: 5px; }
.drawer .btn { margin-top: 32px; align-self: flex-start; }

/* ---------- Hero (inset image card) ---------- */
.hero { padding-top: 8px; }
.hero__card {
  position: relative;
  min-height: min(720px, calc(100svh - 100px));
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  background: var(--ink);
}
.hero__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 20, 12, 0.15) 0%, rgba(27, 20, 12, 0.35) 45%, rgba(27, 20, 12, 0.82) 100%), linear-gradient(90deg, rgba(40, 26, 12, 0.55), rgba(40, 26, 12, 0) 65%); }
html[dir="rtl"] .hero__card::before { background: linear-gradient(180deg, rgba(27, 20, 12, 0.15) 0%, rgba(27, 20, 12, 0.35) 45%, rgba(27, 20, 12, 0.82) 100%), linear-gradient(270deg, rgba(40, 26, 12, 0.55), rgba(40, 26, 12, 0) 65%); }
.hero__inner { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: clamp(28px, 5vw, 56px); }
.hero__text { max-width: 600px; }
.hero h1 { color: var(--on-dark); margin-top: 20px; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 em { color: var(--on-dark); }
html[lang="ar"] .hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.35; }
.hero__sub { margin-top: 22px; font-size: 17px; color: var(--on-dark-2); max-width: 44ch; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

.glass {
  flex: none;
  width: 290px;
  padding: 20px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.glass__row { display: flex; align-items: center; gap: 12px; }
.glass__row img { width: 44px; height: auto; }
.glass__row span { font-size: 13px; line-height: 1.4; color: var(--on-dark-2); }
.glass__num { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; }
html[lang="ar"] .glass__num { font-style: normal; }
.glass__label { margin-top: 6px; font-size: 13px; color: var(--on-dark-2); }
.glass__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--on-dark-2); }
.glass__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze-lt); box-shadow: 0 0 0 4px rgba(212, 185, 140, 0.2); }

/* Hero slider: one slide per service */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__card--slider { flex-direction: column; justify-content: flex-end; align-items: stretch; --slide-ms: 6500ms; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.hero__media img.is-active { opacity: 1; transform: scale(1); transition: opacity 1.2s var(--ease), transform 8s linear; }
.slides { display: grid; max-width: 620px; }
.slide { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.8s var(--ease) 0.25s, transform 0.8s var(--ease) 0.25s, visibility 0s; }
.slide__title { color: var(--on-dark); margin-top: 20px; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -0.025em; }
.slide__title em { color: var(--on-dark); }
html[lang="ar"] .slide__title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.35; letter-spacing: 0; }
.hero__card--slider .hero__inner { padding-bottom: 28px; }
.hero__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 clamp(28px, 5vw, 56px) clamp(22px, 3vw, 32px); }
.hero__tab { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 14px 0 0; border: 0; background: none; color: var(--on-dark-3); text-align: start; font-size: 13.5px; font-weight: 500; transition: color 0.3s; }
.hero__tab:hover, .hero__tab.is-active { color: var(--on-dark); }
.hero__bar { grid-column: 1 / -1; grid-row: 1; height: 2px; margin-bottom: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); overflow: hidden; position: relative; }
.hero__bar::after { content: ""; position: absolute; inset: 0; background: var(--bronze-lt); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .hero__bar::after { transform-origin: right; }
.hero__tab.is-done .hero__bar::after { transform: scaleX(1); opacity: 0.55; }
.hero__tab.is-active .hero__bar::after { animation: bar-fill var(--slide-ms) linear forwards; }
.hero__card--slider.is-paused .hero__tab.is-active .hero__bar::after { animation-play-state: paused; }
.hero__tab-n { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--bronze-lt); }
html[lang="ar"] .hero__tab-n { font-style: normal; }
.hero__tab-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes bar-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__tab.is-active .hero__bar::after { transform: scaleX(1); }
}

/* ---------- Keyword ticker ---------- */
.ticker { overflow: hidden; padding-block: 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; width: max-content; animation: tick 60s linear infinite; }
html[dir="rtl"] .ticker__track { animation-name: tick-rtl; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__group span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); white-space: nowrap; }
html[lang="ar"] .ticker__group span { font-style: normal; }
.ticker__group span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sand); }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes tick-rtl { to { transform: translateX(50%); } }

/* ---------- Position statement ---------- */
.statement { text-align: center; max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.statement blockquote { margin: 26px 0 0; font-family: var(--serif); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
html[lang="ar"] .statement blockquote { line-height: 1.6; letter-spacing: 0; }
.statement blockquote em { font-style: italic; color: var(--bronze-dk); }
.statement cite { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; font-style: normal; font-size: 13px; color: var(--muted); }
.statement cite::before { content: ""; width: 24px; height: 1px; background: var(--muted); }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(27, 25, 21, 0.04), 0 24px 44px -18px rgba(27, 25, 21, 0.2); }
.svc--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0; overflow: hidden; }
.svc--wide .svc__content { padding: 30px; display: flex; flex-direction: column; }
.svc--wide img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.svc__top { display: flex; justify-content: space-between; align-items: center; }
.svc__ic { color: var(--bronze-dk); }
.svc__ic svg { width: 22px; height: 22px; }
.svc__n { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--bronze-dk); }
.svc h3 { margin-top: 26px; font-size: 26px; }
.svc p { margin-top: 12px; font-size: 15.5px; color: var(--body); max-width: 52ch; }
.svc__meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.svc__meta b { color: var(--bronze-dk); font-weight: 500; }
.svc .link { margin-top: auto; padding-top: 22px; }
.center-link { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Service photo cards (carousel) ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.rail-head .head-l h2 { max-width: none; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-btn { width: 52px; height: 52px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow); color: var(--ink); display: grid; place-items: center; transition: opacity 0.25s, background 0.25s; }
.rail-btn:hover { background: #fff; }
.rail-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.rail-btn svg { width: 18px; height: 18px; }
.rail {
  --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((min(100vw, var(--container)) - 2 * var(--gutter) - 2 * 20px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  padding-inline: var(--rail-pad);
  padding-bottom: 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.photo-card {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 4 / 4.7;
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.4vw, 34px);
}
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 8, 5, 0.5) 0%, rgba(10, 8, 5, 0.05) 30%, rgba(10, 8, 5, 0.1) 45%, rgba(10, 8, 5, 0.92) 100%); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.photo-card h3 { font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 2vw, 27px); line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.photo-card__go svg { width: 26px; height: 26px; transition: transform 0.35s var(--ease); }
.photo-card:hover .photo-card__go svg { transform: translate(3px, -3px); }
html[dir="rtl"] .photo-card__go svg { transform: scaleX(-1); }
html[dir="rtl"] .photo-card:hover .photo-card__go svg { transform: scaleX(-1) translate(3px, -3px); }
.photo-card p { font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, 0.92); max-width: 34ch; }

/* ---------- Bento (the company) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.tile { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.tile--span2 { grid-column: span 2; }
.tile--img { padding: 0; background: var(--ink); color: var(--on-dark); justify-content: flex-end; isolation: isolate; }
.tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 20, 12, 0) 40%, rgba(27, 20, 12, 0.7)); }
.tile--img .tile__in { padding: 26px; }
.tile--img .big-letter { position: absolute; top: 22px; inset-inline-start: 26px; font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--on-dark); }
.tile h3 { margin-top: auto; padding-top: 28px; font-size: 24px; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--body); max-width: 40ch; }
.tile__stat { font-family: var(--serif); font-size: clamp(56px, 6vw, 80px); line-height: 0.9; color: var(--bronze-dk); letter-spacing: -0.03em; }
.tile__stat sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.15em; }
.dots { display: flex; gap: 5px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--bronze); }
.dots-label { margin-top: 10px; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); background: var(--paper); }
.chip svg { width: 14px; height: 14px; color: var(--bronze-dk); }
.cities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cities div { display: grid; gap: 8px; }
.cities div::before { content: ""; height: 5px; border-radius: 3px; background: var(--bronze); }
.cities div:nth-child(2)::before { background: #b39466; }
.cities div:nth-child(3)::before { background: #c4a983; }
.cities div:nth-child(4)::before { background: #d3c2a5; }
.cities div:nth-child(5)::before { background: var(--sand); }
.cities span { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .cities span { letter-spacing: 0; font-size: 12.5px; }

/* ---------- Dark sectors ---------- */
.dark-card { border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 480px; position: relative; isolation: isolate; }
.dark-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 100% 0%, rgba(160, 128, 77, 0.22), transparent 70%); }
.dark-card__text { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; }
.dark-card h2 { color: var(--on-dark); margin-top: 18px; font-size: clamp(32px, 3.6vw, 46px); }
.dark-card h2 em { color: var(--bronze-lt); }
.dark-card p { margin-top: 14px; color: var(--on-dark-2); max-width: 40ch; }
.dark-card .btn { margin-top: 28px; align-self: flex-start; }
.roll { position: relative; min-height: 480px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.roll__track { position: absolute; inset-inline: 0; top: 0; display: flex; flex-direction: column; animation: roll 26s linear infinite; }
.roll__group { display: flex; flex-direction: column; padding-inline: clamp(24px, 4vw, 48px); }
.roll__group span { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.32; color: var(--on-dark-3); white-space: nowrap; }
.roll__group span:nth-child(odd) { font-style: italic; color: var(--on-dark); }
html[lang="ar"] .roll__group span { font-style: normal; line-height: 1.7; }
@keyframes roll { to { transform: translateY(-50%); } }

/* ---------- Projects (stacked) ---------- */
.stack { display: grid; gap: 24px; }
.case { position: sticky; top: 100px; display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(24px, 4vw, 48px); padding: 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-lg); }
.case:nth-child(2) { top: 116px; }
.case:nth-child(3) { top: 132px; }
.case:nth-child(4) { top: 148px; }
.case img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 14px; }
.case__body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }
html[dir="rtl"] .case__body { padding: 24px 0 24px 24px; }
.case__meta { font-size: 13px; color: var(--muted); }
.case h3 { margin-top: 14px; font-size: clamp(28px, 3vw, 38px); max-width: 14ch; }
.case p { margin-top: 14px; color: var(--body); max-width: 42ch; }
.case__foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.case__foot b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--bronze-dk); }
.case__foot small { font-size: 13px; color: var(--muted); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--bronze-dk); transition: background 0.25s, color 0.25s; }
.round-btn svg { width: 16px; height: 16px; transform: rotate(-45deg); }
html[dir="rtl"] .round-btn svg { transform: rotate(-135deg); }
.case:hover .round-btn { background: var(--ink); color: var(--on-dark); }

/* ---------- Timeline (sticky aside) ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split__aside { position: sticky; top: 120px; }
.split__aside .link, .split__aside .btn { margin-top: 26px; }
.timeline { position: relative; display: grid; gap: 44px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 40px; width: 1px; background: var(--sand); }
.t-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 22px; }
.t-item__n { width: 40px; height: 40px; border-radius: 50%; background: var(--bronze-dk); color: var(--on-dark); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 15px; }
html[lang="ar"] .t-item__n { font-style: normal; }
.t-item small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-dk); }
html[lang="ar"] .t-item small { letter-spacing: 0; font-size: 12.5px; }
.t-item h3 { margin-top: 4px; font-size: 26px; }
.t-item p { margin-top: 8px; color: var(--body); max-width: 46ch; }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.client { padding: 26px 24px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; }
.client__ic { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--bronze-dk); }
.client__ic svg { width: 18px; height: 18px; }
.client b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); line-height: 1.25; }
.client small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- CTA dark card ---------- */
.cta { border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 0% 100%, rgba(160, 128, 77, 0.28), transparent 70%); }
.cta h2 { color: var(--on-dark); margin-top: 20px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; }
.cta h2 em { color: var(--bronze-lt); }
.cta p { margin-top: 18px; color: var(--on-dark-2); max-width: 44ch; }
.cta .hero__ctas { margin-top: 30px; }
.next { border-radius: var(--r); border: 1px solid var(--line-inv); background: rgba(255, 255, 255, 0.04); padding: 8px 22px; }
.next__title { padding-block: 16px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
html[lang="ar"] .next__title { letter-spacing: 0; font-size: 12.5px; }
.next a, .next div.row { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line-inv); }
.next em { font-family: var(--serif); font-size: 22px; color: var(--bronze-lt); min-width: 28px; }
html[lang="ar"] .next em { font-style: normal; }
.next small { display: block; font-size: 12px; color: var(--on-dark-3); }
.next b { font-weight: 500; color: var(--on-dark); }

/* ---------- Footer ---------- */
.footer { margin: 0 8px 8px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark-2); overflow: hidden; position: relative; isolation: isolate; font-size: 14.5px; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 50% 110%, rgba(160, 128, 77, 0.35), transparent 70%); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: clamp(56px, 7vw, 88px); }
.footer__brand img { height: 34px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 34ch; }
.footer h4 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 18px; }
html[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 13px; }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--on-dark); }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact svg { width: 16px; height: 16px; margin-top: 3px; color: var(--bronze-lt); }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; }
.socials a:hover { background: rgba(255, 255, 255, 0.08); }
.socials svg { width: 16px; height: 16px; }
.footer__legal { margin-top: clamp(48px, 6vw, 72px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 26px; font-size: 13px; color: var(--on-dark-3); border-top: 1px solid var(--line-inv); }
.footer__legal nav { display: flex; gap: 20px; }

.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #1f9d57; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(31, 157, 87, 0.75); transition: transform 0.25s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 26px; height: 26px; }

/* ==========================================================================
   Service page
   ========================================================================== */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-2); flex-wrap: wrap; }
.crumbs a:hover { color: var(--on-dark); }
.crumbs svg { width: 13px; height: 13px; }
.crumbs [aria-current] { color: var(--on-dark); }
.hero--page .hero__card { min-height: min(620px, calc(100svh - 100px)); }
.hero--page .pill-label { margin-top: 22px; }

.partner-row { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.partner-chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding-inline: 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 500; color: var(--ink); font-size: 15px; }
.partner-chip img { height: 18px; width: auto; }
.partner-x { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }
.aqua-dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #1b6fa8, #59c0e0); }

.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol-grid .svc h3 { font-size: 23px; }

/* Treatment flow (dark) */
.flow-card { border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.flow-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 100% 0%, rgba(160, 128, 77, 0.22), transparent 70%); }
.flow-card .head-l h2 { color: var(--on-dark); max-width: 18ch; }
.flow-card .head-l h2 em { color: var(--bronze-lt); }
.flow-card .head-l p { color: var(--on-dark-2); }
.flow { margin-top: 48px; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line-inv); }
.flow li { padding: 22px 14px 0 0; border-inline-end: 1px solid var(--line-inv); display: flex; flex-direction: column; gap: 10px; min-height: 170px; }
html[dir="rtl"] .flow li { padding: 22px 0 0 14px; }
.flow li:not(:first-child) { padding-inline-start: 14px; }
.flow li:last-child { border-inline-end: 0; }
.flow__abbr { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--on-dark); }
.flow li:first-child .flow__abbr, .flow li:last-child .flow__abbr { font-style: italic; color: var(--bronze-lt); }
html[lang="ar"] .flow__abbr { font-style: normal !important; font-size: 24px; }
.flow__step { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
html[lang="ar"] .flow__step { letter-spacing: 0; font-size: 12.5px; }
.flow__name { margin-top: auto; padding-bottom: 4px; font-size: 14px; color: var(--on-dark-2); line-height: 1.45; }
.reuse { margin-top: 36px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-2); }
.reuse > span:not(:first-child) { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line-inv); color: var(--on-dark); }
.reuse svg { width: 14px; height: 14px; color: var(--bronze-lt); }

.ind-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.3; }
.ind span:first-child { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--bronze-dk); flex: none; }
.ind svg { width: 18px; height: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.faq .pm svg { width: 15px; height: 15px; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--body); max-width: 64ch; }

/* Quote form */
.quote { border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); padding: 16px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 16px; position: relative; overflow: hidden; isolation: isolate; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 0% 100%, rgba(160, 128, 77, 0.3), transparent 70%); }
.quote__aside { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; }
.quote__aside h2 { color: var(--on-dark); margin-top: 20px; font-size: clamp(32px, 3.4vw, 44px); }
.quote__aside h2 em { color: var(--bronze-lt); }
.quote__aside > p { margin-top: 14px; color: var(--on-dark-2); }
.quote__aside .next { margin-top: auto; }
.quote form { border-radius: var(--r); background: var(--card); color: var(--body); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); background: #fff; }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(27, 25, 21, 0.25); color: var(--muted); font-size: 14px; cursor: pointer; }
.file-drop:hover { border-color: var(--bronze); }
.file-drop svg { width: 20px; height: 20px; color: var(--bronze-dk); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.form-success { grid-column: 1 / -1; display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #e9f3ea; color: #24603a; font-weight: 500; }
.form-success svg { width: 18px; height: 18px; }
.form-success.is-visible { display: flex; }

/* Related */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rel { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; transition: transform 0.35s var(--ease); }
.rel:hover { transform: translateY(-4px); }
.rel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.rel h3 { padding: 16px 8px 4px; font-size: 20px; }
.rel .link { padding: 0 8px 8px; font-size: 14px; color: var(--bronze-dk); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.07s; } .d2 { transition-delay: 0.14s; } .d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 960px) {
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .glass { width: 100%; max-width: 420px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--span2 { grid-column: 1 / -1; }
  .dark-card { grid-template-columns: 1fr; }
  .roll { min-height: 300px; }
  .case { grid-template-columns: 1fr; position: relative; top: 0 !important; }
  .case__body, html[dir="rtl"] .case__body { padding: 8px 12px 12px; }
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .cta, .quote { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .sol-grid, .ind-list, .clients { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: calc((100vw - 2 * var(--gutter) - 20px) / 2); }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li:nth-child(5) { border-inline-start: 0; padding-inline-start: 0; }
  .flow li:nth-child(4) { border-inline-end: 0; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header__inner { height: 64px; }
  .logo .logo-full { display: none; }
  .logo .logo-mark { display: block; height: 30px; }
  .header .btn { display: none; }
  .hero { padding-top: 4px; }
  .hero > .container { padding-inline: 8px; }
  .hero__card { min-height: 640px; border-radius: 22px; }
  .hero__inner { padding: 24px 20px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__tabs { gap: 8px; padding-inline: 20px; }
  .hero__tab-t { display: none; }
  .hero__card--slider .glass { display: none; }
  .svc-grid, .bento, .sol-grid, .ind-list, .clients { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 82vw; gap: 12px; }
  .rail-btn { width: 44px; height: 44px; }
  .svc--wide { grid-template-columns: 1fr; gap: 0; }
  .svc--wide img { min-height: 200px; }
  .svc { padding: 24px; }
  .tile--span2 { grid-column: auto; }
  .cities { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .quote form { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li, html[dir="rtl"] .flow li { min-height: 130px; padding-inline: 0 12px !important; border-inline-start: 0 !important; }
  .flow li:nth-child(odd) { border-inline-end: 1px solid var(--line-inv) !important; }
  .flow li:nth-child(even) { border-inline-end: 0 !important; padding-inline-start: 14px !important; }
  .related { grid-template-columns: 1fr 1fr; }
  .rel h3 { font-size: 16px; }
  .faq summary { font-size: 18px; padding: 18px 20px; }
}
