/* ==========================================================================
   Total Care Unit — palette sampled from the logo:
   heart red #C83637, care blue #4E94EA.
   ========================================================================== */

:root {
  --ink:        #161D24;
  --ink-2:      #4A5A68;
  --ink-3:      #7C8B99;
  --paper:      #ffffff;
  --tint:       #F3F7FB;
  --tint-2:     #E8EFF7;
  --line:       #E1E8EF;
  --line-2:     #C6D2DE;
  --blue:       #2C6FCF;   /* accessible working blue */
  --blue-deep:  #1B4C93;
  --blue-lt:    #4E94EA;   /* the logo blue — accents and large type only */
  --blue-soft:  #E6EFFB;
  --red:        #C83637;   /* the heart — used sparingly */
  --red-soft:   #FBEAEA;
  --deep:       #142433;   /* dark bands */

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1140px;
  --gut: clamp(20px, 5vw, 48px);
  --r: 10px;
  --shadow: 0 1px 2px rgba(20,36,51,.05), 0 12px 32px -20px rgba(20,36,51,.35);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.012em; }
h4 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0; letter-spacing: -.005em; }
p { margin: 0; max-width: 68ch; }

.lede { font-size: clamp(17.5px, 1.9vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.eyebrow {
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--tint); }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { background: var(--blue-soft); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; max-width: none; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 26px); }
.nav a {
  font-family: var(--display); font-size: 15px; font-weight: 500;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue-lt); }
.nav .btn { border-bottom: none; color: #fff; padding: 10px 18px; font-size: 14.5px; }
.nav .btn:hover { color: #fff; }

@media (max-width: 1000px) {
  .head-in { flex-wrap: wrap; min-height: 0; padding-block: 14px; gap: 12px; }
  .brand img { height: 38px; max-width: none; }
  .nav { width: 100%; flex-wrap: wrap; gap: 14px 18px; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(52px, 8vw, 96px); background: linear-gradient(180deg, var(--tint), var(--paper) 72%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 68px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: clamp(22px, 3vw, 30px);
  display: flex; flex-direction: column; gap: 14px;
}
.hero-card h3 { font-size: 17px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hero-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.hero-card li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-lt); margin-top: 8px; }

/* ---------- sections ---------- */

.section { padding-block: clamp(54px, 7.5vw, 92px); }
.section.tint { background: var(--tint); }
.section.deep { background: var(--deep); color: #DCE6F0; }
.section.deep h2, .section.deep h3, .section.deep h4 { color: #fff; }
.section.deep p { color: #B4C4D4; }
.section.deep .eyebrow { color: #8FBBF0; }

.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose p { color: var(--ink-2); }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card .more { margin-top: auto; padding-top: 8px; font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; align-self: flex-start; }
.card .more::after { content: " \2192"; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* ---------- aims list ---------- */

.aims { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aims li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.aims li:last-child { border-bottom: none; }
.aims li::before {
  content: counter(aim, decimal-leading-zero); counter-increment: aim;
  font-family: var(--display); font-size: 13px; font-weight: 700; color: #8FBBF0; padding-top: 4px;
}
.aims { counter-reset: aim; }
.aims p { font-size: 16px; }

/* ---------- properties ---------- */

.props { display: flex; flex-direction: column; }
.prop {
  display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 10px clamp(24px, 5vw, 56px);
  padding: clamp(24px, 3.2vw, 34px) 0; border-top: 1px solid var(--line);
}
.prop:last-child { border-bottom: 1px solid var(--line); }
.prop .area { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.015em; }
.prop .kind { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.prop p { font-size: 16px; color: var(--ink-2); }
.prop .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prop .facts span {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  background: var(--tint-2); color: var(--blue-deep);
  padding: 5px 12px; border-radius: 999px;
}
@media (max-width: 720px) { .prop { grid-template-columns: 1fr; } }

/* ---------- partners ---------- */

.council-marquee {
  margin-top: 34px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}
.council-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: council-scroll 50s linear infinite;
}
/* Capped on BOTH axes so a very wide mark (Richmond, Hounslow) and a very
   narrow one (Cardiff) carry roughly the same visual weight in the row.
   margin, not gap — the track must be exactly two identical halves
   for the -50% loop to land seamlessly */
.council-track img {
  width: auto;
  height: auto;
  max-height: clamp(38px, 4.2vw, 54px);
  max-width: clamp(120px, 13vw, 176px);
  object-fit: contain;
  flex: none;
  margin-right: clamp(34px, 4.4vw, 66px);
}
/* portrait-format marks need more height to match the rest */
.council-track img.tall { max-height: clamp(48px, 5.4vw, 70px); }

@keyframes council-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Pause only for keyboard users tabbing through. Deliberately NOT paused on
   hover: a resting cursor froze the whole strip and it read as a static row. */
.council-marquee:focus-within .council-track { animation-play-state: paused; }

/* Visitors with "reduce motion" switched on keep the same single row and
   scroll it themselves, rather than it reflowing into a stack of lines. */
@media (prefers-reduced-motion: reduce) {
  .council-marquee {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .council-track {
    animation: none;
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }
  .council-track img[data-dup] { display: none; }
}

.partners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.partners span {
  font-family: var(--display); font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink-2);
  background: #fff;
}

/* ---------- podcast ---------- */

.platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.episodes { list-style: none; margin: 30px 0 0; padding: 0; }
.ep {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.ep:first-child { border-top: 1px solid var(--line); }
.ep h3 { font-size: 17.5px; }
/* episode titles link straight to Spotify */
.ep h3 a { color: inherit; text-decoration: none; }
.ep h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ep h3 a::after { content: " \2197"; color: var(--ink-3); font-weight: 400; }
.ep .guest { font-size: 15.5px; color: var(--ink-2); margin-top: 3px; }
.ep .meta { font-family: var(--display); font-size: 13.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .ep { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(22px, 3.5vw, 40px); }
.detail { border-top: 3px solid var(--blue-lt); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.detail .k { font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.detail .v { font-family: var(--display); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.detail .v a { text-decoration: none; }
.detail .v a:hover { text-decoration: underline; }
.detail small { color: var(--ink-2); font-size: 14.5px; }

.form { display: flex; flex-direction: column; gap: 4px; max-width: 620px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--display); font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(44,111,207,.14); }
.hp { position: absolute; left: -9999px; }
.form small { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

/* ---------- CTA band ---------- */

.cta { background: var(--blue-deep); color: #DCE8F8; padding-block: clamp(46px, 6.5vw, 76px); }
.cta h2 { color: #fff; }
.cta p { color: #BBD1EE; }
.cta-in { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */

.site-foot { background: var(--tint); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 62px); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3.2vw, 40px); }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand img { width: min(230px, 100%); height: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 15px; color: var(--ink-2); max-width: 34ch; }
.foot-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col { min-width: 0; }
.foot-col a { font-size: 15px; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--blue); text-decoration: underline; }
.cert { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--ink-2); }

.legal {
  margin-top: clamp(28px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 14px; color: var(--ink-3);
}
.legal p { max-width: none; }

/* ---------- placeholder marker ---------- */

.ph {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .85em; background: #FDF3D8; color: #6B5410;
  border-bottom: 1px dashed #C9A227; padding: 1px 5px; overflow-wrap: anywhere;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- document pages ---------- */

.doc { max-width: 740px; padding-block: clamp(46px, 6vw, 80px); }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p { color: var(--ink-2); margin-bottom: 14px; }
.doc ul { padding-left: 20px; margin: 0 0 16px; color: var(--ink-2); }
.doc li { margin-bottom: 7px; }
