/* Shared navbar styles. Linked in every page's <head> by the shared-site-navbar
   plugin (vite.config.js) so the build-time navbar markup is styled on first paint. */
/* ── Navbar ─────────────────────────────────────────────────────────── */
.site-nav {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #131318;
  --nav-text: #131318;
  --nav-hover: rgb(19 19 24 / 6%);
  --nav-panel: #fff;
  --nav-panel-hover: #f5f5f2;
  --nav-icon: #f0edff;
  --nav-border: #e4e3e8;
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: #fff;
}

.nav-inner {
  max-width: 1296px;
  height: 70px;
  margin-inline: auto;
  padding-inline: 22.5px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 27px;
}
@media (min-width: 640px) { .nav-inner { padding-inline: 36px; } }

.nav-brand {
  grid-column: 1;
  justify-self: start;
  font-family: inherit;
  font-size: 16.02px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #131318;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand span { color: #7057e8; }

.nav-menu {
  grid-column: 2;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.8px;
}
@media (min-width: 900px) { .nav-menu { display: flex; } }

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7.2px 12.6px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: inherit;
  font-size: 14.04px;
  color: #5f5e68;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.nav-item:hover { color: #131318; background: rgba(19,19,24,.045); }

.nav-chevron { transition: transform .22s cubic-bezier(.16,1,.3,1); flex-shrink: 0; }
.nav-services-wrap { position: relative; display: inline-flex; }
.nav-services-wrap:hover .nav-chevron,
.nav-services-wrap.open  .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel — anchored to the trigger, not centred on the bar. */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  padding: 5px;
  border: 1px solid #e4e3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px -14px rgba(28,25,23,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .16s ease .2s, transform .18s cubic-bezier(.16,1,.3,1) .2s, visibility 0s linear .38s;
  z-index: 200;
}
.nav-services-wrap:hover .nav-dropdown,
.nav-services-wrap.open  .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .14s ease, transform .18s cubic-bezier(.16,1,.3,1), visibility 0s;
}

.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s ease;
}
.nav-dd-item:hover { background: #f5f5f2; }
.nav-dd-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #eef2ff;
  color: #7057e8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dd-text { flex: 1; min-width: 0; }
.nav-dd-title { font-size: 13.32px; font-weight: 600; color: #131318; white-space: nowrap; }
.nav-dd-subtitle { font-size: 11.34px; color: #a8a29e; margin-top: 1px; }
.nav-dd-arrow { color: #d6d3d1; flex-shrink: 0; transition: color .15s ease, transform .15s ease; }
.nav-dd-item:hover .nav-dd-arrow { color: #7057e8; transform: translate(2px,-2px); }

.nav-right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; justify-self: end; gap: 12px; }

.nav-cta {
  display: none;
  padding: 8.1px 18px;
  border-radius: 9999px;
  background: #7057e8;
  color: #fff;
  font-size: 13.68px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(112,87,232,.85);
  transition: background-color .2s ease;
}
.nav-cta:hover { background: #5d44cf; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #131318;
  cursor: pointer;
  transition: opacity 700ms cubic-bezier(0.32,0.72,0,1), transform 700ms cubic-bezier(0.32,0.72,0,1);
}
.nav-burger:hover { opacity: .64; }
.nav-burger:active { transform: scale(.98); }
.nav-burger:focus-visible { outline: 3px solid rgba(79,70,229,.28); outline-offset: 2px; }
.nav-burger-line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.32,0.72,0,1);
}
.nav-burger[aria-expanded="true"] .nav-burger-line:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-line:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
@media (min-width: 900px) { .nav-burger { display: none; } }

/* Mobile sheet — a weighted reveal from beneath the bar. */
.nav-sheet {
  position: fixed;
  inset-inline: 0;
  top: 70px;
  z-index: 45;
  border-bottom: 1px solid #e4e3e8;
  background: #fff;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-24px);
  transform-origin: top center;
  transition:
    opacity 700ms cubic-bezier(0.32,0.72,0,1),
    transform 700ms cubic-bezier(0.32,0.72,0,1),
    visibility 0s linear 700ms;
}
.nav-sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 700ms cubic-bezier(0.32,0.72,0,1),
    transform 700ms cubic-bezier(0.32,0.72,0,1),
    visibility 0s linear 0s;
}
@media (min-width: 900px) { .nav-sheet { display: none; } }

.nav-sheet-inner { padding: 4.5px 22.5px 22.5px; }
.nav-sheet-inner > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.32,0.72,0,1),
    transform 700ms cubic-bezier(0.32,0.72,0,1);
}
.nav-sheet.is-open .nav-sheet-inner > * { opacity: 1; transform: translateY(0); }
.nav-sheet.is-open .nav-sheet-inner > *:nth-child(1) { transition-delay: 100ms; }
.nav-sheet.is-open .nav-sheet-inner > *:nth-child(2) { transition-delay: 150ms; }
.nav-sheet.is-open .nav-sheet-inner > *:nth-child(3) { transition-delay: 200ms; }
.nav-sheet.is-open .nav-sheet-inner > *:nth-child(4) { transition-delay: 250ms; }
.nav-sheet.is-open .nav-sheet-inner > *:nth-child(5) { transition-delay: 300ms; }
.nav-sheet.is-open .nav-sheet-inner > *:nth-child(6) { transition-delay: 350ms; }
.nav-sheet a.sheet-link {
  display: block;
  padding: 15.3px 0;
  border-bottom: 1px solid #f0efee;
  color: #131318;
  font-size: 15.84px;
  text-decoration: none;
}
.nav-sheet a.sheet-link:hover { color: #7057e8; }
.sheet-group { padding: 15.3px 0 6.3px; border-bottom: 1px solid #f0efee; }
.sheet-group > span { font-size: 15.84px; color: #131318; }
.sheet-sub { margin-top: 9px; display: flex; flex-direction: column; }
.sheet-sub a {
  padding: 7.2px 0 7.2px 14.4px;
  border-left: 2px solid #e4e3e8;
  color: #78716c;
  font-size: 14.04px;
  text-decoration: none;
}
.sheet-sub a:hover { color: #7057e8; border-left-color: #7057e8; }
.nav-sheet-foot { display: flex; align-items: center; gap: 13.5px; padding-top: 18px; }
.nav-sheet-foot .nav-cta { display: inline-flex; flex: 1; justify-content: center; padding-block: 11.7px; }

/* Language switch */
.lang-switch { display:inline-flex; align-items:center; gap:2px; padding:2px; border-radius:9999px; background:#f5f5f4; }
.lang-switch button {
  border:none; background:none; cursor:pointer; font-family:inherit;
  font-size:11.88px; font-weight:700; letter-spacing:.03em; color:#5f5e68;
  padding:3.96px 9px; border-radius:9999px; transition:color .15s, background .15s;
}
.lang-switch button:hover { color:#131318; }
.lang-switch button:focus-visible { outline:3px solid rgba(79,70,229,.28); outline-offset:2px; }
.lang-switch button.is-active { color:#fff; background:#7057e8; }

/* Transparent over the hero at the top, glass after scrolling, and a
   light palette once the page below the photograph reaches the bar. */
.site-nav.has-hero {
  --nav-text: #fff;
  --nav-hover: rgb(255 255 255 / 12%);
  --nav-panel: #181818;
  --nav-panel-hover: #272727;
  --nav-icon: #313131;
  --nav-border: rgb(255 255 255 / 24%);
  background: transparent;
  transition: background-color 700ms cubic-bezier(0.32,0.72,0,1),
              color 700ms cubic-bezier(0.32,0.72,0,1);
}
.site-nav.is-scrolled {
  background: rgb(0 0 0 / 40%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.site-nav.is-light {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  --nav-text: #131318;
  --nav-hover: rgb(19 19 24 / 6%);
  --nav-panel: #fff;
  --nav-panel-hover: #f5f5f2;
  --nav-icon: #f0edff;
  --nav-border: #e4e3e8;
  background: rgb(255 255 255 / 88%);
}
.nav-top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  pointer-events: none;
}
site-navbar .nav-brand { font-family: inherit; }
site-navbar .nav-brand,
site-navbar .nav-brand span,
site-navbar .nav-item,
site-navbar .nav-burger { color: var(--nav-text); }
site-navbar .nav-item:hover { color: var(--nav-text); background: var(--nav-hover); }
site-navbar .nav-cta {
  background: #fff;
  color: #000;
  box-shadow: none;
}
site-navbar .nav-cta:hover { background: #f5f5f2; }
site-navbar .nav-brand,
site-navbar .nav-burger,
site-navbar .nav-item,
site-navbar .nav-cta {
  transition: background-color 700ms cubic-bezier(0.32,0.72,0,1),
              color 700ms cubic-bezier(0.32,0.72,0,1),
              border-color 700ms cubic-bezier(0.32,0.72,0,1),
              transform 700ms cubic-bezier(0.32,0.72,0,1);
}
site-navbar .nav-item:active,
site-navbar .nav-cta:active { transform: scale(.98); }
site-navbar .nav-brand:focus-visible,
site-navbar .nav-item:focus-visible,
site-navbar .nav-cta:focus-visible,
site-navbar .nav-burger:focus-visible { outline: 2px solid var(--nav-text); outline-offset: 4px; }
site-navbar .nav-dropdown,
site-navbar .nav-sheet { background: var(--nav-panel); border-color: var(--nav-border); }
site-navbar .nav-dd-title,
site-navbar .nav-dd-subtitle,
site-navbar .nav-dd-arrow,
site-navbar .nav-dd-icon,
site-navbar .nav-sheet a,
site-navbar .nav-sheet a.sheet-link,
site-navbar .sheet-group > span { color: var(--nav-text); }
site-navbar .nav-sheet .nav-cta { color: #000; }
site-navbar .nav-dd-icon { background: var(--nav-icon); }
site-navbar .nav-dd-item:hover { background: var(--nav-panel-hover); }
site-navbar .nav-sheet a:hover { color: var(--nav-text); background: var(--nav-panel-hover); }
site-navbar .nav-sheet .nav-cta:hover { color: #000; background: #f5f5f2; }

.site-nav.is-light .nav-cta {
  background: #000;
  color: #fff;
}
.site-nav.is-light .nav-cta:hover {
  background: #181818;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .nav-burger,
  .nav-burger-line,
  .nav-sheet,
  .nav-sheet-inner > * { transition-duration: 0.01ms; transition-delay: 0ms; }
  .site-nav.has-hero,
  site-navbar .nav-brand,
  site-navbar .nav-burger,
  site-navbar .nav-item,
  site-navbar .nav-cta { transition: none; }
}
