/* ============================================================
   BE READY — Website Demo
   Shared Stylesheet · Sketch / Prototype Aesthetic
   Brand colours from beready4pandemics.eu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --magenta:   #DC0451;
  --orange:    #FFA100;
  --yellow:    #FCB900;
  --black:     #1a1a1a;
  --dark:      #222222;
  --mid:       #555555;
  --light:     #f5f3ef;
  --paper:     #faf8f4;
  --white:     #ffffff;
  --border:    #c8c0b0;

  --sketch-font: 'Caveat', cursive;
  --body-font:   'DM Sans', sans-serif;
  --serif-font:  'DM Serif Display', serif;

  --radius-card: 3px 12px 4px 10px;
  --radius-btn:  2px 8px 3px 7px;
  --radius-tag:  1px 6px 2px 5px;
  --shadow-card: 3px 4px 0px rgba(0,0,0,0.12);
  --shadow-hover: 5px 7px 0px rgba(0,0,0,0.18);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background-color: var(--paper);
  color: var(--dark);
  line-height: 1.65;
  font-size: 16px;
  /* subtle paper texture via repeating gradient */
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0,0,0,0.018) 28px, rgba(0,0,0,0.018) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(0,0,0,0.010) 28px, rgba(0,0,0,0.010) 29px);
}

a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Prototype Banner ──────────────────────────────────── */
.proto-banner {
  background: var(--dark);
  color: var(--yellow);
  font-family: var(--sketch-font);
  font-size: 1.1rem;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.04em;
}
.proto-banner span { color: #aaa; font-size: 0.9rem; margin-left: 12px; }

/* ── Navigation ────────────────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 2.5px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}

.nav-logo {
  flex-shrink: 0;
  margin-right: 16px;
}
.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex: 1;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  color: var(--dark);
  font-family: var(--body-font);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--magenta); text-decoration: none; }

/* Colour-coded underlines matching sketch */
.nav-links > li:nth-child(1) > a { border-bottom: 3px solid var(--orange); }
.nav-links > li:nth-child(2) > a { border-bottom: 3px solid var(--magenta); }
.nav-links > li:nth-child(3) > a { border-bottom: 3px solid var(--yellow); }
.nav-links > li:nth-child(4) > a { border-bottom: 3px solid #3dbfbf; }
.nav-links > li:nth-child(5) > a { border-bottom: 3px solid var(--magenta); }
.nav-links > li:nth-child(6) > a { border-bottom: 3px solid #888; }

.nav-links > li.active > a { color: var(--magenta); }

/* Dropdowns */
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  z-index: 200;
}
.nav-links > li:hover .dropdown { display: block; }
.nav-links .dropdown li a {
  display: block;
  padding: 8px 18px;
  color: var(--dark);
  font-size: 0.86rem;
  font-weight: 400;
  transition: background 0.15s;
}
.nav-links .dropdown li a:hover {
  background: var(--light);
  color: var(--magenta);
  text-decoration: none;
}

/* Nav CTA */
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}
.btn-nav-cta {
  background: var(--yellow);
  color: var(--dark) !important;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--dark);
  box-shadow: 2px 2px 0 var(--dark);
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none !important;
}
.btn-nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--dark);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  letter-spacing: 0.01em;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
  text-decoration: none !important;
}
.btn-primary {
  background: var(--yellow);
  color: var(--dark) !important;
}
.btn-magenta {
  background: var(--magenta);
  color: var(--white) !important;
  border-color: var(--magenta);
  box-shadow: 3px 3px 0 rgba(220,4,81,0.3);
}
.btn-magenta:hover { box-shadow: 4px 4px 0 rgba(220,4,81,0.4); }
.btn-outline {
  background: transparent;
  color: var(--dark) !important;
}
.btn-outline:hover { background: var(--light); }
.btn-sm {
  font-size: 0.82rem;
  padding: 6px 14px;
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(-1px, -2px);
}
.card-orange { border-left: 5px solid var(--orange); }
.card-magenta { border-left: 5px solid var(--magenta); }
.card-teal    { border-left: 5px solid #3dbfbf; }
.card-yellow  { border-left: 5px solid var(--yellow); }

/* ── Sketch Labels & Tags ───────────────────────────────── */
.sketch-label {
  font-family: var(--sketch-font);
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 4px;
  display: block;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-tag);
  border: 1.5px solid currentColor;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag-orange  { color: var(--orange);  background: rgba(255,161,0,0.1); }
.tag-magenta { color: var(--magenta); background: rgba(220,4,81,0.08); }
.tag-teal    { color: #2a9090;        background: rgba(61,191,191,0.1); }
.tag-dark    { color: var(--dark);    background: rgba(0,0,0,0.07); }

/* ── Section Headers ────────────────────────────────────── */
.section-header {
  margin-bottom: 32px;
}
.section-header .sketch-label {
  font-size: 1.1rem;
}
.section-title {
  font-family: var(--serif-font);
  font-size: 2rem;
  color: var(--dark);
  line-height: 1.2;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--magenta);
  border-radius: 2px;
  margin-top: 6px;
  width: 60%;
}
.section-subtitle {
  margin-top: 10px;
  color: var(--mid);
  font-size: 0.97rem;
  max-width: 640px;
}

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--light);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Sidebar Layout ─────────────────────────────────────── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── Knowledge Exchange Sidebar Widget ──────────────────── */
.kx-widget {
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.kx-widget-title {
  font-family: var(--sketch-font);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.kx-widget-sub {
  font-size: 0.8rem;
  color: var(--mid);
  margin-bottom: 16px;
  font-style: italic;
}
.kx-exchange {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.kx-bubble {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 3px 10px 10px 3px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--dark);
}
.kx-bubble.reply {
  background: rgba(220,4,81,0.05);
  border-color: rgba(220,4,81,0.2);
  border-radius: 10px 3px 10px 10px;
}
.kx-bubble strong {
  display: block;
  font-size: 0.72rem;
  color: var(--magenta);
  margin-bottom: 2px;
}
.kx-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 8px 12px;
  font-family: var(--body-font);
  font-size: 0.85rem;
  margin-bottom: 10px;
  background: var(--light);
  resize: none;
}
.kx-input:focus {
  outline: none;
  border-color: var(--magenta);
}
.kx-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--mid);
  margin-bottom: 12px;
}
.kx-live-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Depth Selector (1′ · 3′ · Full Meta) ───────────────── */
.depth-selector {
  display: flex;
  gap: 0;
  border: 2px solid var(--dark);
  border-radius: var(--radius-btn);
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
}
.depth-btn {
  padding: 7px 18px;
  font-family: var(--sketch-font);
  font-size: 1rem;
  font-weight: 600;
  background: var(--white);
  color: var(--mid);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  border-right: 1.5px solid var(--dark);
}
.depth-btn:last-child { border-right: none; }
.depth-btn:hover { background: var(--light); color: var(--dark); }
.depth-btn.active {
  background: var(--magenta);
  color: var(--white);
}
.depth-content { display: none; }
.depth-content.active { display: block; }

/* ── Stat Numbers ────────────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 20px;
}
.stat-number {
  font-family: var(--serif-font);
  font-size: 2.8rem;
  color: var(--magenta);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--mid);
  margin-top: 4px;
  display: block;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  border-top: 3px solid var(--magenta);
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--sketch-font);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--yellow); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .eu-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.eu-stars {
  font-size: 1.1rem;
  color: var(--yellow);
  letter-spacing: -1px;
}
.footer-legal {
  display: flex;
  gap: 16px;
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.footer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--magenta);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.15;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--magenta);
  opacity: 0.12;
}
.page-hero .sketch-label { color: rgba(255,255,255,0.55); }
.page-hero h1 {
  font-family: var(--serif-font);
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

/* ── Utility ─────────────────────────────────────────────── */
.text-magenta { color: var(--magenta); }
.text-orange  { color: var(--orange); }
.text-mid     { color: var(--mid); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ── Highlight / Marker underline ───────────────────────── */
.highlight-orange {
  background: linear-gradient(180deg, transparent 55%, rgba(255,161,0,0.35) 55%);
  padding-bottom: 1px;
}
.highlight-magenta {
  background: linear-gradient(180deg, transparent 55%, rgba(220,4,81,0.18) 55%);
  padding-bottom: 1px;
}

/* ── Sketch wobbly box decoration ───────────────────────── */
.sketch-box {
  border: 2px solid var(--dark);
  border-radius: 4px 14px 6px 12px;
  padding: 20px;
  position: relative;
}
.sketch-box::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px 12px 4px 10px;
  pointer-events: none;
}

/* ── Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
}
.filter-label {
  font-family: var(--sketch-font);
  font-size: 1rem;
  color: var(--mid);
  margin-right: 4px;
}
.filter-btn {
  padding: 5px 14px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}

/* ── Responsive (basic) ─────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .layout-sidebar  { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .nav-links > li > a { padding: 8px 10px; font-size: 0.82rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.9rem; }
}
