/* KEEPCARING static site - shared styles */
:root {
  --c-primary: #00adef;
  --c-primary-dark: #008fc7;
  --c-teal: #048488;
  --c-teal-dark: #036568;
  --c-navy: #0c2657;
  --c-steel: #2b4271;
  --c-slate: #8088a6;
  --c-pale: #b7c8d4;
  --c-bg-soft: #e6e9ee;
  --c-bg-cyan: #e5f7fd;
  --c-white: #ffffff;
  --c-text: #1c2233;
  --c-muted: #5a6479;
  --shadow-sm: 0 1px 3px rgba(12, 38, 87, 0.08), 0 1px 2px rgba(12, 38, 87, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 38, 87, 0.10), 0 2px 4px rgba(12, 38, 87, 0.06);
  --shadow-lg: 0 12px 32px rgba(12, 38, 87, 0.14);
  --radius: 8px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  line-height: 1.6;
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--c-navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-bg-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo img { height: 36px; width: auto; }
.site-logo { display: inline-flex; align-items: center; }

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-navy);
  border-radius: 6px;
}
.main-nav a:hover { color: var(--c-primary); background: var(--c-bg-cyan); text-decoration: none; }
.main-nav a.active { color: var(--c-primary); }
.main-nav .dropdown { position: relative; }
.main-nav .dropdown > a::after { content: " ▾"; font-size: 9px; color: var(--c-muted); }
.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-white);
  border: 1px solid var(--c-bg-soft);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
}
.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:focus-within .dropdown-menu { display: block; }
.main-nav .dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; font-size: 24px; color: var(--c-navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--c-bg-cyan) 0%, var(--c-white) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0,173,239,0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(4,132,136,0.15), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 80px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.hero p { font-size: 1.1rem; color: var(--c-muted); max-width: 540px; }
.hero-image { display: flex; justify-content: center; }
.hero-image img { max-height: 460px; filter: drop-shadow(0 20px 40px rgba(12,38,87,0.18)); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--c-primary); color: var(--c-white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-primary-dark); color: var(--c-white); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-outline { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); padding: 10px 24px; }
.btn-outline:hover { background: var(--c-primary); color: var(--c-white); text-decoration: none; }
.btn-dark { background: var(--c-navy); color: #fff; }
.btn-dark:hover { background: var(--c-steel); color: #fff; text-decoration: none; }

/* ===== Sections ===== */
section { padding: 72px 0; }
section.alt { background: var(--c-bg-cyan); }
section.dark { background: var(--c-navy); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: rgba(255,255,255,0.85); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.section-head p { color: var(--c-muted); font-size: 1.05rem; }

/* ===== Partners grid ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  align-items: center;
}
.partner-tile {
  background: #fff;
  border: 1px solid var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.partner-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--c-pale); }
.partner-tile img { max-height: 70px; max-width: 140px; object-fit: contain; }

/* ===== Project page sections ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { margin-top: 0; color: var(--c-navy); }
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--c-bg-cyan);
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
ul.checklist { list-style: none; padding: 0; }
ul.checklist li {
  padding: 6px 0 6px 30px;
  position: relative;
}
ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 6px;
  color: var(--c-primary);
  font-weight: 700;
}

/* Split content rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 0 0 48px;
}
.split:last-child { margin-bottom: 0; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-top: 0; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ===== Page header (non-home) ===== */
.page-header {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-steel) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }
.page-header .crumbs { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 12px; }

/* ===== Advisory board ===== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.person-card {
  background: #fff;
  border: 1px solid var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.person-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-teal));
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
.person-card h3 { text-align: center; margin: 8px 0 4px; }
.person-role {
  text-align: center;
  color: var(--c-primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.person-bio { color: var(--c-muted); font-size: 0.95rem; line-height: 1.55; }
.person-link { text-align: center; margin-top: 12px; }
.person-link a { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== News card grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--c-bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-teal), var(--c-primary));
  position: relative;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 18px;
}
.news-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-body .tag {
  display: inline-block;
  background: var(--c-bg-cyan);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.news-body h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.news-body h3 a { color: var(--c-navy); }
.news-body h3 a:hover { color: var(--c-primary); text-decoration: none; }
.news-body p { color: var(--c-muted); font-size: 0.92rem; flex: 1; }
.news-read { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }

/* ===== Partner detail row ===== */
.partner-rows { display: grid; gap: 18px; }
.partner-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.partner-row .partner-logo {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.partner-row .partner-logo img { max-height: 70px; max-width: 180px; object-fit: contain; }
.partner-row h3 { font-size: 1.05rem; margin: 0 0 4px; }
.partner-row .country {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-bg-cyan);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* ===== Newsletter / CTA ===== */
.cta-band {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-teal) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius);
  margin: 40px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 22px; }
.cta-band .btn-outline { color: #fff; border-color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--c-primary); }

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  outline: none;
}
.newsletter-form button { background: var(--c-navy); color: #fff; }
.newsletter-form button:hover { background: #000; }

/* ===== Contact ===== */
.contact-card {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--c-bg-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}
.contact-card .person-avatar { width: 140px; height: 140px; font-size: 52px; }
.contact-card h2 { margin: 0 0 6px; }
.contact-card .role { color: var(--c-primary); font-weight: 600; margin-bottom: 14px; }
.contact-card .email-link {
  display: inline-block;
  padding: 12px 22px;
  background: var(--c-bg-cyan);
  color: var(--c-primary);
  border-radius: 999px;
  font-weight: 600;
  margin-top: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: var(--c-primary); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-brand .logo-wrap { background: rgba(255,255,255,0.06); padding: 12px 16px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.footer-brand .logo-wrap img { height: 28px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.7); }
.eu-badge {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--c-primary);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.eu-badge strong { color: #fff; display: block; margin-bottom: 4px; font-size: 13px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }

/* ===== Privacy / long content ===== */
.prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--c-text);
}
.prose h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--c-primary); }
.prose h3 { margin: 24px 0 10px; }
.prose p, .prose li { color: var(--c-text); }
.prose ul { padding-left: 22px; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-row { grid-template-columns: 1fr; text-align: center; }
  .main-nav { display: none; position: absolute; right: 24px; top: 70px; flex-direction: column; background: #fff; border: 1px solid var(--c-bg-soft); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-md); min-width: 220px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .main-nav .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 12px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
