/* =========================================================
   CRANE — Design system
   Self-hosted fonts: Poppins (headings) + Inter (body)
   ========================================================= */

@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  /* Brand */
  --teal-900: #1c4b4e;
  --teal-700: #2d848a;
  --teal-600: #357f84;
  --teal-500: #4fa3a8;
  --teal-200: #bfe0e1;
  --teal-100: #eaf3f3;
  --coral-600: #e85c41;
  --coral-500: #fc7069;

  /* Neutrals */
  --ink-900: #23272a;
  --ink-700: #333333;
  --ink-500: #5b636b;
  --ink-400: #677a92;
  --ink-300: #8a94a6;
  --line: #e1e8e8;
  --line-soft: #eef2f2;
  --bg: #ffffff;
  --bg-alt: #f7fafa;

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(28, 75, 78, 0.08);
  --shadow-md: 0 8px 24px rgba(28, 75, 78, 0.12);
  --shadow-lg: 0 20px 48px rgba(28, 75, 78, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }
.section--teal {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #eafafa;
}
.section--teal h2, .section--teal h3 { color: #ffffff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral-600);
  display: inline-block;
}
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }
.lede { font-size: 1.15rem; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-900); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--teal-700);
  color: var(--teal-700);
}
.btn-outline:hover { background: var(--teal-700); color: #fff; }
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost-light:hover { background: #fff; color: var(--teal-900); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink-900);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  transition: 0.2s;
}
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-700);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--teal-100);
  color: var(--teal-700);
}
.main-nav .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-logo { height: 64px; width: auto; margin-bottom: 22px; }
.hero h1 { margin-bottom: 18px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.hero .lede { margin-bottom: 30px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--teal-700);
  display: block;
}
.stat .label { font-size: 0.85rem; color: var(--ink-400); }
.stat-strip--mini { border: none; padding: 20px 0 4px; }
.stat-strip--mini .stat .num { font-size: 1.3rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover, .card.hoverable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: var(--teal-100);
  border-color: var(--teal-200);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-700);
}
.card--cta:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.news-grid-with-cta { grid-template-columns: 1fr 1fr 1fr 0.6fr; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: 0.96rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal-700);
}

/* ---------- Timeline / phases ---------- */
.phase-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  position: relative;
}
.phase .phase-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-600);
  display: block;
  margin-bottom: 8px;
}
.phase h4 { margin-bottom: 8px; }
.phase p { font-size: 0.88rem; color: var(--ink-500); margin-bottom: 14px; }
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
  border-radius: 999px;
}
.phase .pct { font-size: 0.78rem; color: var(--ink-400); margin-top: 6px; display: block; }
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-done { background: #e3f3ea; color: #1f7a4d; }
.badge-progress { background: #fff3e0; color: #b26a00; }
.badge-pending { background: var(--line-soft); color: var(--ink-400); }

/* ---------- Timeline list (news / key dates) ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-700);
  border: 3px solid var(--teal-100);
}
.timeline-item .date {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Timeline, horizontal (Home) ---------- */
.timeline-h { display: flex; flex-wrap: wrap; gap: 28px 20px; }
.timeline-h-item {
  flex: 1 1 150px;
  min-width: 130px;
  padding-top: 22px;
  position: relative;
  border-top: 3px solid var(--teal-200);
}
.timeline-h-item::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-700);
}
.timeline-h-item .date {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.timeline-h-item p { font-size: 0.86rem; color: var(--ink-500); margin: 0; }

/* ---------- PCP process figure (Home) ---------- */
.pcp-process-figure { display: flex; justify-content: center; }
.pcp-process-figure img { width: 100%; max-width: 900px; height: auto; }

/* ---------- News / document list ---------- */
.news-card {
  display: block;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.news-card:first-child { padding-top: 0; }
.news-card .date { font-size: 0.82rem; color: var(--ink-400); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.news-card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.news-card p { color: var(--ink-500); font-size: 0.95rem; }

.doc-list { display: grid; gap: 12px; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.doc-row:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.doc-row .doc-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 9px;
  background: var(--coral-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.68rem;
}
.doc-row .doc-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-row .doc-title { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--ink-900); }
.doc-row .doc-sub { font-size: 0.82rem; color: var(--ink-400); }
.doc-row .doc-action { font-family: var(--font-head); font-weight: 600; font-size: 0.84rem; color: var(--teal-700); flex: none; }

/* ---------- Placeholder / TODO blocks ---------- */
.todo-block {
  border: 2px dashed var(--coral-500);
  background: #fff6f4;
  border-radius: var(--radius);
  padding: 22px 26px;
}
.todo-block .todo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 10px;
}
.todo-block p { color: var(--ink-500); font-size: 0.92rem; }

.info-block {
  border-radius: var(--radius);
  background: var(--teal-100);
  padding: 22px 26px;
}
.info-block .info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 10px;
}
.info-block p { color: var(--ink-700); font-size: 0.92rem; }

/* ---------- Consortium ---------- */
.partner-card { display: flex; flex-direction: column; gap: 12px; }
.partner-card .role-badge {
  align-self: flex-start;
  background: var(--teal-100);
  color: var(--teal-700);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.partner-card .country { font-size: 0.82rem; color: var(--ink-400); }
.partner-card a.site-link { font-size: 0.85rem; font-weight: 600; color: var(--teal-700); }
.partner-logo { height: 40px; width: auto; max-width: 150px; object-fit: contain; object-position: left; margin-bottom: 4px; }
.consortium-map {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 28px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin: 24px 0 72px;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { max-width: 460px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #c9d3d3; padding: 40px 0; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: #c9d3d3;
}
.social-row a:hover { background: var(--teal-700); color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #8a9a9a;
  flex: none;
}
.eu-disclaimer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 320px;
  min-width: 0;
}
.eu-disclaimer img { height: 40px; width: auto; flex: none; }
.eu-disclaimer p { font-size: 0.82rem; color: #c9d3d3; margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding-top: 56px; padding-bottom: 40px; }
.page-header .eyebrow { color: var(--coral-600); }
.page-header h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.breadcrumb { font-size: 0.85rem; color: var(--ink-400); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-700); font-weight: 600; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.small { font-size: 0.85rem; color: var(--ink-400); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--coral-600); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-4, .news-grid-with-cta { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .phase-track { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }

  /* Full desktop nav (6 items + logo) stops fitting on one line around here,
     so tablets get the same collapsed hamburger nav as mobile. */
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }
  .main-nav .btn { margin-left: 0; margin-top: 10px; display: block; text-align: center; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .news-grid-with-cta { grid-template-columns: 1fr; }
  .phase-track { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .eu-disclaimer { align-items: flex-start; text-align: left; flex-basis: auto; }
  .cta-banner { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .section { padding: 52px 0; }
}
