/* Base: applies to every page, including the old pages until they are rebuilt. */
body {
  font-family: var(--kb-font-body);
  color: var(--kb-body);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--kb-font-head);
  color: var(--kb-ink);
}
a { color: var(--kb-gold-ink); }
a:hover, a:focus { color: var(--kb-ink); }
/* Focus ring: dark on the light page, gold inside the navy areas, so it is always visible. */
/* #page raises these above the parent theme and block styles that switch focus outlines off. */
:focus-visible, #page :focus-visible { outline: 2px solid var(--kb-ink); outline-offset: 3px; }
#page .kb-masthead :focus-visible, #page .kb-hero :focus-visible, #page .kb-cta-band :focus-visible, #page .kb-footer :focus-visible { outline-color: var(--kb-gold); }

/* The header is sticky: keep anchor targets and focused elements clear of it. */
html { scroll-padding-top: 88px; }

/* Centred content column: 1080px of content plus a 24px gutter each side. */
.kb-wrap, #content .kb-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--kb-width) + 2 * var(--kb-gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--kb-gutter);
  padding-right: var(--kb-gutter);
}

/* Astra's scroll-to-top button is off-palette and its script is not loaded. */
#ast-scroll-top { display: none !important; }

/* ---------- Header ---------- */
.kb-masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 22, .96);
  border-bottom: 1px solid var(--kb-line-dark);
  color: var(--kb-ink-light);
  font-family: var(--kb-font-body);
}
.kb-masthead__in { display: flex; align-items: center; gap: 24px; min-height: 68px; transition: min-height .2s; }
.kb-masthead.is-scrolled .kb-masthead__in { min-height: 56px; }
.kb-logo { display: flex; align-items: center; margin-right: auto; min-height: 44px; }
.kb-masthead .kb-logo__img { display: block; width: auto; max-width: none; height: 46px; transition: height .2s; } /* .kb-masthead raises it above WooCommerce's "img { height: auto }" */
.kb-masthead.is-scrolled .kb-logo__img { height: 38px; }
.kb-logo__text { font-family: var(--kb-font-head); font-weight: 800; font-size: 20px; color: var(--kb-gold); }

.kb-nav__list, .kb-menu-m__list { list-style: none; margin: 0; padding: 0; }
.kb-nav__list { display: flex; gap: 26px; }
.kb-nav__list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--kb-ink-light); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.kb-nav__list a:hover, .kb-nav__list a:focus, .kb-nav__list .current-menu-item > a { color: var(--kb-gold); }

.kb-masthead__actions { display: flex; align-items: center; gap: 10px; }
.kb-wa, .kb-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.kb-wa { border: 1px solid var(--kb-line-dark); color: var(--kb-ink-light); }
.kb-wa:hover, .kb-wa:focus { border-color: var(--kb-gold); color: var(--kb-gold); }
.kb-cta, .kb-cta:visited { background: var(--kb-gold); color: var(--kb-navy); }
.kb-cta:hover, .kb-cta:focus { background: var(--kb-gold-hover); color: var(--kb-navy); transform: translateY(-1px); }

/* Phone menu: a native <details>, hidden on wide screens. */
.kb-menu-m { display: none; }
.kb-menu-m > summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--kb-line-dark);
  display: flex; align-items: center; justify-content: center;
}
.kb-menu-m > summary::-webkit-details-marker { display: none; }
.kb-menu-m__bars, .kb-menu-m__bars::before, .kb-menu-m__bars::after {
  display: block; width: 18px; height: 2px; background: var(--kb-gold); border-radius: 2px; content: ""; position: relative;
}
.kb-menu-m__bars::before { position: absolute; top: -6px; left: 0; }
.kb-menu-m__bars::after { position: absolute; top: 6px; left: 0; }
.kb-menu-m > nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--kb-navy); border-bottom: 1px solid var(--kb-line-dark); padding: 6px var(--kb-gutter) 14px;
}
.kb-menu-m__list a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--kb-ink-light); font-size: 16px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.kb-menu-m__list li:last-child a { border-bottom: 0; }
.kb-menu-m__list a:hover, .kb-menu-m__list a:focus { color: var(--kb-gold); }

@media (max-width: 920px) {
  .kb-nav { display: none; }
  .kb-menu-m { display: block; }
  .kb-masthead__in { gap: 12px; min-height: 64px; }
  .kb-masthead .kb-logo__img { height: 42px; }
}
@media (max-width: 400px) {
  .kb-masthead__in { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .kb-masthead__actions { gap: 6px; }
  .kb-wa, .kb-cta { padding: 0 10px; font-size: 13px; }
}

/* ---------- Footer ---------- */
.kb-footer {
  background: #070A11;
  border-top: 1px solid var(--kb-line-dark);
  color: var(--kb-muted-light);
  font-family: var(--kb-font-body);
  font-size: 14.5px;
  padding: 44px 0 26px;
}
.kb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.kb-footer p { margin: 0 0 4px; }
.kb-footer__name { font-family: var(--kb-font-head); font-weight: 700; font-size: 17px; color: var(--kb-ink-light); margin-bottom: 8px !important; }
.kb-footer h2 {
  font-family: var(--kb-font-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--kb-gold); margin: 0 0 6px;
}
.kb-footer__list { list-style: none; margin: 0; padding: 0; }
.kb-footer__list a { display: flex; align-items: center; min-height: 44px; color: var(--kb-ink-light); text-decoration: none; }
.kb-footer__list a:hover, .kb-footer__list a:focus { color: var(--kb-gold); }
.kb-footer__legal { margin: 30px 0 0 !important; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.6; color: var(--kb-muted-light); }

@media (max-width: 820px) { .kb-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kb-footer__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Motion ---------- */
.kb-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.kb-reveal.is-in { opacity: 1; transform: none; }

/* Visitors who ask for reduced motion get a static page. */
@media (prefers-reduced-motion: reduce) {
  .kb-masthead, .kb-masthead *, #content *, #content *::before, #content *::after, .kb-footer * {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .kb-reveal { opacity: 1 !important; transform: none !important; }
}

/* Print: nothing waits to be scrolled into view, and the header does not repeat. */
@media print {
  .kb-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kb-masthead { position: static; }
}
