/* Consulting page. Inherits the palette, nav and contact styling from
   /styles.css; everything here is page-specific. Shares its typographic
   scale with /butternetsync/page.css so the two child pages read as a set. */

:root {
  --surface: #101010;
  --rule: #24282c;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  margin: 0 auto;
  max-width: 900px;
  padding: 2.5rem 1.5rem 3rem;
}

/* Unlike the benchmark page, whose stat row wants to sit tight under its
   title, the title block here is prose running into prose: it needs the
   full page gap plus a little more before the capability cards. */
.page > header {
  margin-bottom: 0.75rem;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0.85rem 0 0;
  text-wrap: balance;
}

/* Scoped through .page to outrank the `.page p` margin reset further down;
   a bare .standfirst/.lede rule loses to it and the two run together. */
.page > header .standfirst {
  color: var(--text);
  font-size: 1.075rem;
  line-height: 1.6;
  margin: 1.5rem 0 0;
  max-width: 62ch;
}

.page > header .lede {
  color: var(--muted);
  line-height: 1.6;
  margin: 1.5rem 0 0;
  max-width: 62ch;
}

.page h2 {
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.page p { margin: 0; }

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sec-note {
  color: var(--muted);
  font-size: 0.925rem;
  max-width: 66ch;
}

/* ---- capability cards ---- */
.capabilities {
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  overflow: hidden;
}

.capabilities article {
  background: var(--surface);
  padding: 1.35rem 1.25rem;
}

.capabilities h2 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.7rem;
}

.capabilities p {
  color: var(--muted);
  font-size: 0.925rem;
}

/* ---- rates ---- */
.rates,
.includes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem 1.5rem 1.35rem;
}

.table-scroll { overflow-x: auto; }

table {
  border-collapse: collapse;
  font-size: 0.9rem;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding-top: 0;
  text-transform: uppercase;
}

tbody th {
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
  padding-bottom: 0;
}

td { color: var(--muted); }

td.num {
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

td .unit {
  color: var(--muted);
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 0.3rem;
}

/* ---- what's included ---- */
.includes ul {
  display: grid;
  gap: 1.1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.includes li {
  border-left: 2px solid var(--red-dark);
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 0.9rem;
}

.includes .item {
  color: var(--text);
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.back {
  color: var(--link);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-decoration-color: rgba(212, 95, 95, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-transform: uppercase;
}

.back:hover,
.back:focus-visible {
  color: #f08080;
  text-decoration-color: currentColor;
}

/* Scoped through .contact to outrank `.contact p { margin: 0 }` in styles.css,
   which would otherwise drop the auto margins and leave the block hard left. */
.contact .contact-intro {
  margin: 0 auto 1.75rem;
  max-width: 46ch;
}

@media (max-width: 480px) {
  .page { gap: 2rem; padding: 2rem 1.15rem 2.5rem; }

  .rates,
  .includes { padding: 1.15rem 1rem 1rem; }
}
