/* Sitewide header (.kh) and footer (.kf). */

/* Arial metrics matched to the web fonts so text doesn't reflow when they load. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 900;
  size-adjust: 111.9%;
  ascent-override: 86.5%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Lato Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 100 500;
  size-adjust: 98.3%;
  ascent-override: 100.4%;
  descent-override: 21.7%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Lato Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 900;
  size-adjust: 94.4%;
  ascent-override: 104.6%;
  descent-override: 22.6%;
  line-gap-override: 0%;
}

.kh,
.kf {
  --k-ink: #10151c;
  --k-red: #c0262d;
  --k-red-deep: #8f1b22;
  --k-muted: #5b6676;
  --k-line: #e3e7ee;
  --k-soft: #f4f6f9;
  --k-gutter: clamp(1rem, 4vw, 2rem);
  font-family: Lato, "Lato Fallback", "Segoe UI", sans-serif;
  color: var(--k-ink);
}

html {
  scroll-padding-top: calc(var(--kh-height, 76px) + 12px);
}

html.kh-locked {
  overflow: hidden;
}

.kh-skip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: #10151c;
  color: #fff;
  font-weight: 700;
  transform: translateY(-200%);
}

.kh-skip:focus {
  transform: none;
}

/* ---------- Header ---------- */

.kh {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--k-line);
  transition: box-shadow 200ms ease;
}

.kh.is-scrolled,
.kh.is-open {
  box-shadow: 0 10px 30px -18px rgba(16, 40, 70, 0.45);
}

.kh.is-open {
  background: #fff;
}

.admin-bar .kh {
  top: 32px;
}

.kh__util {
  display: none;
  background: var(--k-soft);
  border-bottom: 1px solid var(--k-line);
  font-size: 0.86rem;
}

.kh__util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, 100%);
  height: 38px;
  margin: 0 auto;
  padding: 0 var(--k-gutter);
}

.kh__util-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--k-muted);
  font-weight: 700;
  white-space: nowrap;
}

.kh__util-info svg {
  width: 16px;
  height: 16px;
  fill: var(--k-red);
}

.kh__util-locs {
  display: none;
}

.kh__util-locs::before {
  content: "·";
  margin: 0 0.5rem 0 0.15rem;
}

.kh__util-locs a + a::before {
  content: "·";
  margin: 0 0.5rem;
  color: var(--k-muted);
}

.kh__util a {
  color: var(--k-muted);
  font-weight: 700;
  text-decoration: none;
}

.kh__util a:hover,
.kh__util a:focus-visible {
  color: var(--k-red-deep);
}

.kh__util-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
}

.kh__util-links a {
  color: var(--k-ink);
}

.kh__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(1160px, 100%);
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--k-gutter);
}

.kh__brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.kh__brand img {
  width: 122px;
  height: auto;
}

.kh__nav {
  display: none;
}

.kh__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.kh__account {
  display: none;
  align-items: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 0.7rem;
  border-radius: 12px;
  color: var(--k-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.kh__account svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.kh__account span {
  display: none;
}

.kh__account:hover,
.kh__account:focus-visible {
  background: var(--k-soft);
  color: var(--k-red-deep);
}

.kh__join {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #d22f36 0%, var(--k-red) 55%, #ad2128 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 18px -8px rgba(192, 38, 45, 0.7);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.kh__join-long {
  display: none;
}

.kh__join:hover,
.kh__join:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 22px -8px rgba(192, 38, 45, 0.8);
}

.kh__toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--k-line);
  border-radius: 12px;
  background: #fff;
  color: var(--k-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kh__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.kh__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 160ms ease, top 220ms ease;
}

.kh__bars i:nth-child(1) { top: 0; }
.kh__bars i:nth-child(2) { top: 6px; }
.kh__bars i:nth-child(3) { top: 12px; }

.kh.is-open .kh__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.kh.is-open .kh__bars i:nth-child(2) { opacity: 0; }
.kh.is-open .kh__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Menu panel */

.kh__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--kh-height, 64px));
  height: calc(100dvh - var(--kh-height, 64px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(16, 21, 28, 0.38);
}

.kh__menu[hidden] {
  display: none;
}

.kh__menu-inner {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  padding: 0.5rem var(--k-gutter) 1.5rem;
  background: #fff;
  border-top: 1px solid var(--k-line);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 24px 40px -20px rgba(16, 40, 70, 0.5);
  animation: kh-drop 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.kh__menu-main {
  display: grid;
}

.kh__menu-main a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.15rem;
  border-bottom: 1px solid var(--k-line);
  color: var(--k-ink);
  font-family: Montserrat, "Montserrat Fallback", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.kh__menu-main a span {
  color: #a8b1be;
  font-size: 1.5rem;
  line-height: 1;
}

.kh__menu-main a:hover,
.kh__menu-main a:focus-visible {
  color: var(--k-red-deep);
}

.kh__menu-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.kh__menu-account {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--k-line);
  border-radius: 16px;
  background: var(--k-soft);
  color: var(--k-ink);
  text-decoration: none;
}

.kh__menu-account svg {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  fill: var(--k-red);
}

.kh__menu-account strong,
.kh__menu-account small {
  display: block;
}

.kh__menu-account strong {
  font-size: 1.02rem;
}

.kh__menu-account small {
  color: var(--k-muted);
  font-size: 0.88rem;
}

.kh__menu-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kh__menu-more a {
  display: block;
  padding: 0.5rem 0.15rem;
  color: var(--k-muted);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.kh__menu-more a:hover,
.kh__menu-more a:focus-visible {
  color: var(--k-red-deep);
}

.kh__menu-hours {
  margin: 0;
  color: var(--k-muted);
  font-size: 0.88rem;
}

.kh__menu-hours a {
  color: var(--k-ink);
  font-weight: 700;
}

@keyframes kh-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

.kf {
  margin-top: 0;
  background: #fff;
  border-top: 1px solid var(--k-line);
}

.kf__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 3.5rem) var(--k-gutter) 1.25rem;
}

.kf__top {
  display: grid;
  gap: 2rem;
}

.kf__logo {
  display: inline-block;
  line-height: 0;
}

.kf__logo img {
  width: 150px;
  height: auto;
}

.kf__tagline {
  margin: 0.6rem 0 1rem;
  color: var(--k-muted);
  font-weight: 700;
}

.kf__social {
  display: flex;
  gap: 0.5rem;
}

.kf__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--k-line);
  border-radius: 50%;
  color: var(--k-ink);
  transition: color 160ms ease, border-color 160ms ease;
}

.kf__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.kf__social a:hover,
.kf__social a:focus-visible {
  color: var(--k-red);
  border-color: var(--k-red);
}

.kf__heading {
  margin: 0 0 0.75rem;
  color: var(--k-ink);
  font-family: Montserrat, "Montserrat Fallback", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kf__heading span {
  margin-left: 0.4rem;
  color: var(--k-muted);
  font-family: Lato, "Lato Fallback", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.kf__heading span::before {
  content: "·";
  margin-right: 0.4rem;
}

.kf ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kf__locations li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--k-line);
}

.kf__locations li:last-child {
  border-bottom: 1px solid var(--k-line);
}

.kf__loc-name {
  color: var(--k-ink);
  font-weight: 900;
  text-decoration: none;
}

.kf__loc-addr {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--k-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.kf__loc-phone {
  grid-column: 2;
  grid-row: 1;
  color: var(--k-red-deep);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.kf__loc-name:hover,
.kf__loc-phone:hover {
  text-decoration: underline;
}

.kf__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1rem;
}

.kf__links a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--k-muted);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.kf__links a:hover,
.kf__links a:focus-visible {
  color: var(--k-red-deep);
}

.kf__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--k-line);
  color: var(--k-muted);
  font-size: 0.85rem;
}

.kf__bottom p {
  margin: 0;
}

.kf__bottom ul {
  display: flex;
  gap: 1.25rem;
}

.kf__bottom a {
  color: var(--k-muted);
  text-decoration: none;
}

.kf__bottom a:hover {
  color: var(--k-ink);
  text-decoration: underline;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 420px) {
  .kh__join-short {
    display: none;
  }

  .kh__join-long {
    display: inline;
  }
}

@media (min-width: 600px) {
  .kh__bar {
    height: 72px;
  }

  .kh__brand img {
    width: 140px;
  }

  .kh__account {
    display: inline-flex;
  }

  .kh__join {
    height: 44px;
    padding: 0 1.2rem;
  }
}

@media (min-width: 701px) {
  .kh__menu-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .kf__top {
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
  }

  .kf__links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .admin-bar .kh {
    top: 0;
  }
}

@media (min-width: 760px) {
  .kh__util {
    display: block;
  }
}

@media (min-width: 1000px) {
  .kh__bar {
    gap: 1rem;
  }

  .kh__nav {
    display: flex;
    align-items: center;
  }

  .kh__nav a {
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    color: var(--k-ink);
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
  }

  .kh__nav a:hover,
  .kh__nav a:focus-visible {
    color: var(--k-red-deep);
    background: var(--k-soft);
  }

  .kh__toggle,
  .kh__menu {
    display: none;
  }

  .kh__menu-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
  }

  .kf__top {
    grid-template-columns: 0.9fr 1.25fr 1.6fr;
    gap: 3rem;
  }

  .kf__links {
    grid-column: auto;
  }
}

@media (min-width: 1180px) {
  .kh__bar {
    height: 76px;
    gap: 2rem;
  }

  .kh__brand img {
    width: 150px;
  }

  .kh__nav {
    gap: 0.25rem;
  }

  .kh__nav a {
    padding: 0.55rem 0.75rem;
    font-size: 0.98rem;
  }

  .kh__account span {
    display: inline;
  }

  .kh__util-locs {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh__menu-inner {
    animation: none;
  }

  .kh__bars i,
  .kh__join {
    transition: none;
  }
}
