/* Hub pages: /services/ (catering types), /catering/, state pages and the
   compact answer line on category pages. 2026-10-23. Uses the site tokens
   (--surface, --ink, --brand ...) so dark (default) and light both follow. */

/* The answer paragraph rendered as a subtitle line, not a card. Specificity
   has to beat theme-modern (:root:root .answer-block) and theme-light. */
html:root:root .answer-block.hub-lead,
html:root:root[data-theme="light"] .answer-block.hub-lead {
  background: none; background-image: none; border: 0; box-shadow: none; border-radius: 0;
  padding: 0; margin: .35rem 0 1.1rem; max-width: 70ch;
  font-size: 1.05rem; line-height: 1.5; color: var(--ink-2);
}
html:root:root .answer-block.hub-lead::before { display: none; }
.hub-head { margin-bottom: 0; }
.hub-head h1, .hub-top h1 { margin-bottom: 0; }
/* On a category page the line follows the photo hero. */
.page-hero + .answer-block.hub-lead { margin-top: -.4rem; }

/* /services/ header: title + line on the left, quote CTA on the right. */
.hub-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: .2rem; }
.hub-top__text { min-width: 0; }
.hub-top .answer-block.hub-lead { margin-bottom: .9rem; }
.hub-top__cta { flex: none; margin-bottom: .9rem; }

/* Jump chips for the four groups. */
.hub-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.hub-jump__chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 650; font-size: .98rem; text-decoration: none;
  transition: border-color .12s, background .12s;
}
.hub-jump__chip svg { width: 18px; height: 18px; color: var(--brand); }
.hub-jump__chip b {
  font-size: .82rem; font-weight: 700; min-width: 1.6rem; text-align: center;
  padding: .05rem .45rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand);
}
html:root:root .hub-jump__chip { color: var(--ink); }
.hub-jump__chip:hover { border-color: var(--brand); background: var(--surface-2); }

/* Sections + tiles */
.hub-sec { margin: 0 0 1.6rem; scroll-margin-top: 6.5rem; }
.hub-sec h2 { font-size: 1.35rem; margin: 0 0 .7rem; display: flex; align-items: baseline; gap: .6rem; }
.hub-sec__n { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.hub-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.hub-tile {
  display: flex; align-items: center; gap: .75rem; min-height: 4.6rem;
  padding: .65rem .75rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
html:root:root .hub-tile { color: var(--ink); }
.hub-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.hub-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hub-tile__img {
  flex: none; width: 3.25rem; height: 3.25rem; border-radius: 11px; object-fit: cover;
  background: var(--surface-2); display: grid; place-items: center;
}
.hub-tile__img--tint { background: linear-gradient(135deg, var(--t1), var(--t2)); color: rgba(255,255,255,.92); }
.hub-tile__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hub-tile__name { font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.hub-tile__desc {
  font-size: .82rem; line-height: 1.4; color: var(--ink-3); margin-top: .15rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-tile__n {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 3.4rem; padding: .3rem .45rem; border-radius: 10px;
  background: var(--brand-tint); border: 1px solid rgba(245,185,66,.35); color: var(--brand); line-height: 1.1;
}
.hub-tile__n b { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hub-tile__n small { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.hub-tile__n--none { background: var(--surface-2); border-color: var(--line); color: var(--ink-3); }

/* Light mode: token swap does most of it; borders and badge need a nudge. */
html:root:root[data-theme="light"] .hub-tile,
html:root:root[data-theme="light"] .hub-jump__chip { background: #fff; border-color: #e5e7eb; box-shadow: 0 1px 2px rgba(17,24,39,.05); }
html:root:root[data-theme="light"] .hub-tile:hover,
html:root:root[data-theme="light"] .hub-jump__chip:hover { border-color: #d99a1e; background: #fffaf0; }
html:root:root[data-theme="light"] .hub-tile__n { border-color: #f1d9a4; color: #8a5800; }
html:root:root[data-theme="light"] .hub-tile__n--none { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
html:root:root[data-theme="light"] .hub-jump__chip b { color: #8a5800; }

/* Mobile: two tight columns, no summary, smaller swatch. */
@media (max-width: 40rem) {
  .hub-top { display: block; }
  .hub-top__cta { display: none; } /* the sticky "Get free quotes" bar covers this on phones */
  .hub-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem)); padding: 0 clamp(1rem, 4vw, 2rem) .2rem; scrollbar-width: none; }
  .hub-jump::-webkit-scrollbar { display: none; }
  .hub-jump__chip { flex: none; padding: .5rem .8rem; font-size: .95rem; }
  .hub-sec h2 { font-size: 1.2rem; }
  .hub-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .hub-tile { flex-wrap: wrap; align-items: flex-start; gap: .45rem .5rem; padding: .6rem; min-height: 0; position: relative; }
  .hub-tile__img { width: 2.4rem; height: 2.4rem; border-radius: 9px; }
  .hub-tile__img svg { width: 18px; height: 18px; }
  .hub-tile__body { flex-basis: 100%; order: 3; }
  .hub-tile__name { font-size: .93rem; }
  .hub-tile__desc { display: none; }
  .hub-tile__n { margin-left: auto; flex-direction: row; gap: .25rem; min-width: 0; padding: .2rem .5rem; }
  .hub-tile__n b { font-size: .95rem; }
}
