:root {
  --kshell-ink: #0d2b38;
  --kshell-copy: #526a76;
  --kshell-teal: #178e8b;
  --kshell-line: rgba(23, 142, 139, .15);
  --kshell-display: "Plus Jakarta Sans", Inter, ui-sans-serif, sans-serif;
  --kshell-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kshell-header,
.kshell-header *,
.kshell-footer,
.kshell-footer * {
  box-sizing: border-box;
}

.kshell-header a,
.kshell-footer a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Header: a floating glass capsule (template-parts/kapocs-shell-header.php).
   The box stays 76 px tall: 10 px of air, then the 60 px capsule. The glass
   sits on ::before, so the capsule itself never becomes a containing block
   for the fixed menu sheet on narrow screens. */
/* ------------------------------------------------------------------ */

.kshell-header {
  position: sticky;
  z-index: 900;
  top: 0;
  width: 100%;
  min-height: 76px;
  padding-top: 10px;
  pointer-events: none;
}

body.admin-bar .kshell-header {
  top: 32px;
}

.kshell-header-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1240px, calc(100% - 32px));
  height: 60px;
  margin-inline: auto;
  padding: 0 9px 0 16px;
  pointer-events: auto;
  transition: width .5s cubic-bezier(.2, .9, .2, 1), height .5s cubic-bezier(.2, .9, .2, 1);
}

.kshell-header-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 1px rgba(13, 43, 56, .07), 0 1px 2px rgba(13, 43, 56, .04), 0 12px 32px -16px rgba(13, 43, 56, .26);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  transition: background-color .4s ease, box-shadow .4s ease;
}

/* Scrolled: the capsule draws in a little and turns more solid. */
.kshell-header.is-scrolled .kshell-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 56px;
}

.kshell-header.is-scrolled .kshell-header-inner::before {
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 1px rgba(13, 43, 56, .08), 0 1px 2px rgba(13, 43, 56, .05), 0 18px 40px -18px rgba(13, 43, 56, .36);
}

.kshell-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 0;
}

.kshell-brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.3, 1.5, .5, 1);
}

.kshell-brand:hover .kshell-brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.kshell-brand-name {
  color: var(--kshell-ink);
  font: 700 15px/1 var(--kshell-display);
  letter-spacing: .16em;
}

/* The menu with its gliding pill. */
.kshell-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.kshell-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: #3a5560;
  font: 600 14px/1 var(--kshell-body);
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease;
}

.kshell-nav-link:hover,
.kshell-nav-link.is-lit {
  color: var(--kshell-ink);
}

.kshell-nav-link[aria-current="page"] {
  color: #106f6c;
  background: rgba(23, 142, 139, .1);
}

.kshell-nav.has-pill .kshell-nav-link[aria-current="page"] {
  background: transparent;
}

.kshell-nav.has-pill .kshell-nav-link[aria-current="page"].is-lit {
  color: #106f6c;
}

.kshell-nav-pill {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  width: var(--w, 0);
  height: 40px;
  border-radius: 12px;
  background: rgba(23, 142, 139, .1);
  box-shadow: inset 0 0 0 1px rgba(23, 142, 139, .12);
  opacity: 0;
  transform: translate(var(--x, 0), -50%);
  transition: transform .45s cubic-bezier(.2, .9, .2, 1), width .45s cubic-bezier(.2, .9, .2, 1), opacity .25s ease;
  pointer-events: none;
}

.kshell-nav-pill.is-on {
  opacity: 1;
}

.kshell-contact-nav-link {
  display: none;
}

/* The order button. */
.kshell-header-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 18px;
  border-radius: 12px;
  color: #fff !important;
  background: var(--kshell-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px -8px rgba(13, 43, 56, .55);
  font: 600 14px/1 var(--kshell-body);
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.kshell-cta-arrow {
  display: inline-block;
  color: #5fd0cb;
  transition: transform .25s cubic-bezier(.2, .9, .2, 1);
}

.kshell-header-cta:hover {
  background: #123f4c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 24px -10px rgba(13, 43, 56, .6);
  transform: translateY(-1px);
}

.kshell-header-cta:hover .kshell-cta-arrow {
  transform: translateX(3px);
}

/* How far down the page: a hairline along the bottom edge of the capsule. */
.kshell-progress {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
}

.kshell-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #28aaa6, #178e8b);
  transform: scaleX(var(--kshell-p, 0));
  transform-origin: 0 50%;
}

/* The menu button (narrow screens). */
.kshell-menu-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--kshell-ink);
  background: rgba(13, 43, 56, .05);
  cursor: pointer;
}

.kshell-menu-lines,
.kshell-menu-lines::before,
.kshell-menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease, top .25s ease;
}

.kshell-menu-lines {
  position: relative;
}

.kshell-menu-lines::before,
.kshell-menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.kshell-menu-lines::before {
  top: -6px;
}

.kshell-menu-lines::after {
  top: 6px;
}

.kshell-menu-toggle[aria-expanded="true"] .kshell-menu-lines {
  background: transparent;
}

.kshell-menu-toggle[aria-expanded="true"] .kshell-menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.kshell-menu-toggle[aria-expanded="true"] .kshell-menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.kshell-header a:focus-visible,
.kshell-header button:focus-visible {
  outline: 3px solid rgba(23, 142, 139, .32);
  outline-offset: 2px;
}

html.kshell-locked {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .kshell-nav-link {
    padding-inline: 11px;
  }
}

/* Narrow: the menu is a full-screen sheet behind the capsule. */
@media (max-width: 900px) {
  .kshell-header-inner {
    padding: 0 8px 0 14px;
  }

  .kshell-header-cta {
    margin-left: auto;
  }

  .kshell-menu-toggle {
    display: inline-flex;
  }

  .kshell-nav-pill {
    display: none;
  }

  .kshell-nav {
    position: fixed;
    z-index: -2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 96px max(24px, calc((100% - 560px) / 2)) 32px;
    overflow-y: auto;
    background: rgba(246, 250, 251, .97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }

  body.admin-bar .kshell-nav {
    padding-top: 128px;
  }

  .kshell-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .kshell-nav-link {
    height: auto;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(13, 43, 56, .08);
    border-radius: 0;
    background: transparent;
    font: 600 26px/1.15 var(--kshell-display);
    letter-spacing: -.02em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .2, 1), color .2s ease;
  }

  .kshell-nav-link {
    color: var(--kshell-ink);
  }

  .kshell-nav-link[aria-current="page"] {
    color: #106f6c;
  }

  .kshell-nav-link[aria-current="page"]::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--kshell-teal);
  }

  .kshell-nav.is-open .kshell-nav-link {
    opacity: 1;
    transform: none;
  }

  .kshell-nav.is-open .kshell-nav-link:nth-child(3) { transition-delay: .03s; }
  .kshell-nav.is-open .kshell-nav-link:nth-child(4) { transition-delay: .06s; }
  .kshell-nav.is-open .kshell-nav-link:nth-child(5) { transition-delay: .09s; }
  .kshell-nav.is-open .kshell-nav-link:nth-child(6) { transition-delay: .12s; }
  .kshell-nav.is-open .kshell-nav-link:nth-child(7) { transition-delay: .15s; }
  .kshell-nav.is-open .kshell-nav-link:nth-child(8) { transition-delay: .18s; }

  /* The order button closes the list of the sheet. */
  .kshell-nav .kshell-contact-nav-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 24px;
    padding: 18px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--kshell-ink);
    font: 600 17px/1 var(--kshell-body);
    letter-spacing: 0;
  }
}

@media (max-width: 782px) {
  body.admin-bar .kshell-header {
    top: 46px;
  }
}

@media (max-width: 620px) {
  .kshell-header-inner,
  .kshell-header.is-scrolled .kshell-header-inner {
    width: calc(100% - 20px);
  }

  .kshell-header-inner::before {
    border-radius: 16px;
  }

  .kshell-brand-logo {
    width: 30px;
    height: 30px;
  }

  .kshell-header-cta {
    height: 40px;
    padding: 0 13px 0 14px;
    font-size: 13.5px;
  }
}

@media (max-width: 360px) {
  .kshell-cta-arrow {
    display: none;
  }

  .kshell-brand-name {
    letter-spacing: .1em;
  }
}

/* ------------------------------------------------------------------ */
/* Footer: a dark closing band (template-parts/kapocs-shell-footer.php). */
/* ------------------------------------------------------------------ */

/* Astra's own back-to-top button: its styles are dequeued on these pages, so it
   would sit unstyled under the footer as a white strip. The footer has its own. */
#ast-scroll-top {
  display: none !important;
}

@property --kshell-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.kshell-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  color: #9fb4bb;
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(40, 170, 166, .14), rgba(40, 170, 166, 0) 60%),
    radial-gradient(60% 90% at 100% 100%, rgba(40, 170, 166, .1), rgba(40, 170, 166, 0) 60%),
    #0a2430;
  font-family: var(--kshell-body);
}

/* A teal hairline along the top edge. */
.kshell-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 208, 203, 0), rgba(95, 208, 203, .45) 30%, rgba(95, 208, 203, .45) 70%, rgba(95, 208, 203, 0));
}

.kshell-footer-container {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.kshell-footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(48px, 5.6vw, 72px) 0 clamp(32px, 3.4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.kshell-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.kshell-footer-brand img {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.kshell-footer-brand-copy {
  display: grid;
  gap: 8px;
}

.kshell-footer-brand-copy strong {
  color: #fff;
  font: 700 18px/1 var(--kshell-display);
  letter-spacing: .16em;
}

.kshell-footer-brand-copy small {
  max-width: 280px;
  color: rgba(255, 255, 255, .5);
  font: 500 12.5px/1.45 var(--kshell-body);
}

.kshell-footer-side {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.kshell-footer-mail {
  display: grid;
  gap: 8px;
  text-align: right;
}

.kshell-footer-mail-label {
  color: #5fd0cb;
  font: 600 11.5px/1 var(--kshell-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kshell-footer-mail-address {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--kshell-display);
  letter-spacing: -.02em;
}

.kshell-footer-mail-arrow {
  color: #5fd0cb;
  font-size: .8em;
  transition: transform .3s cubic-bezier(.2, .9, .2, 1);
}

.kshell-footer-mail:hover .kshell-footer-mail-arrow {
  transform: translateX(5px);
}

.kshell-footer-mail:hover .kshell-footer-mail-address {
  text-decoration: underline;
  text-decoration-color: rgba(95, 208, 203, .5);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.kshell-footer-totop {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.kshell-footer-totop:hover {
  border-color: rgba(95, 208, 203, .6);
  background: rgba(95, 208, 203, .1);
  transform: translateY(-2px);
}

/* The legal links and the payment/copyright line, both centred. */
.kshell-footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 0 28px;
  text-align: center;
}

.kshell-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.kshell-footer-legal a {
  color: rgba(255, 255, 255, .62);
  font: 500 13.5px/1.6 var(--kshell-body);
  transition: color .2s ease;
}

.kshell-footer-legal a:hover {
  color: #fff;
}

.kshell-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}

.kshell-footer-pay {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

/* Barion's minimum digital size is 36px high, with clear space around it
   (the extra class beats the generic .ks-page img rule). */
.kshell-footer .kshell-footer-pay img {
  display: block;
  width: auto;
  height: 36px;
}

.kshell-footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, .42);
  font-size: 13px;
}

.kshell-footer a:focus-visible,
.kshell-footer button:focus-visible {
  outline: 3px solid rgba(95, 208, 203, .55);
  outline-offset: 3px;
}

/* The wordmark, cut by the bottom edge; a teal light follows the pointer. */
.kshell-footer-mark {
  display: flex;
  justify-content: center;
  height: calc(min(21vw, 330px) * .62);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.kshell-footer-mark span {
  display: block;
  color: transparent;
  background:
    radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(95, 208, 203, calc(.6 * var(--kshell-glow))), rgba(95, 208, 203, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .015) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  font: 800 min(21vw, 330px)/.8 var(--kshell-display);
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: --kshell-glow .5s ease;
}

.kshell-footer-mark span.is-lit {
  --kshell-glow: 1;
}

@media (max-width: 760px) {
  .kshell-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .kshell-footer-side {
    justify-content: space-between;
    width: 100%;
  }

  .kshell-footer-mail {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .kshell-footer-container {
    width: calc(100% - 28px);
  }

  .kshell-footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
  }

  .kshell-footer-legal a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kshell-header *,
  .kshell-footer * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .kshell-header,
  .kshell-footer {
    display: none !important;
  }
}
