@import url("tokens.css");

/* Cloud Markets corporate site.
   Mercato blue family only. No rules, dividers or hairlines anywhere:
   separation comes from space, scale and surface tone. Logical properties
   throughout so the Arabic (RTL) default and the English mirror share one
   stylesheet. */

:root {
  --font: "Rubik", var(--font-family-arabic), system-ui, sans-serif;

  --ink: var(--color-black-oud-950);          /* #181C22 primary text */
  --ink-2: var(--color-black-oud-700);        /* body copy */
  --ink-3: var(--color-black-oud-600);        /* quiet notes, still AA */
  --bg: #fafbfd;                              /* near-white canvas */
  --surface: var(--color-black-oud-50);       /* #F1F3F7 panels */
  --surface-blue: var(--color-dodger-blue-100);
  --blue: var(--brand-primary);               /* #1B79F5 */
  --blue-hover: var(--brand-primary-hover);
  --blue-ink: var(--color-dodger-blue-700);   /* text-size blue, AA on light */
  --blue-soft: var(--color-dodger-blue-300);
  --navy: var(--color-dodger-blue-950);       /* #0F1C2F */
  --navy-2: var(--color-dodger-blue-900);
  --navy-3: var(--color-dodger-blue-800);
  --on-navy: #ffffff;
  --on-navy-2: rgba(255, 255, 255, 0.72);
  --danger: var(--color-red-ribbon-600);
  --studio: #adaca6;                          /* the headshot backdrop */
  --scrim: 15, 28, 47;                        /* navy-950 as rgb */

  --r-lg: 28px;
  --r-md: 14px;
  --r-pill: 999px;

  --gutter: 16px;
  --container: 1200px;
  --section: clamp(72px, 9vw, 144px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: var(--motion-easing-ease-in);
  --fast: var(--motion-duration-200);
  --mid: var(--motion-duration-300);

  --shadow-blue: 0 24px 48px -24px rgba(13, 76, 160, 0.28), 0 2px 6px rgba(15, 28, 47, 0.06);

  --z-header: 50;
  --z-menu: 49;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* English is applied by script after parse; hide the Arabic source text for
   that instant instead of flashing it. A timeout in the head clears this. */
html.i18n-pending body { opacity: 0; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

/* Latin tightening only: tracking pulls Arabic letters apart. */
html[lang="en"] h1,
html[lang="en"] .display { letter-spacing: -0.02em; }
html[lang="en"] h2 { letter-spacing: -0.02em; }
html[lang="en"] body { line-height: 1.6; }
html[lang="en"] h1, html[lang="en"] h2 { line-height: 1.1; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
/* Forward arrows are drawn pointing left (Arabic reading direction). */
html[dir="ltr"] .icon--fwd { transform: scaleX(-1); }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.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: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* ---------------------------------------------------------------- type */

.eyebrow {
  display: inline-block;
  margin-block-end: 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--blue-ink);
}
html[lang="en"] .eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
.h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem); }
.h3 { font-size: 1.5rem; line-height: 1.3; }

.lede {
  margin-block-start: 24px;
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
}

.body { color: var(--ink-2); max-width: 62ch; }
.body + .body { margin-block-start: 16px; }

.num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }

.btn--quiet { background: var(--surface); color: var(--ink); }
.btn--quiet:hover { background: var(--surface-blue); }

.btn--on-navy { background: #fff; color: var(--navy); }
.btn--on-navy:hover { background: var(--surface-blue); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--blue-ink);
}
.link .icon { transition: transform var(--fast) var(--ease-out); }
.link:hover .icon--fwd { transform: translateX(-3px); }
html[dir="ltr"] .link:hover .icon--fwd { transform: scaleX(-1) translateX(-3px); }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(250, 251, 253, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow var(--mid) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 28, 47, 0.18); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

/* The lockup stays LTR in both languages: it is a logo, not a sentence. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  flex: none;
}
.lockup__mark { width: auto; height: 36px; }
.lockup__word { width: auto; height: 30px; }
.lockup.is-missing img { display: none; }
.lockup__fallback { display: none; font-weight: 700; font-size: 20px; color: var(--navy); }
.lockup.is-missing .lockup__fallback { display: inline; }

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-2);
  transition: color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
}
.site-nav__link:hover { color: var(--ink); background: var(--surface); }
.site-nav__link[aria-current="page"] { color: var(--blue-ink); background: var(--surface-blue); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.lang-toggle:hover { background: var(--surface); }
.lang-toggle:active { transform: scale(0.98); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .site-nav,
  .site-header__actions .btn { display: none; }
  .site-header__actions { margin-inline-start: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  .lockup__mark { height: 30px; }
  .lockup__word { height: 22px; }
  .lang-toggle__label { display: none; }
}

.mobile-menu {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  z-index: var(--z-menu);
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  box-shadow: 0 24px 40px -24px rgba(15, 28, 47, 0.3);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--fast) var(--ease-in), transform var(--fast) var(--ease-in), visibility 0s linear var(--fast);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity var(--mid) var(--ease-out), transform var(--mid) var(--ease-out);
}
.mobile-menu__list { display: grid; gap: 4px; margin-block-end: 16px; }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 16px;
  border-radius: var(--r-md);
  font-size: 18px;
  font-weight: 500;
}
.mobile-menu__list a[aria-current="page"] { background: var(--surface-blue); color: var(--blue-ink); }
.mobile-menu .btn { width: 100%; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 128px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-block-start: 36px;
}

.hero__visual {
  position: relative;
  min-height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* A tone field behind the phones that bleeds off the page edge. */
.hero__visual::before {
  content: "";
  position: absolute;
  inset-block: 6% 4%;
  inset-inline: 8% -40vw;
  border-radius: var(--r-lg);
  background: var(--surface-blue);
}

.phone {
  position: relative;
  border-radius: 40px;
  padding: 7px;
  background: var(--navy);
  box-shadow: var(--shadow-blue);
}
.phone img,
.phone picture { border-radius: 33px; }
.phone picture { display: block; overflow: hidden; }

.hero__phones {
  position: relative;
  width: min(100%, 420px);
  height: 520px;
}
.hero__phones .phone { position: absolute; width: 236px; }
.hero__phones .phone--front { inset-inline-start: 0; top: 0; z-index: 2; }
.hero__phones .phone--back { inset-inline-end: 0; top: 64px; z-index: 1; }
.hero__phones .phone img { aspect-ratio: 720 / 1559; object-fit: cover; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 32px; }
  .hero__visual { min-height: 600px; }
  .hero__phones { height: 600px; }
  .hero__phones .phone { width: 260px; }
}
@media (max-width: 480px) {
  .hero__visual { min-height: 400px; }
  .hero__phones { height: 420px; width: 100%; max-width: 330px; }
  .hero__phones .phone { width: 184px; border-radius: 32px; padding: 6px; }
  .hero__phones .phone img, .hero__phones .phone picture { border-radius: 26px; }
  .hero__phones .phone--back { top: 48px; }
}

/* --------------------------------------------------------------- about */

.about__grid { display: grid; gap: 48px; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px 32px;
  margin-block-start: 40px;
}
.facts__wide { grid-column: 1 / -1; }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { margin-block-start: 4px; font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.35; }

.values {
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
}
.values__vision { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 500; line-height: 1.45; color: var(--ink); }
.values__list { display: grid; gap: 28px; margin-block-start: 40px; }
.values__item { display: grid; gap: 2px; }
.values__name { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--navy); }
.values__line { color: var(--ink-2); }

@media (min-width: 960px) {
  .about__grid { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
}

/* ------------------------------------------------------------ flagship */

.flagship { background: var(--surface); }
.flagship__grid { display: grid; gap: 56px; align-items: center; }
.flagship__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.flagship__visual .phone { width: min(340px, 78vw); }
.flagship__visual .phone img { aspect-ratio: 720 / 1300; object-fit: cover; object-position: top; }
.flagship__logo { height: 32px; width: auto; margin-block-end: 24px; }

.points {
  display: grid;
  gap: 32px 40px;
  margin-block-start: 48px;
}
.point__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-block-end: 16px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--blue);
}
.point__title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-block-end: 8px; }
.point__text { color: var(--ink-2); font-size: 16px; }

@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .flagship__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
}

/* --------------------------------------------------------------- proof */

.proof { background: var(--navy); color: var(--on-navy); }
.proof .eyebrow { color: var(--blue-soft); }
.proof .lede { color: var(--on-navy-2); }

.bento {
  display: grid;
  gap: 16px;
  margin-block-start: 56px;
}
.tile {
  border-radius: var(--r-lg);
  background: var(--navy-2);
  padding: clamp(24px, 3vw, 40px);
}
.tile--accent { background: var(--blue); }
.stat__value {
  display: block;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__value--md { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem); }
.stat__label { display: block; margin-block-start: 16px; font-size: 18px; font-weight: 500; }
.stat__note { display: block; margin-block-start: 4px; font-size: 15px; color: var(--on-navy-2); }
.tile--accent .stat__note { color: rgba(255, 255, 255, 0.86); }

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-block-start: 28px;
}
.split__value { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; }
html[dir="rtl"] .stat__value,
html[dir="rtl"] .split__value { text-align: right; }
.split__label { display: block; margin-block-start: 6px; font-size: 15px; color: var(--on-navy-2); line-height: 1.4; }

.proof__source { margin-block-start: 32px; font-size: 14px; color: var(--on-navy-2); max-width: 70ch; }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .tile--pharmacies { grid-column: span 7; }
  .tile--orders { grid-column: span 5; }
  .tile--sellers { grid-column: span 8; }
  .tile--years { grid-column: span 4; }
  .split { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------ products */

.family {
  display: grid;
  gap: 16px;
  margin-block-start: 56px;
}
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  isolation: isolate;
}
.app--navy { background: var(--navy); color: var(--on-navy); }
.app--blue { background: var(--surface-blue); }

.app__head { display: flex; align-items: center; gap: 14px; }
.app__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.app__icon--plate { background: #fff; padding: 8px; }
.app__tag { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.app--navy .app__tag { color: var(--on-navy-2); }
.app__name { font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.app__text { margin-block-start: 16px; max-width: 34ch; color: var(--ink-2); font-size: 16px; position: relative; z-index: 1; }
.app--navy .app__text { color: var(--on-navy-2); }
.app__links { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; position: relative; z-index: 1; }
.app__links .btn { background: #fff; color: var(--ink); }
.app__links .btn:hover { background: var(--surface-blue); }
.app--blue .app__links .btn:hover { background: var(--surface); }

.app__screen {
  position: absolute;
  inset-inline-end: clamp(24px, 3vw, 40px);
  top: 48px;
  width: 220px;
  z-index: 0;
}
.app__screen .phone img { aspect-ratio: 720 / 1300; object-fit: cover; object-position: top; }
.app__screen--store .phone img { object-position: bottom; }

.app__mark {
  margin-block-start: auto;
  align-self: flex-end;
  width: auto;
  height: 72px;
  opacity: 1;
}
.app__body { position: relative; z-index: 1; max-width: 100%; }

/* On phones the screen sits under the copy, not beside it. */
@media (max-width: 719px) {
  .app { min-height: 0; padding-block-end: 0; }
  .app__screen { position: relative; inset: auto; margin: 32px auto -48px; width: 200px; }
  .app--mark { padding-block-end: 28px; }
  .app__mark { margin-block-start: 32px; height: 56px; }
}
@media (min-width: 720px) {
  .family { grid-template-columns: repeat(12, 1fr); }
  .app { grid-column: span 6; }
  .app__body { max-width: calc(100% - 250px); }
  .app--mark .app__body { max-width: 100%; }
}
@media (min-width: 1024px) {
  .app--w7 { grid-column: span 7; }
  .app--w5 { grid-column: span 5; }
  .app--w5.app--has-screen .app__body { max-width: calc(100% - 230px); }
  .app--w5 .app__screen { width: 200px; }
}

/* --------------------------------------------------------- team teaser */

.teaser__grid { display: grid; gap: 40px; align-items: center; }
/* The whole team as one 3 by 3 portrait block. */
.teaser__lead {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--studio);
}
.teaser__lead img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; }

.teaser__grid .btn { margin-block-start: 32px; }

@media (min-width: 960px) {
  .teaser__grid { grid-template-columns: 5fr 6fr; gap: 80px; }
}

/* ------------------------------------------------------------- careers */

.careers {
  display: grid;
  gap: 24px;
  border-radius: var(--r-lg);
  background: var(--surface-blue);
  padding: clamp(28px, 5vw, 64px);
  align-items: center;
}
.careers__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 0.6rem + 2vw, 1.875rem);
  font-weight: 700;
  color: var(--blue-ink);
  overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .careers { grid-template-columns: 1.1fr 1fr; }
  .careers__cta { justify-self: end; }
}

/* ---------------------------------------------------------- team wall */

.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }

/* Every person gets an equal card with the full photo, name, title and every
   contact action on show. Nothing is hidden behind a tap. */
.wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .wall { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.person {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
@media (min-width: 720px) { .person { padding: 10px; } }

.person__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 8px);
  background: var(--studio);
}
.person__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .person:hover .person__photo { transform: scale(1.03); }
}

.person__meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 8px 6px;
}
@media (min-width: 720px) { .person__meta { padding: 18px 10px 8px; } }
.person__name { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.person__title { margin-block-start: 4px; font-size: 14px; line-height: 1.4; color: var(--blue-ink); }
@media (min-width: 720px) {
  .person__name { font-size: 19px; }
  .person__title { font-size: 15px; }
}

.person__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: auto;
  padding-block-start: 14px;
}
.person__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
@media (min-width: 720px) { .person__action { min-width: 44px; min-height: 44px; } }
/* Phone cards are narrow: four equal buttons in two rows, never three and one. */
@media (max-width: 719px) {
  .person__actions { display: grid; grid-template-columns: repeat(2, 1fr); }
}
.person__action:hover { background: var(--surface-blue); color: var(--blue-ink); }
.person__action:active { transform: scale(0.96); }

.team-careers { margin-block-start: 48px; }

.wall-fallback { display: grid; gap: 12px; }
.wall-fallback li { padding: 16px; border-radius: var(--r-md); background: var(--surface); }


/* ------------------------------------------------------------- contact */

.contact__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 7fr 5fr; gap: 56px; } }

.form-card {
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 4vw, 48px);
}
.form { display: grid; gap: 22px; margin-block-start: 28px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field__req { color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--fast) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234D5159' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-end: 44px;
}
html[dir="ltr"] .field select { background-position: right 14px center; }
.field input:focus,
.field select:focus,
.field textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid rgba(27, 121, 245, 0.32); outline-offset: 2px; border-radius: var(--r-md); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); background: #fff7f8; }
.field input[type="tel"] { direction: ltr; text-align: start; }
html[dir="rtl"] .field input[type="tel"] { text-align: right; }

.field__help { min-height: 1.4em; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.field__error {
  display: none;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--danger);
  font-weight: 500;
}
.field__error .icon { margin-block-start: 2px; }
.field.has-error .field__error { display: flex; }
.field.has-error .field__help { display: none; }

.form__submit { display: grid; gap: 12px; justify-items: start; }
.form__note { font-size: 14px; color: var(--ink-3); max-width: 52ch; }
.btn[aria-busy="true"] { opacity: 0.72; pointer-events: none; }

.form-status {
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff;
  font-size: 15px;
  color: var(--ink);
}
.form-status.is-visible { display: flex; }
.form-status .icon { color: var(--blue); margin-block-start: 3px; }

.channels { display: grid; gap: 8px; }
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  transition: background-color var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
a.channel:hover { background: var(--surface-blue); }
a.channel:active { transform: scale(0.99); }
.channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
}
.channel__label { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.channel__value { display: block; font-weight: 500; line-height: 1.4; word-break: break-word; }

.offices {
  display: grid;
  gap: 40px;
  align-items: center;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
}
.offices .eyebrow { color: var(--blue-soft); }
.offices .body { color: var(--on-navy-2); }
.offices__cities { font-style: normal; display: grid; gap: 12px; margin-block-start: 28px; }
.offices__city { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; }
.offices__city .icon { color: var(--blue-soft); }
@media (min-width: 900px) { .offices { grid-template-columns: 1fr 1fr; } }

.map {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 588.857 / 598.935;
}
.map svg { width: 100%; height: 100%; }
.map path { fill: var(--navy-3); }
.map__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
}
.map__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(27, 121, 245, 0.28);
  flex: none;
}
.map__label {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  white-space: nowrap;
}
/* Labels sit on the eastern side of the dot regardless of reading direction:
   the map is geography, not text. */
.map__pin { direction: ltr; }
.map__pin .map__dot { order: 0; }
.map__pin { transform: translate(-7px, -50%); }

/* -------------------------------------------------------------- footer */

.site-footer {
  background: var(--surface);
  padding-block: clamp(56px, 7vw, 96px) 32px;
  margin-block-start: var(--section);
}
.site-footer--flush { margin-block-start: 0; }
.footer__grid { display: grid; gap: 40px; }
.footer__logo { width: 140px; height: auto; }
.footer__brand .lockup__fallback { font-size: 22px; }
.footer__legal { margin-block-start: 20px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.footer__title { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-block-end: 12px; }
.footer__list { display: grid; gap: 2px; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  transition: color var(--fast) var(--ease-out);
}
.footer__list a:hover { color: var(--blue-ink); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-start: 56px;
  font-size: 14px;
  color: var(--ink-3);
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; } }

/* -------------------------------------------------------------- motion */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { transform: none; }
  .person__photo,
  .person:hover .person__photo { transform: none !important; }
}

@media print {
  .site-header, .mobile-menu { display: none; }
}

/* ------------------------------------------------------------ utilities */
.d1 { --delay: 70ms; }
.mt-16 { margin-block-start: 16px; }
.section--flush-top { padding-block-start: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Geographic positions from lon/lat on the map's own bounds (38.79E to
   48.57E, 29.06N to 37.38N). Physical left on purpose: a map does not mirror. */
.map__pin--erbil { left: 53.4%; top: 14.3%; }
.map__pin--baghdad { left: 57.4%; top: 48.6%; }
.section--flush-bottom { padding-block-end: 0; }
.team-status:not(:empty) { display: flex; margin-block-start: 16px; }
