/* Brandon Text — the font used by the QUB site (served with CORS by qub.ac.uk) */
@font-face { font-family: BrandonText; src: url(https://www.qub.ac.uk/assets/fonts/brandonTextComplete/HVDFonts-BrandonText-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: BrandonText; src: url(https://www.qub.ac.uk/assets/fonts/brandonTextComplete/HVDFonts-BrandonText-Medium.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: BrandonText; src: url(https://www.qub.ac.uk/assets/fonts/brandonTextComplete/HVDFonts-BrandonText-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: BrandonText; src: url(https://www.qub.ac.uk/assets/fonts/brandonTextComplete/HVDFonts-BrandonText-Black.otf) format("opentype"); font-weight: 900; font-display: swap; }

:root {
  --feature: #672e6c;
  --feature-dark: #52245a;
  --ink: #111111;
  --muted: #444444;
  --bg: #ffffff;
  --line: #e7e7e7;
  --font: BrandonText, Helvetica, Roboto, Arial, sans-serif;
  --max: 1160px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Top bar ---------- */
.site-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-bar-inner {
  display: flex;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-name {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.35;
  text-decoration: none;
}

/* ---------- Hero (NI-ADAPT header) ---------- */
.hero {
  position: relative;
  min-height: calc(100vw * 9 / 21);   /* 21:9 shape, grows taller if the content needs it */
  display: flex;
  clip-path: inset(0);         /* clips the parallax layer without capping the height */
  isolation: isolate;          /* keep the blends inside the hero */
  background: #fff;
  color: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: -12% 0 -12% 0;   /* extra height so the parallax shift never shows an edge */
  background-size: cover;
  background-position: center;
  will-change: transform;
}
/* Feature colour over the image, soft-light blend */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--feature);
  mix-blend-mode: soft-light;
}
/* Subtle white fade from the left */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.4) 35%, rgba(255,255,255,0) 65%);
}
.hero-inner {
  --cap: 18px;                 /* shared logo cap height, see .logo-* */
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

/* Partner logos: sized so their wordmark cap heights match (--cap).
   Measured cap heights in the source images: QUB 110/1429, Ulster 214/1104, MRC 39/377. */
.hero-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 24px 64px;
}
.hero-logos li { display: flex; align-items: center; }
.hero-logos .logo-end { margin-left: auto; }   /* MRC sits on the same row, right-aligned */
.hero-logos a { display: block; position: relative; isolation: isolate; }
/* Very subtle white glow behind each logo */
.hero-logos a::before {
  content: "";
  position: absolute;
  inset: -40% -35%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255,255,255,.85) 20%, rgba(255,255,255,0));
}
.hero-logos .logo-end a::before { right: 0; }   /* keep the right-hand glow inside the page */
.hero-logos img {
  width: auto;
  display: block;
  /* white halo that follows each logo's shape */
  filter: drop-shadow(0 0 8px rgba(255,255,255,.8));
}
.logo-qub { height: calc(var(--cap) * 1429 / 110); }
.logo-uu  { height: calc(var(--cap) * 1104 / 214); }
.logo-mrc { height: calc(var(--cap) * 377 / 39); }

/* Boxed highlight, as on the QUB banner */
.highlight-boxed {
  --highlight-bg: var(--feature);
  --highlight-text: #fff;
  --highlight-padding: 0.25em;
  white-space: pre-wrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding-right: var(--highlight-padding);
  box-shadow: calc(var(--highlight-padding) * -1) 0 0 var(--highlight-bg);
  margin-left: var(--highlight-padding);
}
.highlight-boxed.white { --highlight-bg: #fff; --highlight-text: var(--feature); }

/* ---------- Announcement ---------- */
.announcement { padding: 88px 0; }
.announcement-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.announcement .eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--feature);
}
.announcement h2 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}
.announcement p { font-size: 1.125rem; color: var(--muted); margin: 0 0 32px; }
.announcement-image { margin: 0; }
.announcement-image img { width: 100%; border-radius: 6px; }

.button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--feature);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3px;
  transition: background .15s ease;
}
.button:hover, .button:focus-visible { background: var(--feature-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-logo { display: block; }
.footer-logo img { height: 180px; width: auto; }

.footer-contact { text-align: right; font-size: 0.95rem; }
.footer-contact p { margin: 0 0 10px; }
.footer-heading { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #bbb; }
.footer-contact a:hover { border-color: var(--feature); color: var(--feature); }
.footer-contact a.footer-cta { color: var(--feature); font-weight: 700; border-bottom-color: transparent; }
.footer-contact a.footer-cta:hover { border-bottom-color: var(--feature); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 0.85rem;
  color: #6b6b6b;
}

a:focus-visible { outline: 2px solid var(--feature); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .announcement { padding: 56px 0; }
  .announcement-grid { grid-template-columns: 1fr; gap: 36px; }
  .announcement-image { order: -1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
}
@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-inner { --cap: 10.5px; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .hero-logos { gap: 24px; flex-wrap: nowrap; }
  .footer-logo img { height: 140px; }
  .hero-title br { display: none; }
}
