/* chrome.css — Holt Walti
   Shared header + footer for every page (home, /custom-crm, /fractional-coo, /fractional-sdr).
   Self-contained: does not depend on style.css or crm.css variables. */

.hw-top,
.hw-foot {
  --hw-ink: #0a1428;
  --hw-ink-2: #14223f;
  --hw-line: rgba(255, 255, 255, 0.14);
  --hw-text: #f5f2ea;
  --hw-soft: #b9c3d8;
  --hw-accent: #2f6e4b;
  --hw-accent-hi: #6fbf8f;
  --hw-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --hw-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--hw-body);
  color: var(--hw-text);
  background: var(--hw-ink);
}

.hw-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */
.hw-top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hw-line);
}
.hw-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  position: relative;
}
.hw-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--hw-text);
  text-decoration: none;
  font-family: var(--hw-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.hw-mark__svg {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
}

.hw-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.hw-nav a {
  color: var(--hw-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.hw-nav a:hover,
.hw-nav a[aria-current='page'] {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.hw-nav .hw-nav__cta {
  margin-left: 0.5rem;
  background: var(--hw-accent);
  color: #fff;
  font-weight: 600;
  padding-inline: 1rem;
}
.hw-nav .hw-nav__cta:hover {
  background: #255a3d;
  color: #fff;
}

.hw-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hw-text);
  background: transparent;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}
.hw-toggle svg {
  display: block;
}

.hw-top a:focus-visible,
.hw-top button:focus-visible,
.hw-foot a:focus-visible {
  outline: 2px solid var(--hw-accent-hi);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .hw-toggle {
    display: inline-flex;
  }
  .hw-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    background: var(--hw-ink);
    border-bottom: 1px solid var(--hw-line);
  }
  .hw-nav.is-open {
    display: flex;
  }
  .hw-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--hw-line);
    border-radius: 0;
    font-size: 1.05rem;
    color: var(--hw-text);
  }
  .hw-nav .hw-nav__cta {
    margin: 0.9rem 0 0;
    border-radius: 10px;
    border-bottom: 0;
    text-align: center;
  }
}
/* No-JS: keep the mobile nav reachable */
.no-js .hw-toggle {
  display: none !important;
}
@media (max-width: 900px) {
  .no-js .hw-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 0 0.75rem;
    border: 0;
  }
  .no-js .hw-top__inner {
    flex-wrap: wrap;
    padding-top: 0.75rem;
  }
  .no-js .hw-nav a {
    border: 0;
    padding: 0.4rem 0.6rem 0.4rem 0;
    font-size: 0.95rem;
  }
  .no-js .hw-nav .hw-nav__cta {
    margin: 0;
    padding: 0.4rem 0.8rem;
  }
}

/* ---------- Footer ---------- */
.hw-foot {
  border-top: 1px solid var(--hw-line);
  padding-block: 2.75rem 2.25rem;
}
.hw-foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--hw-line);
}
.hw-foot__big {
  font-family: var(--hw-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  max-width: 18ch;
  margin: 0;
}
.hw-foot__big a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--hw-accent), var(--hw-accent));
  background-size: 100% 0.12em;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
.hw-foot__big a:hover {
  background-size: 100% 100%;
}
.hw-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--hw-soft);
}
.hw-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.hw-foot__links a {
  color: var(--hw-soft);
  text-decoration: none;
}
.hw-foot__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hw-foot__big a {
    transition: none;
  }
}

/* Type system B — Big Shoulders Display headlines (uppercase), Public Sans body, condensed Martian Mono */
.hw-foot__big {
  text-transform: uppercase;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 0.95;
}
.hw-mark {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
