/* ──────────────────────────────────────────────────────────────
   hub.css — landing hub only (/).
   Consumes the brand tokens from core.css. Every var() carries a
   literal fallback so this file renders correctly even if a token
   name drifts. Component styles live in core.css; page layout here.
   ────────────────────────────────────────────────────────────── */

:root {
  --hub-max: 1120px;
  --hub-gut: clamp(1.25rem, 4vw, 3rem);
}

body.hub {
  background: var(--cs-light, #EDE8E0);
  color: var(--cs-secondary, #1A1D21);
}

/* Skip link — hidden until keyboard-focused (same pattern as viewer.css) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 2000;
  background: var(--cs-secondary, #1A1D21);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-family: var(--cs-font-display, "Archivo", system-ui, sans-serif);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Nav ─────────────────────────────────────────────────── */
.hub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--hub-gut);
  background: var(--cs-secondary, #1A1D21);
}
.hub-nav__logo { height: 26px; width: auto; }
.hub-nav__tag {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cs-accent-3, #D8CEC0);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(180deg, rgba(26, 29, 33,.90) 0%, rgba(26, 29, 33,.97) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) var(--hub-gut);
}
.hero__inner { max-width: var(--hub-max); margin-inline: auto; }
.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cs-primary, #E0673E);
  margin: 0 0 1rem;
}
.hero__title {
  /* core.css sets h1-h6 { color: var(--cs-dark) } — graphite on the petrol
     hero is all but invisible, so the on-dark colour is restated here. */
  color: #fff;
  font-family: var(--cs-font-display, "Archivo", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}
.hero__title .accent { color: var(--cs-primary, #E0673E); }
.hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 60ch;
  color: rgba(255,255,255,.86);
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; }
/* .btn--secondary's background IS the petrol hero background, so on the hero it
   would render as an invisible button. Restyle it as a white outline here only. */
.hero__actions .btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
.hero__actions .btn--secondary:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  box-shadow: none;
}
.hero__note {
  margin: 1.5rem 0 0;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}

/* ── Section scaffolding ─────────────────────────────────── */
.projects, .scan, .scope {
  max-width: var(--hub-max);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) var(--hub-gut);
}
.section-head { margin-bottom: 2.5rem; max-width: 62ch; }
.section-head h2 {
  font-family: var(--cs-font-display, "Archivo", system-ui, sans-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .75rem;
}
.section-head p { margin: 0; color: var(--cs-info, #6B6560); line-height: 1.65; }

/* ── Project cards ───────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project {
  background: #fff;
  border: 1px solid rgba(26, 29, 33,.10);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(26, 29, 33,.05);
}
.project__band {
  padding: .6rem 1.5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
/* White on steel blue is only 3.0:1 — petrol ink on blue is the brand's AA
   pairing (same as .btn--primary), so the Project 1 band uses it. */
.project--1 .project__band { background: var(--cs-primary, #C8502D); color: #fff; }
.project--2 .project__band { background: var(--cs-secondary, #1A1D21); color: #fff; }
.project--3 .project__band { background: var(--cs-accent-1, #8C4526); color: #fff; }
.project--4 .project__band { background: var(--cs-primary-ink, #A93F20); color: #fff; }

.project__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project__body h3 {
  font-family: var(--cs-font-display, "Archivo", system-ui, sans-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.project__price {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--cs-secondary, #1A1D21);
}
.project__price span { color: var(--cs-info, #6B6560); font-size: .95rem; }
.project__summary {
  margin: 0 0 1.25rem;
  color: var(--cs-info, #6B6560);
  line-height: 1.6;
}
.project__list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .7rem;
}
.project__list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.55;
  font-size: .94rem;
}
.project__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cs-primary, #E0673E);
}
.project__body .btn--block { margin-top: auto; }

.bundle {
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  text-align: center;
  background: rgba(200, 80, 45,.10);
  border: 1px dashed rgba(200, 80, 45,.45);
  border-radius: 10px;
  color: var(--cs-secondary, #1A1D21);
}

/* ── Scan panel ──────────────────────────────────────────── */
.scan {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.scan__text h2 {
  font-family: var(--cs-font-display, "Archivo", system-ui, sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 .75rem;
}
.scan__text p { color: var(--cs-info, #6B6560); line-height: 1.65; margin: 0 0 .75rem; max-width: 52ch; }
.scan__url code {
  display: inline-block;
  background: var(--cs-secondary, #1A1D21);
  color: #fff;
  padding: .5rem .9rem;
  border-radius: 6px;
  font-size: .95rem;
}
.scan__qr { text-align: center; }
.scan__qr img {
  display: block;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(26, 29, 33,.12);
  max-width: 100%;
  height: auto;
}
.scan__qr p { margin: .7rem 0 0; font-size: .8rem; color: var(--cs-info, #6B6560); }

/* ── Scope / honesty panel ───────────────────────────────── */
.scope { }
.scope__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.scope__col {
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(26, 29, 33,.10);
}
.scope__col h3 {
  font-family: var(--cs-font-display, "Archivo", system-ui, sans-serif);
  font-size: 1.12rem;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid transparent;
}
.scope__col--is   h3 { border-bottom-color: var(--cs-success, #2F7D4F); }
.scope__col--isnt h3 { border-bottom-color: var(--cs-warning, #E8B04B); }
.scope__col ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .6rem; }
.scope__col li { line-height: 1.55; font-size: .93rem; color: var(--cs-info, #6B6560); }
.scope__col li strong { color: var(--cs-secondary, #1A1D21); }
.scope__foot {
  margin: 1.5rem 0 0;
  font-size: .9rem;
  color: var(--cs-info, #6B6560);
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────────── */
.hub-foot {
  background: var(--cs-secondary, #1A1D21);
  color: rgba(255,255,255,.62);
  padding: 2.5rem var(--hub-gut);
  text-align: center;
}
.hub-foot__logo { height: 22px; width: auto; margin-bottom: 1rem; opacity: .85; }
.hub-foot p { margin: 0; font-size: .84rem; line-height: 1.7; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .scan { grid-template-columns: 1fr; }
  .scan__qr { justify-self: start; }
  .hero__actions .btn { width: 100%; text-align: center; }
}
