/* ==========================================================
   MCDS UK — site stylesheet
   Colours, type and alignment follow Brand Guidelines (Rev 1, 28-10-2026)
   ========================================================== */

:root {
  /* Brand palette */
  --dark-blue: #00239C;   /* PANTONE Dark Blue C — headings */
  --green:     #006B38;   /* PANTONE 3500 C — notes & references */
  --red:       #BA0020;   /* PANTONE 3517 C — links */
  --almond:    #EFDECD;   /* Almond — page background */
  --black:     #000000;   /* Body text */

  /* Supporting tints (derived from the palette) */
  --almond-light: #F8EFE6;
  --almond-dark:  #E2CDB8;

  /* Type — Arial preferred, Calibri alternative */
  --font: Arial, Calibri, "Helvetica Neue", Helvetica, sans-serif;
  --body-size: 16px;      /* Body text 16px. Change here to resize all body text. */

  --max-width: 1080px;
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--almond);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--body-size);
  font-weight: normal;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Headings (Arial, bold, left aligned, Dark Blue C) ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: bold;
  color: var(--dark-blue);
  text-align: left;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

/* ---------- Body text (justified) ---------- */
p, li, dd { text-align: justify; hyphens: auto; }
p { margin: 0 0 1em; }

/* ---------- Links (3517 C) ---------- */
a { color: var(--red); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--dark-blue); }
a:focus-visible { outline: 2px solid var(--dark-blue); outline-offset: 2px; }

/* ---------- Notes & references (3500 C) ---------- */
.note, .reference, small, cite { color: var(--green); }
.note {
  border-left: 4px solid var(--green);
  background: var(--almond-light);
  padding: 10px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark-blue); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Brand stripe — the three logo colours */
.brand-stripe {
  height: 5px;
  background: linear-gradient(90deg,
    var(--dark-blue) 0 33.33%, var(--green) 33.33% 66.66%, var(--red) 66.66% 100%);
}

/* ---------- Header & navigation ---------- */
.site-header { background: var(--almond-light); border-bottom: 1px solid var(--almond-dark); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.logo img { width: 180px; }

.nav-toggle {
  display: none;
  font: bold 15px var(--font); color: var(--dark-blue);
  background: none; border: 2px solid var(--dark-blue); border-radius: 6px;
  padding: 6px 12px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 15px; font-weight: bold; text-decoration: none; color: var(--dark-blue);
}
.site-nav a:hover { background: var(--almond); color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 6px 6px 0 0; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { font-size: 32px; }
.hero .lead { font-size: 18px; }
.hero-emblem { width: 160px; max-width: 160px; margin: 0 auto; }

.page-head { padding: 36px 0 8px; }
.page-head p { max-width: 70ch; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px;
  font: bold 15px var(--font); text-decoration: none;
  background: var(--dark-blue); color: #fff; border: 2px solid var(--dark-blue);
}
.btn:hover, .btn:focus { background: var(--red); border-color: var(--red); color: #fff; }
.btn-outline { background: transparent; color: var(--dark-blue); }
.btn-outline:hover, .btn-outline:focus { background: var(--dark-blue); border-color: var(--dark-blue); }

/* ---------- Sections & cards ---------- */
.section { padding: 28px 0; }
.section + .section { border-top: 1px solid var(--almond-dark); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--almond-light);
  border: 1px solid var(--almond-dark);
  border-radius: var(--radius);
  padding: 20px;
  border-top: 4px solid var(--dark-blue);
}
.card.green { border-top-color: var(--green); }
.card.red   { border-top-color: var(--red); }
.card h3 { margin-bottom: 0.4em; }
.card :last-child { margin-bottom: 0; }

.status {
  display: inline-block; font-size: 12px; font-weight: bold;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .04em;
}
.status.active { background: var(--green); color: #fff; }
.status.soon   { background: var(--almond-dark); color: var(--black); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dark-blue); color: #fff; font-weight: bold;
  display: grid; place-items: center;
}
.steps li:nth-child(3n+2)::before { background: var(--green); }
.steps li:nth-child(3n)::before   { background: var(--red); }

.checklist { padding-left: 0; list-style: none; }
.checklist li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}

/* ---------- Contact ---------- */
.contact-list { margin: 0; }
.contact-list dt { font-weight: bold; color: var(--dark-blue); margin-top: 12px; }
.contact-list dd { margin: 2px 0 0; text-align: left; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px; background: var(--almond-light);
  border-top: 1px solid var(--almond-dark); padding: 28px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; text-align: left; }
.footer-legal {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--almond-dark);
  font-size: 13px; color: var(--green);
}
.footer-legal p { text-align: left; margin: 0 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-emblem { width: 100px; max-width: 100px; order: -1; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; padding-bottom: 8px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); border-radius: 0 6px 6px 0; }
}

@media print {
  .site-nav, .nav-toggle, .btn-row, .skip-link { display: none !important; }
  body { background: #fff; }
}
