/* ── Franchise Financing Guide — hub (parent brand) ──────────────────────────
   Reuses design-tokens.css and global.css. Overrides only the accent, so the
   parent reads as teal/capital and each vertical keeps its own accent colour
   (Hotworx = crimson). Add a new --hub-* accent per vertical as they're built. */

:root {
  --hub-accent:       #0f6e8c;  /* 5.22:1 on paper, 3.26:1 on dark  */
  --hub-accent-mid:   #1d80a0;
  --hub-accent-light: #2e91b0;  /* 5.21:1 on dark — for dark surfaces */
  --vertical-hotworx: #c4332d;
  --vertical-primrose: #1D7A4E;
  --vertical-schoolofrock: #B45309;
}

/* ── Hero ── */
.hub-hero {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.hub-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--hub-accent);
  margin-bottom: var(--space-md);
}
.hub-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 14ch;
  margin-bottom: var(--space-lg);
}
.hub-hero__lede {
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ── Section scaffolding ── */
.hub-section { padding: var(--space-2xl) 0; }
.hub-section--dark { background: var(--color-surface-dark); color: var(--color-text-on-dark); }
.hub-section__head { margin-bottom: var(--space-xl); }
.hub-section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-sm);
}
.hub-section__sub { color: var(--color-text-muted); max-width: 78ch; }
.hub-section--dark .hub-section__sub { color: #9a9a9a; }

/* ── Vertical cards ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--grid-gap);
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  border-top: 3px solid var(--card-accent, var(--hub-accent));
}
a.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hub-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--card-accent, var(--hub-accent));
  margin-bottom: var(--space-sm);
}
.hub-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-sm);
}
.hub-card__desc { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-lg); }
.hub-card__meta {
  margin-top: auto;
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}
.hub-card__meta strong { display: block; font-size: var(--text-lg); color: var(--color-text); font-weight: var(--weight-semibold); }
.hub-card__cta { margin-top: var(--space-md); font-weight: var(--weight-semibold); color: var(--card-accent, var(--hub-accent)); font-size: var(--text-sm); }

.hub-card--soon {
  border-top-color: var(--color-border);
  background: transparent;
  border-style: dashed;
  align-self: start;   /* don't stretch to the height of the real card */
}
.hub-card--soon .hub-card__title, .hub-card--soon .hub-card__label { color: var(--color-text-muted); }

/* ── How it works ── */
.hub-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--grid-gap); }
.hub-step__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--hub-accent-light);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.hub-step__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-bottom: var(--space-xs); color: var(--color-text-light); }
.hub-step__body { font-size: var(--text-sm); color: #9a9a9a; line-height: var(--leading-body); }

@media (max-width: 640px) {
  .hub-hero__title { font-size: var(--text-3xl); }
  .hub-section { padding: var(--space-2xl) 0; }
}

/* ── Hub nav uses the parent accent, not the Hotworx crimson ──
   hub.css is only loaded on hub-level pages, so this is safely scoped. */
.nav__link::after { background: var(--hub-accent-light); }
.nav__link:hover  { color: var(--hub-accent-light); }

/* ── Hero: two columns so the right half carries content, not air ── */
.hub-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-3xl);
  align-items: start;
}
.hub-hero__lead { display: flex; flex-direction: column; gap: var(--space-md); }
.hub-hero__lede { margin: 0; }
.hub-facts {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--hub-accent);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-xl);
}
.hub-facts__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--hub-accent);
  margin-bottom: var(--space-lg);
}
.hub-facts__list { display: flex; flex-direction: column; gap: var(--space-md); }
.hub-facts__list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.hub-facts__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hub-facts__list span {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  font-size: var(--text-base);
}

@media (max-width: 900px) {
  .hub-hero__inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hub-hero__title { max-width: 18ch; }
}

/* ── Brand categories ── group verticals by industry so the hub scales ── */
.hub-category + .hub-category { margin-top: var(--space-2xl); }
.hub-category__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
