:root {
  --brand:      #C2562E;
  --bg:         #0e0e0e;
  --card-bg:    #1a1a1a;
  --muted:      #999;
  --radius:     14px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: #f0ece8;
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header — white so dark text + rust colour renders correctly ── */
.site-header {
  width: 100%;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: center;
  background: #ffffff;
  border-bottom: 4px solid var(--brand);
}

.site-header img {
  max-width: 520px;
  width: 100%;
  height: auto;
}

/* ── Company grid ── */
.companies {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* align-items: flex-start so cards don't stretch to each other's height */
  align-items: flex-start;
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1300px;
  width: 100%;
}

/* Dark cards — logos use cream + brand colours, designed for dark backgrounds */
.company-card {
  display: block;
  background: var(--card-bg);
  border: 2px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 2rem;
  /* flex: 1 1 340px keeps cards equal width but doesn't force equal height */
  flex: 1 1 420px;
  max-width: 560px;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.company-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(194, 86, 46, 0.3);
}

/* Image fills card width; height follows the SVG's natural aspect ratio */
.company-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Footer ── */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid #222;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .company-card    { max-width: 100%; flex-basis: 100%; }
  .site-header img { max-width: 320px; }
}
