/* /catering/ directory hub. 2026-10-23. Site tokens only (--surface, --ink,
   --brand ...) so dark (default, theme-modern) and light (theme-light) both
   follow; the few hard-coded light values mirror theme-light.css. Link colour
   rules are prefixed html:root:root to beat theme-modern's :root:root a. */

.ch { padding-bottom: 1.5rem; }

/* ---- Hero ---------------------------------------------------------------- */
.ch-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: end;
  margin: .35rem 0 1rem; padding: clamp(1.15rem, 3vw, 1.9rem) clamp(1.1rem, 3vw, 2rem);
  border-radius: var(--r-xl, 20px); border: 1px solid var(--line);
  background:
    radial-gradient(38rem 16rem at 100% 0, rgba(245,185,66,.12), transparent 70%),
    radial-gradient(30rem 18rem at 0 100%, rgba(99,102,241,.10), transparent 70%),
    linear-gradient(180deg, #131b2b, #0f1624);
  box-shadow: var(--shadow-2);
}
.ch-hero h1 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
html:root:root .ch-hero .answer-block.hub-lead { margin: .5rem 0 1rem; font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; }

.ch-search {
  display: flex; align-items: center; gap: .5rem; max-width: 40rem;
  padding: .4rem .4rem .4rem .95rem; border-radius: 14px;
  background: var(--bg); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: border-color .15s, box-shadow .15s;
}
.ch-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint), 0 10px 30px rgba(0,0,0,.35); }
.ch-search__ic { flex: none; display: grid; color: var(--brand); }
html:root:root .ch-search input {
  flex: 1; min-width: 0; height: 3rem; padding: 0 .25rem; border: 0; outline: 0; box-shadow: none;
  background: transparent; color: var(--ink); font-size: 1.12rem; font-weight: 500;
}
.ch-search input::placeholder { color: var(--ink-3); opacity: 1; }
.ch-search__btn { flex: none; height: 3rem; padding-inline: 1.3rem; font-size: 1.02rem; border-radius: 10px; }

.ch-hero__alt { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; margin: .9rem 0 0; color: var(--ink-2); font-size: .98rem; }
html:root:root .ch-hero__cta { padding: .5rem 1rem; font-weight: 700; color: var(--brand); border-color: rgba(245,185,66,.45); background: var(--brand-tint); }
html:root:root .ch-hero__cta:hover { color: var(--brand-dark); border-color: var(--brand); }
.ch-hero__note { color: var(--ink-3); font-size: .9rem; }

.ch-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; min-width: 12.5rem; }
.ch-stats li {
  display: flex; align-items: baseline; gap: .6rem; padding: .7rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
}
.ch-stats b { font-size: 1.7rem; line-height: 1; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ch-stats span { font-size: .8rem; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }

/* ---- Type chips ------------------------------------------------------------ */
.ch-types { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1.4rem; }
.ch-types__label { font-weight: 700; color: var(--ink-3); font-size: .9rem; margin-right: .15rem; }
html:root:root .ch-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .55rem .45rem .85rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: border-color .12s, background .12s;
}
.ch-chip b { font-size: .8rem; font-weight: 750; padding: .08rem .45rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-variant-numeric: tabular-nums; }
html:root:root .ch-chip:hover { border-color: var(--brand); background: var(--surface-2); color: var(--ink); }
html:root:root .ch-chip--more { padding-right: .85rem; border-style: dashed; color: var(--ink-2); background: transparent; }

/* ---- Sections ---------------------------------------------------------------- */
.ch-sec { margin: 0 0 1.6rem; scroll-margin-top: 6.5rem; }
.ch-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin: 0 0 .75rem; }
.ch-sec__head h2 { margin: 0; font-size: 1.45rem; }
.ch-sec__n { font-size: .9rem; font-weight: 600; color: var(--ink-3); }

/* ---- City cards -------------------------------------------------------------- */
.ch-cities { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
html:root:root .ch-city {
  display: flex; align-items: center; gap: .8rem; height: 100%; padding: .75rem .8rem;
  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 .ch-city:hover { border-color: var(--brand); box-shadow: var(--shadow-2); transform: translateY(-1px); color: var(--ink); }
.ch-city:focus-visible, .ch-chip:focus-visible, .ch-region a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ch-city__mark {
  flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--t1), var(--t2)); color: rgba(255,255,255,.95);
  font-weight: 800; font-size: .95rem; letter-spacing: .04em;
}
.ch-city__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ch-city__name { font-weight: 750; font-size: 1.08rem; line-height: 1.2; color: var(--ink); }
.ch-city__state { font-size: .86rem; color: var(--ink-2); }
.ch-city__cz { font-size: .8rem; color: var(--ink-3); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-count {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 3.9rem; padding: .35rem .5rem; border-radius: 11px; line-height: 1.05;
  background: var(--brand-tint); border: 1px solid rgba(245,185,66,.35); color: var(--brand);
}
.ch-count b { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ch-count small { font-size: .66rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }

/* ---- States by region --------------------------------------------------------- */
.ch-regions { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ch-region ul { columns: 2; column-gap: .6rem; }
.ch-region li { break-inside: avoid; }
.ch-region { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .8rem .55rem .55rem; }
.ch-region h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  margin: 0 .35rem .45rem; font-size: 1.05rem; color: var(--ink);
}
.ch-region h3 span { font-size: .78rem; font-weight: 650; color: var(--ink-3); }
.ch-region ul { list-style: none; margin: 0; padding: 0; }
html:root:root .ch-region a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem;
  padding: .42rem .4rem .42rem .45rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem;
}
html:root:root .ch-region a:hover { background: var(--surface-2); color: var(--ink); }
html:root:root .ch-region a:hover .ch-st__name { color: var(--brand); }
.ch-st__name { line-height: 1.25; overflow-wrap: anywhere; }
.ch-st__cities { font-size: .76rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.ch-st__n {
  min-width: 2.9rem; text-align: center; padding: .14rem .45rem; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand); font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* ---- How quotes work ------------------------------------------------------------ */
.ch-how {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem 1.5rem;
  padding: 1rem 1.25rem; border-radius: 16px; border: 1px solid rgba(245,185,66,.25);
  background: linear-gradient(90deg, rgba(245,185,66,.08), rgba(245,185,66,.02)), var(--surface);
}
.ch-how h2 { margin: 0; font-size: 1.15rem; max-width: 8rem; line-height: 1.2; }
.ch-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.ch-how__steps li { display: flex; gap: .6rem; align-items: flex-start; }
.ch-how__steps li > b {
  flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink, #111318); font-size: .95rem; font-weight: 800;
}
.ch-how__steps li > span { font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.ch-how__steps strong { display: block; font-size: .96rem; color: var(--ink); margin-bottom: .1rem; }
.ch-how__cta { white-space: nowrap; }

/* ---- Light mode ------------------------------------------------------------------ */
html:root:root[data-theme="light"] .ch-hero {
  background:
    radial-gradient(38rem 16rem at 100% 0, rgba(217,154,30,.14), transparent 70%),
    linear-gradient(180deg, #ffffff, #fbf8f2);
  border-color: #e5e7eb; box-shadow: 0 1px 2px rgba(17,24,39,.05), 0 8px 24px rgba(17,24,39,.06);
}
html:root:root[data-theme="light"] .ch-search { background: #fff; border-color: #d1d5db; box-shadow: 0 6px 18px rgba(17,24,39,.08); }
html:root:root[data-theme="light"] .ch-search:focus-within { border-color: #d99a1e; box-shadow: 0 0 0 3px #fdf3dc, 0 6px 18px rgba(17,24,39,.08); }
html:root:root[data-theme="light"] .ch-search__ic { color: #a86b00; }
html:root:root[data-theme="light"] .ch-hero__cta { color: #8a5800; background: #fdf3dc; border-color: #f1d9a4; }
html:root:root[data-theme="light"] .ch-stats li { background: #fff; border-color: #e5e7eb; }
html:root:root[data-theme="light"] .ch-stats b { color: #a86b00; }
html:root:root[data-theme="light"] .ch-stats span { color: #4b5563; }
html:root:root[data-theme="light"] .ch-chip,
html:root:root[data-theme="light"] .ch-city,
html:root:root[data-theme="light"] .ch-region { background: #fff; border-color: #e5e7eb; box-shadow: 0 1px 2px rgba(17,24,39,.05); }
html:root:root[data-theme="light"] .ch-chip--more { background: transparent; box-shadow: none; border-color: #d1d5db; color: #374151; }
html:root:root[data-theme="light"] .ch-chip:hover,
html:root:root[data-theme="light"] .ch-city:hover { border-color: #d99a1e; background: #fffaf0; }
html:root:root[data-theme="light"] .ch-chip b,
html:root:root[data-theme="light"] .ch-st__n { background: #fdf3dc; color: #8a5800; }
html:root:root[data-theme="light"] .ch-count { background: #fdf3dc; border-color: #f1d9a4; color: #8a5800; }
html:root:root[data-theme="light"] .ch-region a:hover { background: #fffaf0; }
html:root:root[data-theme="light"] .ch-region a:hover .ch-st__name { color: #8a5800; }
html:root:root[data-theme="light"] .ch-how { background: linear-gradient(90deg, #fdf3dc, #fffaf0); border-color: #f1d9a4; }
html:root:root[data-theme="light"] .ch-how__steps li > b { background: #d99a1e; color: #111827; }

/* ---- Responsive ------------------------------------------------------------------- */
@media (max-width: 68rem) {
  .ch-regions { grid-template-columns: minmax(0, 1fr); }
  .ch-how { grid-template-columns: minmax(0, 1fr) auto; }
  .ch-how h2 { max-width: none; }
  .ch-how__steps { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 52rem) {
  .ch-hero { grid-template-columns: minmax(0, 1fr); }
  .ch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .ch-stats li { flex-direction: column; align-items: flex-start; gap: .25rem; padding: .6rem .7rem; }
  .ch-stats b { font-size: 1.35rem; }
  .ch-stats span { font-size: .68rem; }
}
@media (max-width: 40rem) {
  .ch-hero { margin-top: .1rem; padding: 1rem .9rem 1.05rem; border-radius: 16px; gap: .9rem; }
  .ch-hero h1 { font-size: 1.6rem; }
  html:root:root .ch-hero .answer-block.hub-lead { font-size: .98rem; margin: .4rem 0 .8rem; }
  .ch-search { flex-wrap: wrap; padding: .35rem; gap: .35rem; }
  .ch-search__ic { padding-left: .5rem; }
  html:root:root .ch-search input { height: 2.9rem; font-size: 1.05rem; flex-basis: calc(100% - 3rem); }
  .ch-search__btn { width: 100%; justify-content: center; }
  .ch-hero__alt { font-size: .92rem; gap: .4rem .6rem; }
  .ch-hero__alt > span:first-child { display: none; }
  .ch-hero__note { flex-basis: 100%; font-size: .84rem; }
  .ch-types { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem)); padding: 0 clamp(1rem, 4vw, 2rem) .25rem; scrollbar-width: none; }
  .ch-types::-webkit-scrollbar { display: none; }
  .ch-types__label { display: none; }
  .ch-chip { flex: none; }
  .ch-sec__head h2 { font-size: 1.25rem; }
  .ch-cities { grid-template-columns: 1fr 1fr; gap: .5rem; }
  html:root:root .ch-city { flex-direction: column; align-items: stretch; gap: .4rem; padding: .65rem .7rem; }
  .ch-city__mark, .ch-city__cz { display: none; }
  .ch-city__name { font-size: 1.02rem; }
  .ch-city__state { font-size: .82rem; }
  .ch-count { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: .3rem; min-width: 0; padding: .2rem .55rem; align-self: flex-start; }
  .ch-count b { font-size: 1.15rem; }
  .ch-count small { font-size: .64rem; }
  .ch-region { padding: .7rem .4rem .4rem; }
  .ch-region ul { column-gap: .3rem; }
  html:root:root .ch-region a { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; padding: .4rem .3rem; font-size: .92rem; }
  .ch-st__cities { display: none; }
  .ch-st__n { min-width: 2.5rem; font-size: .85rem; padding: .12rem .35rem; }
  .ch-how { grid-template-columns: 1fr; padding: .9rem; }
  .ch-how__steps { grid-template-columns: 1fr; gap: .6rem; grid-row: auto; }
  .ch-how__cta { width: 100%; justify-content: center; }
}
