:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-tint: #f2f4f2;
  --text: #1f2925;
  --muted: #5a6661;
  --accent: #244c3c;
  --accent-hover: #1a392d;
  --accent-soft: #e6efe9;
  --border: #e4e6e3;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  background-image: url("images/hero-rosendals-port.jpg");
  background-size: cover;
  background-position: center 45%;
  border-bottom: 1px solid var(--border);
}

.hero-overlay {
  width: 100%;
  padding: 6rem 0 3rem;
  background: linear-gradient(
    180deg,
    rgba(20, 32, 27, 0.08) 0%,
    rgba(20, 32, 27, 0.35) 55%,
    rgba(20, 32, 27, 0.72) 100%
  );
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.88);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.intro-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.intro-content {
  max-width: 740px;
}

.lead {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  color: var(--text);
}

.lead-secondary {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--muted);
}

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

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

/* Digital bopärm */
.content-narrow .section-intro {
  max-width: 640px;
  margin-bottom: 1.35rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Document list */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.doc-list a:hover {
  border-color: var(--accent);
  background: #ffffff;
}

.doc-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.doc-title {
  font-weight: 600;
  font-size: 1rem;
}

.doc-sub {
  font-size: 0.86rem;
  color: var(--muted);
}

.doc-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.contact-block h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.contact-block p {
  margin: 0;
  color: var(--muted);
}

.email-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}

.email-link:hover {
  text-decoration: underline;
}

.muted-note {
  margin-top: 0.5rem !important;
  font-size: 0.88rem;
}

.address {
  color: var(--text) !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }
  .portal-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .nav {
    gap: 1rem;
  }
}
