/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  overflow: visible;
  border-bottom: 1px solid var(--line-soft);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 242, 233, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
}
.nav-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark { display: flex; align-items: center; gap: 14px; }
.logo-mark { height: 42px; width: auto; display: block; flex-shrink: 0; }
.logo-full { height: 92px; width: auto; display: block; }
.wordmark-footer { gap: 0; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #44586b; white-space: nowrap;
}
.wordmark-sub {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #b0a392; margin-top: 5px; font-weight: 500; font-style: italic;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 10px 13px;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav-link:link,
.nav-link:visited,
.nav-link:hover,
.nav-link:active {
  font-weight: 500;
}
.nav-link:hover { color: var(--ink); }
body.page-home .nav-link[href="/"],
body.page-home .nav-link[href="/fr/"],
body.page-home .nav-link[href="/ar/"],
body.page-services .nav-link[href$="/services/"],
body.page-clients .nav-link[href$="/clients/"],
body.page-team .nav-link[href$="/team/"],
body.page-philosophy .nav-link[href$="/philosophy/"] {
  color: var(--ink);
  font-weight: 500;
}
body.page-home .nav-link[href="/"]::after,
body.page-home .nav-link[href="/fr/"]::after,
body.page-home .nav-link[href="/ar/"]::after,
body.page-services .nav-link[href$="/services/"]::after,
body.page-clients .nav-link[href$="/clients/"]::after,
body.page-team .nav-link[href$="/team/"]::after,
body.page-philosophy .nav-link[href$="/philosophy/"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1.5px;
  background: var(--terra);
}
.nav-cta {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 10px 20px;
  border: 1px solid var(--ink);
  transition: all 0.35s var(--ease);
}
.nav-cta:hover,
body.page-contact .nav-cta { background: var(--ink); color: var(--cream); }

.nav-menu { display: none; }
.nav-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  list-style: none;
  -webkit-appearance: none;
  appearance: none;
}
.nav-menu summary::-webkit-details-marker,
.nav-menu summary::marker {
  display: none;
  content: none;
}
.nav-burger,
.nav-burger::before,
.nav-burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}
.nav-burger {
  position: relative;
}
.nav-burger::before,
.nav-burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger::before { top: -6px; }
.nav-burger::after { top: 6px; }
.nav-menu[open] .nav-burger { background: transparent; }
.nav-menu[open] .nav-burger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-menu[open] .nav-burger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* fixed: sticky + backdrop-filter clips absolute children */
.nav-menu-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 12px var(--gut) 24px;
}
.nav-menu-panel .nav-link,
.nav-menu-panel .nav-cta {
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}
.nav-menu-panel .nav-link::after { display: none; }
.nav-menu-panel .nav-link:link,
.nav-menu-panel .nav-link:visited,
.nav-menu-panel .nav-link:hover,
.nav-menu-panel .nav-link:active,
body.page-home .nav-menu-panel .nav-link[href="/"],
body.page-home .nav-menu-panel .nav-link[href="/fr/"],
body.page-home .nav-menu-panel .nav-link[href="/ar/"],
body.page-services .nav-menu-panel .nav-link[href$="/services/"],
body.page-clients .nav-menu-panel .nav-link[href$="/clients/"],
body.page-team .nav-menu-panel .nav-link[href$="/team/"],
body.page-philosophy .nav-menu-panel .nav-link[href$="/philosophy/"] {
  font-weight: 500;
}
.nav-menu-panel .nav-cta {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  text-align: center;
}


.lang {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: calc(var(--gut) + 16px);
  z-index: 70;
}
.lang summary {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  background: var(--cream-deep);
  padding: 6px 9px 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  -webkit-appearance: none;
  appearance: none;
}
.lang summary::-webkit-details-marker,
.lang summary::marker {
  display: none;
  content: none;
}
.lang summary::after {
  content: "";
  width: 0;
  height: 0;
  border-inline-start: 3.5px solid transparent;
  border-inline-end: 3.5px solid transparent;
  border-top: 4px solid var(--ink-muted);
}
.lang[open] summary { color: var(--terra); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 56px;
  padding: 4px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(43, 39, 34, 0.08);
  display: flex;
  flex-direction: column;
}
.lang-menu a,
.lang-panel a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink-muted);
  padding: 8px 10px;
  border-radius: 4px;
}
.lang-menu a:hover,
.lang-panel a:hover { color: var(--ink); background: var(--cream-deep); }
.lang-menu a[aria-current="page"],
.lang-panel a[aria-current="page"] {
  background: var(--terra);
  color: var(--cream);
}
.lang-panel {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 16px 0 0;
  padding: 3px;
  background: var(--cream-deep);
  border-radius: 999px;
  align-self: flex-start;
}
.lang-panel a { border-radius: 999px; padding: 5px 8px; }

/* Footer */
.footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand .wordmark-name { font-size: 15px; }
.footer-tag { color: var(--ink-muted); font-size: 15px; margin-top: 20px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block; font-size: 15px; font-weight: 400; color: var(--ink-muted);
  margin-bottom: 11px; transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.footer-reg { font-size: 12.5px; color: var(--ink-faint); max-width: 60ch; line-height: 1.6; margin: 0; padding: 0; }
.footer-copy { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.footer-credit {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.45em;
  margin-top: 28px;
  width: 100%;
}
.footer-credit a {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}
.footer-credit a:hover { color: var(--terra); }
.footer-credit-izba { font-family: var(--sans); font-weight: 600; }
.footer-credit-mcmedia { font-family: var(--serif); font-weight: 400; }
.footer-credit-sep {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
  user-select: none;
}
