/* Design notes, each with its reason:
   - Colours come from the group logo (navy, sky). Each logo panel uses that brand's own colour.
   - Headings are Mulish Bold, the closest free match to the lettering in the group logo.
   - Corners step down with size: 6px panels, 4px controls. No pill shapes.
   - Flat with thin borders. Nothing here floats, so nothing has a shadow.
   - No all-caps labels above headings, no arrows on buttons, no fade-in on scroll. */

@font-face {
  font-family: "Mulish";
  src: url("/fonts/Mulish-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #16205a;
  --sky: #d1e7fe;
  --accent: #16205a;
  --on-accent: #ffffff;
  --ink: #1b2138;
  --muted: #4d5874;
  --line: #d6deec;
  --paper: #ffffff;
    --tds: #694e99;
  --ct: #141414;
  --r-panel: 6px;
  --r-control: 4px;
  --display: "Mulish", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #a9c4ff;
    --on-accent: #10173a;
    --ink: #e9edf8;
    --muted: #b0bad0;
    --line: #2d3757;
    --paper: #141b36;
  }
  :root:not([data-theme="light"]) body { background: #0f152c; }
}

* { box-sizing: border-box; }
::selection { background: var(--sky); color: var(--navy); }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  caret-color: var(--accent);
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2 { font-family: var(--display); font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { background: var(--sky); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.logo img { display: block; height: 76px; width: auto; }
.page-title { margin: 36px 0 6px; font-size: clamp(30px, 4vw, 38px); line-height: 1.15; }
.intro { margin: 0 0 22px; color: var(--muted); }

/* brand boxes: same width, same logo panel, and every row lines up across the three */
.brands { display: grid; grid-template-columns: 1fr; row-gap: 20px; padding-bottom: 56px; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden;
}
.art { position: relative; aspect-ratio: 16 / 7; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.art img { position: absolute; inset: 0; margin: auto; width: 74%; height: 74%; object-fit: contain; }
.art.tds { background: var(--tds); }
.art.ct { background: var(--ct); }
.art.ct img { width: 84%; height: 84%; }
.art.sk { background: #c8e3c2; } /* the exact green behind the kiwi in the logo, so the panel reads as one colour */
.art.sk img { width: 90%; height: 90%; }

.body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 18px; }
.card h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.2; }
.lede { margin: 0 0 14px; font-weight: 600; line-height: 1.4; }
.copy p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.copy a { color: var(--ink); }
.foot { margin-top: auto; padding-top: 8px; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 18px; border-radius: var(--r-control);
  font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid var(--accent); color: var(--accent); background: transparent;
  transition: transform 120ms ease-out;
}
.btn.solid { background: var(--accent); color: var(--on-accent); }
.btn:hover { text-decoration: underline; }
.btn:active { transform: scale(0.97); }
.social { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; font-size: 15px; }
.social a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

@media (min-width: 900px) {
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; }
  @supports (grid-template-rows: subgrid) {
    .card { display: grid; grid-row: span 6; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .art, .photo { width: 100%; }
    .body { display: grid; grid-row: 3 / span 4; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  }
}

/* footer */
.site-footer { background: var(--navy); color: #dbe5ff; padding: 22px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 40px; justify-content: space-between; }
.reach > div { min-height: 24px; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
