/* ===== Base & Variables ===== */
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3559;
  --primary-light: #1a6bb5;
  --accent: #e8a317;
  --accent-hover: #d4920f;
  --bg: #f7f9fc;
  --bg-alt: #eef2f7;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --white: #ffffff;
  --border: #d8e0ea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 76, 129, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-icon { font-size: 1.4rem; }
.logo-dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(15, 76, 129, 0.06);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero med billede ===== */
.hero-with-image {
  position: relative;
  padding: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 40, 70, 0.88) 0%, rgba(15, 76, 129, 0.75) 45%, rgba(15, 76, 129, 0.45) 100%);
}

.hero-with-image .hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  display: block;
}

.hero-with-image .hero-text {
  max-width: 620px;
  color: var(--white);
}

.hero-with-image .hero-eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero-with-image h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-with-image .hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-header.light p {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Intro grid ===== */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.intro-text h2 {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
}
.intro-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.intro-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ===== Focus cards ===== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.focus-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.focus-img {
  height: 200px;
  overflow: hidden;
}
.focus-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.focus-card:hover .focus-img img {
  transform: scale(1.05);
}

.focus-body {
  padding: 1.5rem;
}
.focus-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.focus-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Article cards ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.article-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ===== Highlight section ===== */
.section-highlight {
  background: var(--white);
  padding: 4rem 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.highlight-image {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-image img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.highlight-text blockquote {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  background: none;
  font-style: normal;
}

.highlight-source {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ===== About simple ===== */
.about-simple {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-simple h2 {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
}
.about-simple p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  margin-bottom: 1.5rem;
}
.contact-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}
.contact-item a,
.contact-item span {
  font-size: 1.15rem;
  font-weight: 600;
}
.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  background: #0a2740;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 280px;
  opacity: 0.75;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

/* ===== Article page specific ===== */
.article-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(160deg, #e8f1fa 0%, #f7f9fc 100%);
}
.article-hero .container {
  max-width: 760px;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.article-body {
  padding: 3rem 0 4rem;
}
.article-body .container {
  max-width: 760px;
}
.article-body h2 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.9rem;
}
.article-body h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.7rem;
}
.article-body p {
  margin-bottom: 1.1rem;
  color: var(--text);
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.25rem;
}
.article-body li {
  margin-bottom: 0.45rem;
  list-style: disc;
}
.article-body ol li {
  list-style: decimal;
}
.article-body strong {
  font-weight: 600;
}
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.back-link:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .intro-grid,
  .highlight-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .focus-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .intro-image img {
    aspect-ratio: 16/10;
  }
  .hero-with-image {
    min-height: 460px;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .menu-toggle {
    display: flex;
  }
  .section {
    padding: 3.5rem 0;
  }
  .hero-with-image .hero-content {
    padding: 3.5rem 0;
  }
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: var(--primary-dark);
}
.article-body pre {
  margin: 1rem 0 1.25rem;
}

.article-figure { margin: 0 0 1.75rem; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(15,76,129,0.1); background: #eef2f7; }
.article-figure img { width: 100%; max-height: 380px; object-fit: contain; display: block; background: #fff; padding: 0.5rem 0; }
.article-figure figcaption { font-size: 0.85rem; color: #5a6a7e; padding: 0.6rem 1rem; background: #f7f9fc; border-top: 1px solid #d8e0ea; }
