/* HARVEST public site */
:root {
  --navy: #0a2a3a;
  --navy-2: #0f3a4f;
  --teal: #0d6b6b;
  --teal-2: #1f9c9c;
  --teal-soft: #e3f1f0;
  --orange: #ba3c3c;
  --orange-dark: #962e2e;
  --ink: #17252e;
  --muted: #586a74;
  --line: #dde5e8;
  --bg: #ffffff;
  --bg-alt: #f3f6f7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 42, 58, .06), 0 8px 24px rgba(10, 42, 58, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; }
.site-nav a:hover { background: var(--bg-alt); color: var(--teal); }
.site-nav a.active { color: var(--teal); background: var(--teal-soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-back { font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.link-back::before { content: "← "; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    url("../img/hex-pattern.svg") right -80px center / 640px auto no-repeat,
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal) 130%);
}
.hero-inner { padding: clamp(64px, 10vw, 120px) 20px clamp(56px, 8vw, 96px); max-width: 1160px; }
.hero h1 { color: #fff; font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800; letter-spacing: .02em; margin-bottom: .1em; }
.hero .tagline { color: #34c0c0; font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 600; max-width: 720px; }
.hero .lead { font-size: 1.12rem; max-width: 640px; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal-2); margin-bottom: .8em; }
.hero .eyebrow { color: #8fd3cf; }

/* Facts strip */
.facts { background: var(--teal); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; border-left: 1px solid rgba(255,255,255,.15); }
.fact:first-child { border-left: 0; }
.fact-value { display: block; font-size: 1.6rem; font-weight: 800; }
.fact-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.section-head.row h2 { margin: 0; }
.section-intro { color: var(--muted); font-size: 1.08rem; }
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 700px; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: #8fd3cf; }
.empty { color: var(--muted); padding: 32px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.section-alt .empty { background: #fff; }

/* Technology cards */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.tech-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.tech-icon { width: 44px; height: 44px; padding: 9px; margin-bottom: 16px; border-radius: 12px; background: var(--teal-soft);
  fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10,42,58,.12); }
.news-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.news-card-link:hover { color: inherit; }
.news-thumb { aspect-ratio: 16 / 9; background: var(--teal-soft); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px 22px 24px; }
.news-body time { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.news-body h3 { margin: 6px 0 8px; }
.news-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a { min-width: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); text-align: center; text-decoration: none; }
.pager a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Article */
.article { padding-bottom: 80px; }
.article-head { padding-top: 48px; }
.article-head time { display: block; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.article-head .lead { font-size: 1.2rem; color: var(--muted); }
.article-image { margin: 24px auto 32px; }
.article-image img { border-radius: var(--radius); width: 100%; }
.article-image figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--orange); }

/* Two-column + fact card */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.fact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--orange); }
.fact-card h2 { font-size: 1.2rem; }
.fact-card dl { margin: 0; }
.fact-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 14px; }
.fact-card dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.fact-card .btn { word-break: break-all; }

/* Partners */
.partner-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.partner-strip li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 120px; }
.partner-strip img { max-height: 54px; width: auto; object-fit: contain; }
.partner-name { font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.partner-country { font-size: .85rem; color: var(--muted); }
.partner-list { display: grid; gap: 24px; }
.partner-card { display: grid; grid-template-columns: 220px 1fr; gap: 32px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.partner-logo { display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 10px; padding: 20px; min-height: 130px; }
.partner-logo img { max-height: 90px; width: auto; object-fit: contain; }
.partner-logo span { font-weight: 800; font-size: 1.4rem; color: var(--teal); text-align: center; }
.partner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.partner-info h2 { font-size: 1.35rem; }
.partner-info p { color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); letter-spacing: .05em; }
.badge-accent { background: #f7e1e1; color: var(--orange-dark); text-transform: uppercase; }
@media (max-width: 700px) { .partner-card { grid-template-columns: 1fr; gap: 20px; } }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding-top: 48px; padding-bottom: 32px; align-items: start; }
.footer-eu { display: flex; align-items: center; gap: 16px; }
.footer-eu img { flex: none; border: 1px solid rgba(255,255,255,.2); }
.footer-eu strong { display: block; color: #fff; font-size: 1.05rem; }
.footer-eu .muted { color: rgba(255,255,255,.65); }
.disclaimer { font-size: .82rem; color: rgba(255,255,255,.6); margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 18px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
