/* For companies page only. Linked after main.css in /companies/index.html. */

/* ---- Hero ---- */
.page-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  --cluster-gap: 10px;
}
.co-hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.co-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-8);
  align-items: center;
}
.co-hero h1 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.04;
}
.co-hero .lead {
  font-size: var(--fs-lg);
}
@media (max-width: 960px) {
  .co-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .co-report {
    max-width: 560px;
  }
  .co-hero .page-hero__scrim {
    background: rgb(11 31 58 / 0.88);
  }
}

/* ---- Illustrative HMI report and dashboard ---- */
.co-report {
  box-shadow: var(--shadow-panel);
}
.co-report__tiles,
.co-dash__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.co-dash__tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.co-report dd,
.co-dash dd {
  margin: 0;
}
.co-report .hmi__value,
.co-dash .hmi__value {
  font-size: 1.375rem;
}
.co-report__note {
  margin-top: 10px;
  font-size: 0.6875rem;
  color: var(--c-slate-400);
}
.is-ok,
.co-report .is-ok,
.co-dash .is-ok {
  color: var(--c-ok);
}
.is-warn {
  color: var(--c-warn);
}

.co-dash {
  margin: 0;
  padding: var(--s-4) var(--s-5);
}
.co-dash__table-wrap {
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid var(--c-hmi-line);
}
.co-dash__table {
  width: 100%;
  min-width: 380px;
  font-size: 0.75rem;
}
.co-dash__table th,
.co-dash__table td {
  padding: 7px 10px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.co-dash__table thead th {
  background: var(--c-hmi-950);
  color: var(--c-slate-400);
}
.co-dash__table tbody > tr > * {
  border-top: 1px solid var(--c-hmi-line);
}
.co-dash__table tbody th {
  color: var(--c-slate-300);
}
@media (max-width: 480px) {
  .co-dash {
    padding: var(--s-3);
  }
  .co-dash__tiles {
    gap: 6px;
  }
  .co-dash .hmi__tile {
    padding: 6px 8px;
  }
  .co-dash__table {
    min-width: 0;
    font-size: 0.6875rem;
  }
  .co-dash__table th,
  .co-dash__table td {
    padding: 6px;
    white-space: normal;
  }
  .co-dash .hmi__value,
  .co-report .hmi__value {
    font-size: 1.125rem;
  }
}

/* ---- Programmes table ---- */
.co-programmes tbody th {
  min-width: 150px;
}
.co-programmes td:nth-child(4) {
  min-width: 300px;
}
.co-note {
  max-width: 80ch;
}

/* ---- Custom model: four build steps ---- */
.co-build {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.co-build li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
}
.co-build .hmi__key {
  font: 700 0.875rem/1 var(--font-display);
  color: var(--c-orange-400);
}
.co-build .hmi__title {
  font-size: 0.9375rem;
}
@media (max-width: 560px) {
  .co-build {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- How it runs: numbered steps ---- */
.co-steps .card-title {
  font-size: 1.125rem;
}
.co-steps p {
  margin-top: 4px;
  font-size: 0.875rem;
}
.co-steps__final {
  border-top: 3px solid var(--c-red-600);
}

/* ---- Plans ---- */
.co-includes {
  padding: var(--s-4) var(--s-5);
}
.co-includes .checklist {
  gap: var(--s-2) var(--s-5);
  font-size: 0.875rem;
  color: var(--c-slate-300);
}

/* ---- Proposal ---- */
.co-mail {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.co-mail:hover {
  color: var(--c-orange-400);
}
.co-proposal__photo {
  margin-top: var(--s-2);
}

/* ---- Form layout (same pattern as apply.css / contact.css) ---- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--c-navy-900);
}
.check label {
  min-height: 24px;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.form-foot > p {
  flex: 1 1 240px;
}
@media (max-width: 560px) {
  .form-foot .btn {
    width: 100%;
  }
}

/* Muted text inside the white form card on the navy section stays dark. */
.form .muted {
  color: var(--color-muted);
}
.co-programmes td:nth-child(2),
.co-programmes td:nth-child(3) {
  white-space: nowrap;
}
