/* Header — style from enterprise prototype (ported from Tailwind mock) */

.ja-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
}

.ja-header.is-scrolled .ja-header__shell {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.ja-header__top {
  background: var(--ja-primary);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ja-header__top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  min-height: 2.15rem;
}

.ja-header__tagline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  flex-wrap: wrap;
}

.ja-header__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
}

.ja-header__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--ja-success);
  animation: ja-pulse 1.8s ease-out infinite;
}

@keyframes ja-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.ja-header__meta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
}

.ja-header__meta svg { color: var(--ja-hover); }

@media (min-width: 768px) {
  .ja-header__meta--md { display: inline-flex; }
}

@media (min-width: 1024px) {
  .ja-header__meta--lg { display: inline-flex; }
}

@media (min-width: 1280px) {
  .ja-header__meta--xl { display: inline-flex; }
}

.ja-header__meta a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.ja-header__meta a:hover { color: #fff; }

.ja-header__contacts {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ja-header__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.65);
}

.ja-header__chip strong {
  color: #fff;
  font-weight: 700;
}

.ja-header__divider {
  width: 1px;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.22);
}

.ja-header__contacts a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  transition: color 0.2s;
}

.ja-header__contacts a:hover {
  background: transparent;
  color: #fff;
}

.ja-header__contacts a[href*="request-quote"],
.ja-header__contacts a[href*="quote"] {
  color: #fff;
  font-weight: 800;
}

.ja-header__shell {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.ja-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem 0;
}

.ja-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ja-text);
}

.ja-logo:hover { color: var(--ja-primary); }
.ja-logo:hover .ja-logo__mark { transform: scale(1.05); }

.ja-logo .ja-logo__img {
  display: block;
  width: auto;
  height: 3.75rem;
  max-width: min(16rem, 48vw);
  object-fit: contain;
}

.ja-logo__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: linear-gradient(to top right, var(--ja-primary-deep), var(--ja-primary));
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 10px 22px rgba(13, 59, 102, 0.28);
  transition: transform 0.25s var(--ja-ease);
}

.ja-logo__name {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.ja-logo__sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ja-muted);
  letter-spacing: 0.08em;
}

.ja-header__search {
  min-width: 0;
  max-width: 28rem;
  width: 100%;
  margin-inline: auto;
}

.ja-search__icon { color: var(--ja-primary); }

.ja-search input[type="search"] {
  min-height: 3rem;
  background: var(--ja-bg);
  border-color: var(--ja-line);
}

.ja-search input[type="search"]:focus {
  border-color: var(--ja-primary);
  box-shadow: 0 0 0 4px rgba(13, 59, 102, 0.12);
}

.ja-header__search-wrap .dgwt-wcas-sf-wrapp {
  background: var(--ja-bg) !important;
  border-color: var(--ja-line) !important;
  box-shadow: inset 0 1px 2px rgba(13, 59, 102, 0.04) !important;
  position: relative !important;
}

.ja-header__search-wrap .dgwt-wcas-sf-wrapp:focus-within {
  border-color: var(--ja-primary) !important;
  box-shadow: 0 0 0 4px rgba(13, 59, 102, 0.12) !important;
}

.ja-header__search-wrap .dgwt-wcas-search-input {
  height: 2.85rem !important;
  padding: 0 3.15rem 0 1rem !important;
}
.ja-header__search-wrap .dgwt-wcas-ico-magnifier,
.ja-header__search-wrap .dgwt-wcas-ico-magnifier-handler {
  color: #fff !important;
  fill: #fff !important;
  width: 1rem !important;
  height: 1rem !important;
  filter: brightness(0) invert(1) !important;
}
.ja-header__search-wrap .dgwt-wcas-ico-magnifier path,
.ja-header__search-wrap .dgwt-wcas-search-submit svg,
.ja-header__search-wrap .dgwt-wcas-search-submit path {
  fill: #fff !important;
  stroke: none !important;
  color: #fff !important;
}

.ja-header__search-wrap .dgwt-wcas-search-submit,
.ja-header__search-wrap button.dgwt-wcas-search-submit {
  position: absolute !important;
  top: 50% !important;
  right: .28rem !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  background: var(--ja-orange) !important;
  color: #fff !important;
  margin: 0 !important;
  width: 2.3rem !important;
  height: 2.3rem !important;
  min-width: 2.3rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ja-action {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border-color: rgba(216, 222, 224, 0.9);
  box-shadow: 0 1px 2px rgba(13, 59, 102, 0.04);
  color: var(--ja-text);
  overflow: visible;
}

.ja-action:hover {
  border-color: var(--ja-hover);
  color: var(--ja-primary);
  box-shadow: 0 8px 20px rgba(13, 59, 102, 0.08);
}

.ja-action__icon {
  width: 1.35rem;
  height: 1.35rem;
  background: transparent;
  color: var(--ja-muted);
  border-radius: 0;
}
.ja-action__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.ja-action__text { display: none; }

@media (min-width: 1280px) {
  .ja-action__text { display: grid; }
}

.ja-action__label {
  font-size: 0.75rem;
  color: var(--ja-text);
}

.ja-action:hover .ja-action__label { color: var(--ja-primary); }

.ja-action__hint {
  font-size: 0.62rem;
  color: var(--ja-muted);
}

.ja-action__count {
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.35rem;
  height: 1.35rem;
  font-size: 0.68rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ja-orange);
}

.ja-action__count--amber {
  background: var(--ja-orange);
  box-shadow: 0 4px 10px rgba(168, 31, 40, 0.35);
}

.ja-action__count--blue {
  background: var(--ja-orange);
  box-shadow: 0 4px 10px rgba(168, 31, 40, 0.35);
}

.ja-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: var(--ja-orange);
  color: #fff !important;
  font-family: var(--ja-font-display);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(168, 31, 40, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.ja-header__cta:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(168, 31, 40, 0.38);
  color: #fff !important;
  background: var(--ja-orange-dark);
}

.ja-nav {
  border-top: 1px solid rgba(216, 222, 224, 0.7);
  background: rgba(255, 255, 255, 0.92);
}

.ja-nav__list > li > a,
.ja-nav__mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  color: var(--ja-primary);
  text-decoration: none;
  font-family: var(--ja-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px 10px 0 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.ja-nav__list > li > a:hover,
.ja-nav__mega:hover > .ja-nav__mega-trigger {
  color: var(--ja-orange);
  background: var(--ja-bg);
  border-bottom-color: var(--ja-orange);
}

.ja-nav__list > li.current-menu-item > a,
.ja-nav__list > li.current-menu-item > .ja-nav__mega-trigger {
  color: var(--ja-orange);
  background: rgba(168, 31, 40, 0.06);
  border-bottom-color: var(--ja-orange);
}

.ja-nav__chevron {
  transition: transform 0.2s;
  opacity: 0.55;
}

.ja-nav__mega:hover .ja-nav__chevron {
  transform: rotate(180deg);
}

.ja-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  width: min(720px, 92vw);
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  animation: ja-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ja-nav__mega:hover > .ja-mega,
.ja-nav__mega:focus-within > .ja-mega {
  display: block;
}

@keyframes ja-fade-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.ja-mega__cols {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
}

.ja-mega__label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ja-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ja-mega__list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.ja-mega__list a:hover { background: var(--ja-bg); }

.ja-mega__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(13, 59, 102, 0.1);
  color: var(--ja-primary);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ja-mega__list a:hover .ja-mega__icon {
  background: var(--ja-primary);
  color: #fff;
}

.ja-mega__icon--img {
  width: 4.75rem;
  height: 3.2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  padding: 0;
}

.ja-mega__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.25s ease;
}

.ja-mega__list a:hover .ja-mega__icon--img {
  background: #fff;
  border-color: #0d3b66;
}

.ja-mega__list a:hover .ja-mega__icon--img img {
  transform: scale(1.06);
}

.ja-mega__name {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ja-text);
}

.ja-mega__count {
  display: block;
  font-size: 0.72rem;
  color: var(--ja-muted);
}

.ja-mega__panel {
  background: var(--ja-bg);
  border: 1px solid var(--ja-line);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.ja-mega__badge {
  display: inline-flex;
  width: fit-content;
  background: var(--ja-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.ja-mega__panel h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ja-text);
}

.ja-mega__panel p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ja-muted);
  line-height: 1.45;
}

.ja-mega__panel .ja-btn {
  justify-self: stretch;
  margin-top: 0.35rem;
  border-radius: 10px;
}

.ja-nav__shop-link {
  color: var(--ja-primary);
  font-size: 0.875rem;
  padding: 0.45rem 0.2rem;
  border-radius: 0;
  background: transparent;
}

.ja-nav__shop-link:hover {
  color: var(--ja-primary-deep);
  background: transparent;
}

@media (max-width: 1100px) {
  .ja-header__cta { display: none !important; }
  .ja-header__cta span + svg { display: none; }
}

.ja-header__mobile-search {
  display: none;
  padding: 0 0 0.85rem;
}

.ja-header__mobile-search .ja-search,
.ja-header__mobile-search .ja-header__search-wrap {
  width: 100%;
}

.ja-header__mobile-search .ja-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.4rem 0.35rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.ja-header__mobile-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  outline: none;
}

@media (max-width: 768px) {
  .ja-header__chip,
  .ja-header__divider { display: none; }

  .ja-header__mobile-search { display: block; }

  .ja-mega {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    padding: 0.5rem 0 0.75rem;
    display: none;
  }

  .ja-nav__mega.is-open > .ja-mega {
    display: block;
  }

  .ja-mega__cols {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Homepage — floating header overlapped on full-bleed hero
   ============================================================ */
body.home .ja-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  background: transparent;
  pointer-events: none; /* let clicks pass except on interactive chrome */
}
body.home.admin-bar .ja-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.home.admin-bar .ja-header { top: 46px; }
}

body.home .ja-header__top,
body.home .ja-header__shell,
body.home .ja-header__shell * {
  pointer-events: auto;
}

body.home .ja-header__top {
  background: rgba(8, 42, 74, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s var(--ja-ease), border-color 0.3s;
}

body.home .ja-header__shell {
  width: calc(100% - 4.5rem);
  max-width: calc(var(--ja-container) + 1.5rem);
  margin: 1rem auto 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 24px 60px rgba(8, 26, 46, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: visible;
  transition:
    width 0.35s var(--ja-ease),
    max-width 0.35s var(--ja-ease),
    margin 0.35s var(--ja-ease),
    border-radius 0.35s var(--ja-ease),
    background 0.3s var(--ja-ease),
    box-shadow 0.3s var(--ja-ease),
    border-color 0.3s var(--ja-ease);
}

body.home .ja-header:not(.is-scrolled) .ja-nav {
  background: transparent;
  border-top-color: rgba(216, 222, 224, 0.5);
}

body.home .ja-header:not(.is-scrolled) .ja-header__bar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Sticky state — keep floating card, just firm up the glass */
body.home .ja-header.is-scrolled .ja-header__top {
  background: rgba(8, 42, 74, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.home .ja-header.is-scrolled .ja-header__shell {
  width: calc(100% - 4.5rem);
  max-width: calc(var(--ja-container) + 1.5rem);
  margin: 0.75rem auto 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 52px rgba(8, 26, 46, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

body.home .ja-header.is-scrolled .ja-nav {
  background: transparent;
  border-top-color: rgba(216, 222, 224, 0.55);
}

/* Hero fills the top of the viewport under the floating header */
body.home .ja-hero {
  min-height: clamp(34rem, 78vh, 48rem);
  margin-top: 0;
}

body.home .ja-hero__content {
  padding-top: calc(var(--ja-header-h, 9.5rem) + 2.75rem);
  padding-bottom: 5.5rem;
}

body.home .ja-hero__dots {
  bottom: 1.6rem;
}

@media (max-width: 900px) {
  body.home .ja-header__shell {
    width: calc(100% - 1.75rem);
    margin-top: 0.55rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
  }
}

@media (max-width: 768px) {
  body.home .ja-header__shell {
    width: calc(100% - 1rem);
    margin-top: 0.4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
  }
  body.home .ja-hero {
    min-height: clamp(28rem, 70vh, 36rem);
  }
  body.home .ja-hero__content {
    padding-top: calc(var(--ja-header-h, 8rem) + 1.5rem);
    padding-bottom: 3.25rem;
  }
  /* Keep the open mobile nav readable over the hero */
  body.home .ja-header .ja-nav.is-open {
    background: #fff;
    border-radius: 0 0 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .ja-header__shell,
  body.home .ja-header__top {
    transition: none;
  }
}

/* ============================================================
   Inner pages — same floating glass language, kept in flow
   ============================================================ */
body:not(.home) .ja-header {
  background: linear-gradient(
    to bottom,
    var(--ja-primary) 0,
    var(--ja-primary) 2.15rem,
    transparent 2.15rem
  );
}

/* Navy hero pages — match hero gradient only before scroll */
body.ja-has-navy-hero:not(.home) .ja-header:not(.is-scrolled) {
  background: var(--ja-hero-navy-gradient);
  transition: background 0.3s var(--ja-ease);
}

body.ja-has-navy-hero:not(.home) .ja-header.is-scrolled {
  background: transparent;
}

/* ============================================================
   Banner-hero pages (About) — island over full-bleed image,
   same language as homepage (no solid navy fill behind shell)
   ============================================================ */
body.ja-has-banner-hero .ja-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}
body.ja-has-banner-hero.admin-bar .ja-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.ja-has-banner-hero.admin-bar .ja-header { top: 46px; }
}

body.ja-has-banner-hero .ja-header__top,
body.ja-has-banner-hero .ja-header__shell,
body.ja-has-banner-hero .ja-header__shell * {
  pointer-events: auto;
}

body.ja-has-banner-hero .ja-header__top {
  background: rgba(8, 42, 74, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s var(--ja-ease), border-color 0.3s;
}

body.ja-has-banner-hero .ja-header__shell {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 24px 60px rgba(8, 26, 46, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

body.ja-has-banner-hero .ja-header.is-scrolled .ja-header__top {
  background: rgba(8, 42, 74, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.ja-has-banner-hero .ja-header.is-scrolled .ja-header__shell {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 52px rgba(8, 26, 46, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

@media (max-width: 768px) {
  body.ja-has-banner-hero .ja-header__top {
    display: none;
  }
}

body:not(.home) .ja-header__shell {
  width: calc(100% - 4.5rem);
  max-width: calc(var(--ja-container) + 1.5rem);
  margin: 1rem auto 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 46px rgba(8, 26, 46, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: visible;
  transition:
    background 0.3s var(--ja-ease),
    box-shadow 0.3s var(--ja-ease),
    border-color 0.3s var(--ja-ease);
}

body:not(.home) .ja-header:not(.is-scrolled) .ja-nav {
  background: transparent;
  border-top-color: rgba(216, 222, 224, 0.55);
}

body:not(.home) .ja-header:not(.is-scrolled) .ja-header__bar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

body:not(.home) .ja-header.is-scrolled .ja-header__shell {
  width: calc(100% - 4.5rem);
  max-width: calc(var(--ja-container) + 1.5rem);
  margin: 0.75rem auto 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 20px 52px rgba(8, 26, 46, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

body:not(.home) .ja-header.is-scrolled .ja-nav {
  background: transparent;
  border-top-color: rgba(216, 222, 224, 0.55);
}

@media (max-width: 900px) {
  body.home .ja-header.is-scrolled .ja-header__shell,
  body:not(.home) .ja-header.is-scrolled .ja-header__shell {
    width: calc(100% - 1.75rem);
    margin-top: 0.5rem;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  body.home .ja-header.is-scrolled .ja-header__shell,
  body:not(.home) .ja-header.is-scrolled .ja-header__shell {
    width: calc(100% - 1rem);
    margin-top: 0.35rem;
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  body:not(.home) .ja-header__shell {
    width: calc(100% - 1.75rem);
    margin-top: 0.55rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 768px) {
  body:not(.home) .ja-header {
    background: transparent;
  }
  body:not(.home) .ja-header__shell {
    width: calc(100% - 1rem);
    margin-top: 0.4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
  }
  body:not(.home) .ja-header .ja-nav.is-open {
    background: #fff;
    border-radius: 0 0 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home) .ja-header__shell {
    transition: none;
  }
}

/* Compact mobile floating header — less chrome, more touch room */
@media (max-width: 768px) {
  .ja-header__shell {
    width: calc(100% - 0.9rem) !important;
    max-width: none !important;
    margin: 0.4rem auto 0 !important;
    border-radius: 14px !important;
  }

  .ja-header__bar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.45rem !important;
    padding: 0.55rem 0.65rem 0.35rem !important;
  }

  .ja-logo .ja-logo__img {
    height: 2.35rem !important;
    max-width: min(9.5rem, 42vw) !important;
  }

  .ja-header__actions {
    gap: 0.25rem !important;
  }

  .ja-action {
    padding: 0.4rem !important;
    min-width: 2.35rem;
    justify-content: center;
  }

  .ja-header__mobile-search {
    padding: 0 0.65rem 0.7rem !important;
  }

  .ja-header__mobile-search .dgwt-wcas-sf-wrapp,
  .ja-header__mobile-search .ja-search {
    min-height: 2.5rem;
  }

  /* Expand inside the shell (not viewport-fixed): shell backdrop-filter
     creates a containing block that would trap position:fixed. */
  .ja-nav.is-open {
    display: block !important;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0.15rem 0.35rem 0.75rem;
    max-height: min(70vh, 28rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-top: 1px solid rgba(216, 222, 224, 0.7);
    border-radius: 0 0 12px 12px;
  }

  /* Elevate entire header above the page backdrop while menu is open */
  body.ja-mobile-nav-open .ja-header {
    z-index: 1102;
    pointer-events: auto;
  }
  body.ja-mobile-nav-open .ja-header__shell {
    position: relative;
    z-index: 1103;
    overflow: visible;
  }

  .ja-nav__mega-trigger .ja-nav__chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
  }

  .ja-nav__mega.is-open > .ja-nav__mega-trigger .ja-nav__chevron {
    transform: rotate(180deg);
  }

  .ja-nav__list > li > a,
  .ja-nav__mega-trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border-bottom: 0;
  }

  .ja-nav__shop-link {
    margin: 0.35rem 0.5rem 0;
  }

  body.home .ja-hero__content {
    padding-top: calc(var(--ja-header-h, 7rem) + 1.1rem) !important;
    padding-bottom: 2.75rem !important;
  }

  body.home .ja-hero {
    min-height: clamp(26rem, 68vh, 34rem) !important;
  }
}

.ja-nav-backdrop,
.ja-filters-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  border: 0;
  background: rgba(8, 26, 46, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: ja-overlay-in 0.22s ease;
}
.ja-filters-backdrop {
  z-index: 1200;
}

body.ja-scroll-lock {
  overflow: hidden;
}

@keyframes ja-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
