/* ============================================================
   Boulder Biologics — site chrome (2026-10 redesign)
   ============================================================
   Shared by the homepage and any page on the light theme:
   design tokens, pill buttons, the navy header with dropdown
   nav (.site-header.hp-header), and the stone footer
   (footer.site-footer.hp-footer). Selectors are doubled-up
   (.site-header.hp-header …) so they win over the older header
   and footer rules in _v2-service.css / _shared.css and the
   hamburger rules in _nav.css. Load after those files.
   ============================================================ */

:root {
  --hp-navy:      #07172a;
  --hp-bone:      #fbfaf7;
  --hp-stone:     #f1eee6;
  --hp-white:     #ffffff;
  --hp-blue:      #15457a;
  --hp-blue-dk:   #103864;
  --hp-sky:       #2a9fd6;
  --hp-sky-dk:    #1f8cc0;
  --hp-sky-lt:    #8fd3e8;
  --hp-action:    #22507e;  /* filled buttons + dropdown panels */
  --hp-action-hover: #2b6299;
  --hp-teal:      #0f6387;
  --hp-text-2:    #3a4757;
  --hp-meta:      #5b6877;
  --hp-on-dark:   #eef4f8;
  --hp-on-dark-2: rgba(221,232,241,0.84);
  --hp-rule:      rgba(7,23,42,0.14);
  --hp-rule-dk:   rgba(255,255,255,0.12);
  --hp-shadow:    0 1px 2px rgba(7,23,42,0.05), 0 6px 18px rgba(7,23,42,0.05);
  --hp-ease:      cubic-bezier(0.2,0.7,0.2,1);
  --hp-serif:     'Source Serif 4', Georgia, serif;
  --hp-sans:      'Source Sans 3', system-ui, -apple-system, sans-serif;
  --hp-gutter:    64px;
  --hp-max:       1152px;
}
@media (max-width: 1100px) { :root { --hp-gutter: 40px; } }
@media (max-width: 900px)  { :root { --hp-gutter: 24px; } }
@media (max-width: 640px)  { :root { --hp-gutter: 16px; } }

/* ---------- Buttons ---------- */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--hp-sans); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 12px 22px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: background-color 220ms var(--hp-ease), border-color 220ms var(--hp-ease), color 220ms var(--hp-ease);
}
.hp-btn--lg { font-size: 18px; padding: 15px 26px; }
/* Filled action button: same mid-blue as the header dropdowns */
.hp-btn--sky { background: var(--hp-action); color: #fff !important; border-color: rgba(143,211,232,0.40); }
.hp-btn--sky:hover { background: var(--hp-action-hover); border-color: rgba(143,211,232,0.60); }
.hp-btn--ghost-dark { color: var(--hp-sky-lt) !important; border-color: rgba(255,255,255,0.28); }
.hp-btn--ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }
.hp-btn--ghost { color: var(--hp-blue) !important; border-color: rgba(7,23,42,0.22); }
.hp-btn--ghost:hover { background: rgba(21,69,122,0.06); border-color: var(--hp-blue); }
.hp-btn--white { background: #fff; color: #0a1726 !important; }
.hp-btn--white:hover { background: #e6eef5; }
.hp-btn--sm { font-size: 15px; padding: 9px 18px; }
/* Phone buttons: icon + number; the word "Call" only shows on phones, where the number is hidden */
.hp-btn .hp-call-ic { flex: none; width: 1em; height: 1em; }
.hp-call-word { display: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header.hp-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--hp-navy); color: var(--hp-on-dark);
  border-bottom: 1px solid var(--hp-rule-dk);
  font-family: var(--hp-sans);
}
.site-header.hp-header .site-header__inner {
  max-width: calc(var(--hp-max) + 2 * var(--hp-gutter)); margin: 0 auto;
  padding: 18px var(--hp-gutter);
  display: flex; align-items: center; justify-content: flex-start; gap: 40px; flex-wrap: nowrap;
}
.site-header.hp-header .site-header__logo img { height: 48px; width: auto; display: block; }
.site-header.hp-header nav {
  flex: 1; display: flex; align-items: center; justify-content: flex-start; gap: 4px;
  font-weight: 600; font-size: 16px; border: 0; padding: 0;
}
.site-header.hp-header nav a.hp-nav__link,
.site-header.hp-header .hp-dd__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--hp-on-dark-2);
  font-family: var(--hp-sans); font-weight: 600; font-size: 16px; line-height: 1.4;
  background: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: color 220ms var(--hp-ease), background-color 220ms var(--hp-ease);
}
.site-header.hp-header nav a.hp-nav__link:hover,
.site-header.hp-header .hp-dd__btn:hover,
.site-header.hp-header .hp-dd__btn[aria-expanded="true"],
.site-header.hp-header nav a.hp-nav__link[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.06); }
.site-header.hp-header .hp-dd__btn svg { transition: transform 220ms var(--hp-ease); }
.site-header.hp-header .hp-dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-header.hp-header .hp-dd { position: relative; }
.site-header.hp-header .hp-dd__panel {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px;
  padding: 8px; background: var(--hp-action);  /* mid-blue: stands off both the navy header/hero and the light page bands */
  border: 1px solid rgba(143,211,232,0.40); border-radius: 14px;
  box-shadow: 0 22px 48px rgba(2,8,15,0.55), 0 2px 6px rgba(2,8,15,0.30);
}
.site-header.hp-header .hp-dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.site-header.hp-header .hp-dd__panel a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-family: var(--hp-sans); font-weight: 600; font-size: 15.5px; line-height: 1.4;
  color: #fff; white-space: nowrap; text-decoration: none; background: none;
}
.site-header.hp-header .hp-dd__panel a:hover { background: rgba(255,255,255,0.12); color: #fff; }
/* Sub-items (the providers under "Our Team") */
.site-header.hp-header .hp-dd__panel a.hp-dd__sub { padding-left: 34px; position: relative; }
.site-header.hp-header .hp-dd__panel a.hp-dd__sub::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 8px; height: 1px; background: rgba(255,255,255,0.55);
}
.site-header.hp-header .hp-dd__panel a[aria-current="page"] { color: var(--hp-sky-lt); }
.site-header.hp-header .hp-dd__label {
  display: block; padding: 10px 12px 4px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #66cdf4;  /* logo-azure family: distinct from the white links, 4.6:1 on the panel */
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.site-header.hp-header .hp-dd__panel--cols { min-width: 520px; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.site-header.hp-header .hp-dd__btn[aria-expanded="true"] + .hp-dd__panel { display: block; }
.site-header.hp-header .hp-dd__btn[aria-expanded="true"] + .hp-dd__panel--cols { display: grid; }
@media (hover: hover) and (min-width: 1025px) {
  .site-header.hp-header .hp-dd:hover > .hp-dd__panel { display: block; }
  .site-header.hp-header .hp-dd:hover > .hp-dd__panel--cols { display: grid; }
}
.site-header.hp-header .site-header__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-header.hp-header .hp-header__request { padding: 11px 20px; }

/* Hamburger (from _nav.css) recoloured for the navy bar */
.site-header.hp-header .nav-toggle { border-color: rgba(255,255,255,0.28); }
.site-header.hp-header .nav-toggle:hover { background: rgba(255,255,255,0.08); }
.site-header.hp-header .nav-toggle__bar { background: var(--hp-on-dark); }

/* _nav.css collapses at 1240px for the old 9-item nav; this 5-item nav fits down to 1025px */
@media (min-width: 1025px) and (max-width: 1240px) {
  .site-header.hp-header nav { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-header.hp-header .nav-toggle { display: none; }
}
@media (max-width: 1100px) { .site-header.hp-header .site-header__inner { gap: 24px; } }
@media (max-width: 1024px) {
  .site-header.hp-header .site-header__inner { padding-block: 12px; gap: 12px; position: relative; }
  .site-header.hp-header .site-header__logo img { height: 42px; }
  .site-header.hp-header .site-header__cta { order: 2; margin-left: auto; }
  .site-header.hp-header .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .site-header.hp-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    background: var(--hp-navy); border-top: 1px solid var(--hp-rule-dk); border-bottom: 1px solid var(--hp-rule-dk);
    box-shadow: 0 18px 30px rgba(2,8,15,0.4); padding: 8px var(--hp-gutter) 16px;
    max-height: calc(100vh - 100%); overflow-y: auto;
  }
  .site-header.hp-header nav.nav--open { display: flex; }
  .site-header.hp-header nav a.hp-nav__link,
  .site-header.hp-header .hp-dd__btn { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: 16px; }
  .site-header.hp-header .hp-dd__panel,
  .site-header.hp-header .hp-dd__panel--cols {
    position: static; min-width: 0; box-shadow: none; border: 0; background: rgba(255,255,255,0.04);
    margin: 0 0 6px; grid-template-columns: 1fr;
  }
  .site-header.hp-header .hp-dd__panel::before { display: none; }
  .site-header.hp-header .hp-dd__panel a { white-space: normal; }
}
@media (min-width: 1025px) and (max-width: 1150px) {
  .site-header.hp-header .hp-header__request { display: none; }  /* inline nav + both buttons don't fit here */
}
@media (max-width: 640px) {
  .site-header.hp-header .hp-header__request { display: none; }  /* phones: Call + menu only */
}
@media (max-width: 520px) {
  .site-header.hp-header .hp-call-num { display: none; }
  .site-header.hp-header .hp-call-word { display: inline; }
}

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer.hp-footer {
  background: var(--hp-stone); color: var(--hp-text-2); font-family: var(--hp-sans); font-size: 15.5px;
  padding: 0; border-top: 0;
}
footer.site-footer.hp-footer a { color: inherit; font-size: inherit; text-decoration: none; transition: color 220ms var(--hp-ease); }
footer.site-footer.hp-footer a:hover { color: var(--hp-blue); }
footer.site-footer.hp-footer .site-footer__cols {
  max-width: calc(var(--hp-max) + 2 * var(--hp-gutter)); margin: 0 auto; padding: 56px var(--hp-gutter) 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
footer.site-footer.hp-footer .site-footer__cols img { height: 44px; width: auto; display: block; }
footer.site-footer.hp-footer .site-footer__tag { margin: 14px 0 0; max-width: 28ch; line-height: 1.5; font-size: 15.5px; color: var(--hp-text-2); }
footer.site-footer.hp-footer .site-footer__socials { display: flex; gap: 10px; margin-top: 16px; }
footer.site-footer.hp-footer .site-footer__socials a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(7,23,42,0.18); color: var(--hp-blue);
}
footer.site-footer.hp-footer .site-footer__socials a:hover { border-color: var(--hp-blue); }
footer.site-footer.hp-footer h4 {
  font-family: var(--hp-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-navy); margin: 0 0 12px;
}
footer.site-footer.hp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
footer.site-footer.hp-footer .site-footer__legal {
  max-width: calc(var(--hp-max) + 2 * var(--hp-gutter)); margin: 0 auto; padding: 20px var(--hp-gutter) 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--hp-rule); font-size: 14px; color: var(--hp-meta);
}
footer.site-footer.hp-footer .footer-disclaimer {
  width: calc(100% - 2 * var(--hp-gutter)); max-width: var(--hp-max); margin: 0 auto 28px;
  padding: 22px 24px; background: #fff; border: 1px solid var(--hp-rule); border-radius: 16px;
}
@media (max-width: 1100px) {
  footer.site-footer.hp-footer .site-footer__cols { grid-template-columns: 1fr 1fr 1fr; }
  footer.site-footer.hp-footer .site-footer__cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  footer.site-footer.hp-footer .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
