/* KeptWeb sitewide contact info bar. Loaded from /assets/kw-infobar.css on every page. */
.kw-infobar {
  box-sizing: border-box;
  width: 100%;
  background: var(--navy, #0b1f3a);
  color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.kw-infobar *,
.kw-infobar *::before,
.kw-infobar *::after {
  box-sizing: border-box;
}

.kw-infobar-inner {
  width: min(100% - 2rem, var(--max, 1100px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 0.85rem;
  padding-block: 0.15rem;
}

.kw-infobar-copy {
  margin: 0;
  flex: 1 1 14rem;
  min-width: 0;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0;
}

.kw-infobar-sep {
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.kw-infobar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.15rem;
  flex: 0 1 auto;
  margin-left: auto;
}

.kw-infobar a {
  color: inherit;
  text-decoration: none;
}

.kw-infobar a:hover {
  text-decoration: none;
}

.kw-infobar a:focus-visible {
  outline: 3px solid #f6c7b1;
  outline-offset: 2px;
  border-radius: 6px;
}

.kw-infobar-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f6c7b1;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  min-height: 32px;
  padding: 0 0.3rem;
  border-radius: 6px;
}

.kw-infobar-phone:hover,
.kw-infobar-phone:focus-visible {
  color: #fff;
}

.kw-infobar-phone .ico {
  flex: 0 0 auto;
}

.kw-infobar-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.kw-infobar-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.kw-infobar-social a .ico {
  width: 14px;
  height: 14px;
}

.kw-infobar-soc-ig {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.kw-infobar-soc-x {
  background: #000;
}

.kw-infobar-soc-x::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.kw-infobar-soc-yt {
  background: #FF0000;
}

.kw-infobar-soc-fb {
  background: #1877F2;
}

.kw-infobar-soc-li {
  background: #0A66C2;
}

.kw-infobar-soc-tt {
  background: #000;
}

.kw-infobar-soc-tt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.kw-infobar-social a:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.kw-infobar-social a:focus-visible {
  color: #fff;
  outline: 3px solid #f6c7b1;
  outline-offset: 2px;
  border-radius: 50%;
}

/* Standalone pages (redirect stubs, portfolio samples) have no sticky site header. */
body > .kw-infobar {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Taller sticky chrome: keep in-page anchors and the mobile menu below the bar. */
[id] {
  scroll-margin-top: 8.5rem;
}

@media (max-width: 1099.98px) {
  [id] {
    scroll-margin-top: 10rem;
  }

  .kw-infobar-phone {
    min-height: 44px;
  }

  /* 28px badge centered in a 40px tap target */
  .kw-infobar-social a {
    width: 40px;
    height: 40px;
    border: 6px solid transparent;
    background-clip: padding-box;
    background-origin: padding-box;
  }


  .nav-links.open {
    max-height: calc(100vh - 8.5rem);
  }
}

@media (max-width: 399.98px) {
  .kw-infobar {
    font-size: 0.75rem;
  }

  .kw-infobar-inner {
    padding-block: 0.2rem;
  }

  .kw-infobar-phone {
    font-size: 0.875rem;
  }

  .kw-infobar-social a {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kw-infobar-social a {
    transition: none;
  }

  .kw-infobar-social a:hover {
    transform: none;
    filter: brightness(1.12);
  }
}
