/* DoBetterNorge.com — Hybrid credible + urgent design system */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,600;0,700;1,600&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono&display=swap');

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --navy:      #00205B;
  --navy-mid:  #003D7A;
  --red:       #BA0C2F;
  --red-dark:  #8C0921;
  --gold:      #c9a84c;
  --white:     #ffffff;
  --off-white: #F5F3F0;
  --gray-100:  #F5F3F0;
  --gray-300:  #dedad5;
  --gray-500:  #868e96;
  --gray-700:  #495057;
  --gray-900:  #1a1a1a;
  --font-head: 'Crimson Pro', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);
  --nav-h:     60px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--off-white); line-height: 1.65; font-size: 1rem; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--gray-700); }
.lead { font-size: 1.15rem; color: var(--gray-700); line-height: 1.75; }
code, .mono { font-family: var(--font-mono); font-size: .9em; background: var(--gray-100); padding: .15em .4em; border-radius: 3px; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }

/* ── Top navigation ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  box-shadow: 0 2px 12px rgba(0,32,91,.08);
  transition: box-shadow .3s ease;
}
.site-nav.scrolled { box-shadow: 0 4px 20px rgba(0,32,91,.12); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 2rem;
  min-height: var(--nav-h);
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { display: block; width: min(10rem, 42vw); height: auto; filter: drop-shadow(0 2px 6px rgba(0,32,91,.14)); }
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin-right: auto;
}
.nav-links a {
  color: var(--gray-900);
  font-size: .92rem;
  font-weight: 500;
  padding: .4rem .65rem;
  border-radius: 0;
  text-decoration: none;
  transition: color .15s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--gray-900); background: transparent; }

/* Language switcher */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--gray-900);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: .35rem .7rem;
  border-radius: var(--radius);
  border: 2px solid var(--gray-300);
  background: transparent;
  letter-spacing: .02em;
  user-select: none;
}
.lang-current:hover { background: var(--gray-100); border-color: var(--navy); }
.lang-current::after { content: '▾'; font-size: .7rem; color: var(--gray-500); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,32,91,.15);
  min-width: 170px;
  overflow: hidden;
  z-index: 300;
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown { display: block; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  font-size: .88rem;
  color: var(--gray-900);
  text-decoration: none;
  transition: background .1s;
}
.lang-dropdown a:hover { background: var(--gray-100); }
.lang-dropdown a.current { background: rgba(186,12,47,.08); font-weight: 600; color: var(--red); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--navy);
  line-height: 1;
  padding: .25rem;
  flex-shrink: 0;
}
@media (max-width: 968px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: .5rem 0;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,32,91,.12);
    z-index: 190;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { display: flex; max-height: 800px; }
  .nav-links a { padding: .9rem 1.5rem; border-radius: 0; }
  .nav-links a::after { bottom: 0; }
}

/* ── Stat strip ─────────────────────────────────────────────── */
.stat-strip {
  background: var(--red);
  color: var(--white);
  padding: .6rem 0;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.stat-strip .stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-strip .stat-item { display: flex; align-items: center; gap: .5rem; }
.stat-strip .stat-num { font-size: 1.1rem; font-weight: 800; }

/* ── Hero section ────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 680px; }
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ── Audience nav ────────────────────────────────────────────── */
.audience-nav {
  background: var(--navy-mid);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.audience-card {
  background: var(--navy-mid);
  padding: 2rem 1.75rem;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.audience-card:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.audience-card .icon { font-size: 2rem; margin-bottom: .75rem; }
.audience-card h3 { color: var(--white); font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .06em; }
.audience-card p { color: rgba(255,255,255,.6); font-size: .88rem; margin: 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary   { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }
.btn-outline   { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); text-decoration: none; }
.btn-navy      { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); text-decoration: none; }
.btn-gold      { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-sm        { padding: .4rem .9rem; font-size: .82rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  border: 1px solid var(--gray-300);
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.article-card .card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.article-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .card-img img { transform: scale(1.04); }
.article-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-type {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: .5rem;
}
.article-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--navy); }
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--red); text-decoration: none; }
.article-card p { font-size: .9rem; color: var(--gray-500); flex: 1; margin-bottom: 1rem; }
.card-meta { font-size: .78rem; color: var(--gray-500); display: flex; gap: 1rem; margin-top: auto; }

/* ── Evidence card variant ─────────────────────────────────── */
.evidence-card { border-left: 4px solid var(--red); }
.echr-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 3px;
  margin-right: .4rem;
  margin-bottom: .4rem;
}

/* ── Section headers ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gray-300);
}
.section-header h2 { margin: 0; }
.section-header a { font-size: .88rem; font-weight: 600; }

/* ── Article single page ─────────────────────────────────────── */
.article-header { background: var(--navy); color: var(--white); padding: 3.5rem 0 2.5rem; }
.article-header .eyebrow { color: var(--gold); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.article-header h1 { color: var(--white); margin-bottom: 1rem; }
.article-header .summary { color: rgba(255,255,255,.75); font-size: 1.1rem; line-height: 1.7; }
.article-meta-bar { background: var(--navy-mid); padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.article-meta-bar .meta-inner { display: flex; gap: 2rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.6); }
.article-meta-bar strong { color: var(--white); }

.article-body { padding: 3rem 0; }
.article-content { max-width: 760px; }
.article-content h2, .article-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.article-content p { line-height: 1.8; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .4rem; line-height: 1.7; }
.article-content blockquote { border-left: 4px solid var(--red); padding: 1rem 1.5rem; background: var(--gray-100); margin: 1.5rem 0; font-style: italic; }

/* Cite block */
.cite-block { background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 2.5rem; }
.cite-block h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-bottom: .5rem; }
.cite-block p { font-family: var(--font-mono); font-size: .82rem; color: var(--gray-700); margin: 0; }

/* Press release contact */
.press-contact-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}
.press-contact-box h4 { color: var(--gold); font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.press-contact-box p { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: .4rem; }

/* Embargo notice */
.embargo-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius); padding: .75rem 1.25rem; font-size: .88rem; font-weight: 600; color: #856404; margin-bottom: 1.5rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; max-width: 640px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--gray-700); }
.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--gray-900);
  transition: border-color .2s;
  background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--navy); }
select.form-control { cursor: pointer; }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: .3rem; }
.form-alert { padding: .9rem 1.2rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1.2rem; }
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Filter bar ──────────────────────────────────────────────── */
.filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.filter-bar select { padding: .5rem .85rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: .88rem; font-family: var(--font-body); cursor: pointer; background: var(--white); }
.filter-bar select:focus { outline: none; border-color: var(--navy); }
.search-input { padding: .5rem 1rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: .88rem; font-family: var(--font-body); min-width: 200px; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  transition: all .15s;
}
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); text-decoration: none; }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: rgba(255,255,255,.85);
  padding: 3.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(186,12,47,.1) 0%, transparent 50%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,.04) 0%, transparent 50%);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; position: relative; }
.footer-brand-logo {
  display: inline-block;
  width: min(14rem, 100%);
  background: rgba(255,255,255,.96);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  margin-bottom: 1.25rem;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.footer-brand-logo:hover { opacity: .9; transform: translateY(-2px); }
.footer-brand-logo img { width: 100%; height: auto; display: block; }
.footer-desc { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.75); }
.footer-social { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.25rem; }
.footer-social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all .3s ease;
}
.footer-social-link:hover {
  background: var(--red);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(186,12,47,.4);
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  text-decoration: none;
  transition: color .15s;
  position: relative;
  display: inline-block;
}
.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s;
}
.footer-col a:hover { color: var(--white); }
.footer-col a:hover::after { width: 100%; }
.footer-subscribe { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.footer-subscribe h4 { color: var(--white); font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.footer-subscribe p { font-size: .85rem; margin-bottom: 1rem; color: rgba(255,255,255,.7); }
.footer-subscribe form { display: flex; gap: .5rem; }
.footer-subscribe input {
  flex: 1;
  padding: .65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .88rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.footer-subscribe input::placeholder { color: rgba(255,255,255,.4); }
.footer-subscribe input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.15); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .82rem; position: relative; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-press    { background: #fff3cd; color: #856404; }
.badge-evidence { background: #f8d7da; color: #721c24; }
.badge-article  { background: #d4edda; color: #155724; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-red   { color: var(--red); }
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
}
