:root {
  --je-green: #3e894c;
  --je-green-deep: #125b31;
  --je-green-dark: #0a512c;
  --je-sage: #eef6ee;
  --je-sage-soft: #f7faf5;
  --je-ink: #1f2d24;
  --je-muted: #6f7a72;
  --je-line: #e1e9e2;
  --je-yellow: #efbe3f;
  --je-shell-shadow: 0 18px 48px rgba(20, 67, 39, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hide the legacy shell before the shared shell mounts, preventing a mobile flash. */
body > header:not(.je-site-header),
body > nav.mobile,
body > nav.mobile-nav,
.wrap > header.top,
.wrap > nav.mobile-nav,
body > footer:not(.je-footer),
.wrap > footer.site-foot {
  display: none !important;
}

.je-site-header,
.je-footer,
.je-mobile {
  font-family: "Plus Jakarta Sans", "Noto Sans SC", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.je-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(225, 233, 226, 0.86);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.je-site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(26, 63, 39, 0.08);
}

.je-shell-inner {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.je-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.je-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.je-logo {
  display: block;
  width: 158px;
  height: 74px;
  object-fit: contain;
}

.je-primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 31px;
}

.je-primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 0;
  color: var(--je-ink);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.je-primary-nav a:hover,
.je-primary-nav a[aria-current="page"] {
  color: var(--je-green-deep);
}

.je-primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--je-green);
  transition: left 180ms ease, right 180ms ease;
}

.je-primary-nav a:hover::after,
.je-primary-nav a[aria-current="page"]::after {
  left: 0;
  right: 0;
}

.je-lang {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--je-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 12px rgba(35, 76, 48, 0.04);
}

.je-lang button {
  min-width: 46px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #79857c;
  font: inherit;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.je-lang button:hover {
  color: var(--je-green-deep);
}

.je-lang button.is-active,
.je-lang button.active,
.je-lang button[aria-pressed="true"] {
  background: var(--je-sage);
  color: var(--je-green-deep);
  box-shadow: inset 0 0 0 1px rgba(62, 137, 76, 0.05);
}

.je-lang > span {
  color: #c5cdc7;
  font-size: 12px;
}

.je-menu {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0;
  border: 1px solid var(--je-line);
  border-radius: 14px;
  background: #fff;
  color: var(--je-green-deep);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 16px rgba(26, 72, 42, 0.07);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.je-menu:hover {
  border-color: rgba(62, 137, 76, 0.32);
  background: var(--je-sage-soft);
}

.je-menu:active {
  transform: translateY(1px);
}

.je-menu .material-symbols-rounded {
  font-size: 26px;
  line-height: 1;
}

.je-mobile {
  display: none;
}

.je-mobile[hidden] {
  display: none !important;
}

.je-footer {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 62px 0 24px;
  border-top: 1px solid var(--je-line);
  background: #fff;
  color: var(--je-ink);
}

.je-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.72fr 0.82fr 0.62fr;
  gap: 58px;
}

.je-footer-brand .je-logo {
  width: 184px;
  height: 96px;
  margin-bottom: 16px;
}

.je-footer-note {
  max-width: 340px;
  margin: 0;
  color: var(--je-muted);
  font-size: 14px;
  line-height: 1.75;
}

.je-footer h2 {
  margin: 8px 0 18px;
  color: var(--je-green-dark);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
}

.je-footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.je-footer a {
  color: var(--je-muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 180ms ease;
}

.je-footer a:hover {
  color: var(--je-green);
}

.je-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--je-line);
  color: #8a958c;
  font-size: 12px;
}

.je-footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

:where(.je-site-header, .je-footer, .je-mobile) :where(a, button):focus-visible {
  outline: 3px solid rgba(62, 137, 76, 0.28);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .je-shell-inner {
    width: min(100% - 32px, 1180px);
  }

  .je-header-inner {
    min-height: 72px;
    gap: 10px;
  }

  .je-logo {
    width: 124px;
    height: 58px;
  }

  .je-primary-nav {
    display: none;
  }

  .je-header-lang {
    margin-left: auto;
  }

  .je-header-lang button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    font-size: 12.5px;
  }

  .je-menu {
    display: inline-flex;
  }

  .je-mobile:not([hidden]) {
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    z-index: 110;
    display: grid;
    gap: 4px;
    max-height: calc(100vh - 100px);
    padding: 12px;
    overflow: auto;
    border: 1px solid rgba(225, 233, 226, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--je-shell-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: je-menu-in 180ms ease-out both;
  }

  .je-mobile > a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--je-ink);
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
  }

  .je-mobile > a:hover,
  .je-mobile > a[aria-current="page"] {
    background: var(--je-sage);
    color: var(--je-green-deep);
  }

  .je-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
  }

  .je-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .je-shell-inner {
    width: min(100% - 28px, 1180px);
  }

  .je-header-inner {
    gap: 8px;
  }

  .je-logo {
    width: 116px;
    height: 54px;
  }

  .je-header-lang {
    padding: 3px;
  }

  .je-header-lang button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 7px;
    font-size: 12px;
  }

  .je-menu {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
  }

  .je-footer {
    padding-top: 48px;
  }

  .je-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 22px;
  }

  .je-footer-brand,
  .je-footer-contact {
    grid-column: 1 / -1;
  }

  .je-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 34px;
  }
}

@keyframes je-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .je-site-header,
  .je-menu,
  .je-lang button,
  .je-primary-nav a,
  .je-primary-nav a::after,
  .je-mobile:not([hidden]) {
    animation: none !important;
    transition: none !important;
  }
}
