/* =========================================================
   David Hald — davidhald.com
   Shared stylesheet for the v2 board-positioning site.
   Plain static CSS — no build step, loaded by every /da/ and /en/ page.
   ========================================================= */

:root {
  --navy-dark: #0a1730;
  --navy: #0f2247;
  --navy-light: #1c3866;
  --accent-blue: #2457c5;
  --steel: #5b6472;
  --steel-light: #8b93a1;
  --off-white: #f6f5f2;
  --paper: #ffffff;
  --ink: #17203a;
  --hairline: #e0ddd6;
  --hairline-dark: rgba(255, 255, 255, 0.18);
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Focus visibility (WCAG AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-dark);
  border-bottom: 1px solid var(--hairline-dark);
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
nav.site-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
nav.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--accent-blue);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.lang-switch a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
}
.lang-switch a:hover { color: var(--paper); border-color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--paper);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  nav.site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
    border-bottom: 1px solid var(--hairline-dark);
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a { padding: 12px 0; border-bottom: 1px solid var(--hairline-dark); }
  .nav-toggle { display: inline-block; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 18px;
}
.section-dark .eyebrow,
.hero .eyebrow {
  color: #7fa3e8;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-dark);
  color: var(--paper);
  padding: 96px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; max-width: 260px; margin: 0 auto; }
}
.hero .statement {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 28px;
  color: var(--paper);
}
.hero .body {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 62ch;
  margin-bottom: 40px;
}
.cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 2px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent-blue);
  color: var(--paper);
  border-color: var(--accent-blue);
}
.btn-primary:hover { background: #1c46a0; border-color: #1c46a0; }
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.section-light .btn-secondary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--navy-light);
}
.section-tint .btn-secondary {
  background: var(--off-white);
  color: var(--navy);
  border-color: var(--navy-light);
}
.section-light .btn-secondary:hover,
.section-tint .btn-secondary:hover { background: var(--navy); color: var(--paper); }

@media (max-width: 600px) {
  .cta-row { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- Section basics ---------- */
section { padding: 88px 0; }
.section-light { background: var(--paper); }
.section-tint { background: var(--off-white); }
.section-dark { background: var(--navy-dark); color: var(--paper); }
.section-dark .section-sub { color: var(--steel-light); }

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-wrap: balance;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--steel);
  font-size: 1rem;
  max-width: 62ch;
  margin-bottom: 48px;
}

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.section-dark .divider { border-top-color: var(--hairline-dark); }

/* ---------- Proof strip ---------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.proof-item {
  padding: 32px 28px;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}
.proof-item:last-child { border-right: none; }
.proof-item .figure {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-item .caption {
  color: var(--steel);
  font-size: 0.92rem;
}
/* ---------- Contribution list ("Det jeg tilfører en bestyrelse") ---------- */
.contribution-list {
  border-top: 1px solid var(--hairline-dark);
}
.contribution-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline-dark);
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 32px;
}
.contribution-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contribution-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent-blue);
}
.contribution-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.contribution-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.contribution-item p { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 760px) {
  .contribution-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Case study (track record) ---------- */
.case-study {
  border-top: 1px solid var(--hairline);
  padding: 44px 0;
}
.case-study:last-child { border-bottom: 1px solid var(--hairline); }
.case-study h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.case-study p { max-width: 68ch; margin-bottom: 16px; color: #333; }
.case-proof {
  font-size: 0.9rem;
  color: var(--steel);
}
/* ---------- Point of view ---------- */
.pov-band { text-align: left; }
.pov-band blockquote {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: 28px;
}
.pov-band .body { max-width: 66ch; color: rgba(255, 255, 255, 0.85); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  margin-top: 8px;
}
.testimonial {
  border-left: 3px solid var(--navy-light);
  padding-left: 22px;
}
.testimonial.featured {
  border-left-color: var(--accent-blue);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #2a2a2a;
  margin-bottom: 16px;
}
.testimonial blockquote p { margin-bottom: 12px; }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial cite {
  font-style: normal;
  display: block;
  font-size: 0.85rem;
  color: var(--steel);
}
.testimonial cite strong { color: var(--navy); display: block; font-size: 0.92rem; }
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Perspectives ---------- */
.perspective-list { border-top: 1px solid var(--hairline); }
.perspective-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.perspective-item h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.perspective-item h3 a { text-decoration: none; color: var(--navy); }
.perspective-item h3 a:hover { color: var(--accent-blue); text-decoration: underline; }
.perspective-item .status {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact-wrap { max-width: 620px; }
.field { margin-bottom: 26px; }
.field label,
fieldset.field legend {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.req { color: var(--accent-blue); }
.opt { text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: #9a9a9a; }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 10px 2px;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
#form-status { margin-top: 16px; font-size: 0.9rem; color: var(--navy); }
.privacy-note { font-size: 0.82rem; color: var(--steel); margin-top: 28px; max-width: 60ch; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: var(--steel-light);
  padding: 40px 0;
  font-size: 0.82rem;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
footer.site-footer .legal { max-width: 60ch; color: rgba(255, 255, 255, 0.5); font-size: 0.78rem; }
footer.site-footer a { color: var(--steel-light); text-decoration: none; }
footer.site-footer a:hover { color: var(--paper); }

/* ---------- Draft badge (unapproved article drafts) ---------- */
.draft-badge {
  display: inline-block;
  background: #fdf1e0;
  color: #8a5a00;
  border: 1px solid #e8c98a;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 32px;
}

/* ---------- Article ---------- */
.article-header { max-width: 68ch; margin-bottom: 40px; }
.article-header .deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--steel);
  margin-top: 14px;
}
.article-meta {
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 18px;
}
.article-body { max-width: 68ch; }
.article-body p { margin-bottom: 22px; }
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 40px 0 18px;
}
.article-body ol,
.article-body ul {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
  counter-reset: article-list;
}
.article-body ol li {
  counter-increment: article-list;
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
}
.article-body ol li::before {
  content: counter(article-list);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent-blue);
}
.article-signoff {
  margin-top: 40px;
  font-style: italic;
  color: var(--steel);
}
.article-back { margin-top: 56px; }

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
}
