@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,600;1,400&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #B03000;
  --red-lt:     #d44000;
  --red-deep:   #8a2400;
  --red-pale:   #fff6f3;
  --red-border: #f0d0c4;
  --white:      #ffffff;
  --bg:         #f3f2ef;
  --bg-warm:    #faf9f7;
  --text:       #1c1a18;
  --text-2:     #4a4540;
  --muted:      #8a8078;
  --border:     #e2dfd8;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --radius:     8px;
  --radius-lg:  14px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-lt); text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 18px;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
}
.site-name a {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.site-name a:hover { color: var(--red-lt); text-decoration: none; }
.site-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  background: var(--red-deep);
  background: linear-gradient(to right, #8a2400, #b03000);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
}
nav a {
  display: inline-block;
  padding: 11px 15px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
nav a:hover,
nav a.active {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  background: rgba(255,255,255,.07);
}

/* ── Main wrapper ─────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 32px;
  width: 100%;
}

/* ── Two-column layout ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .col-side { order: -1; }
}

/* ── Page headings ────────────────────────────────────────── */
h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2.5px solid var(--red);
  display: inline-block;
  letter-spacing: -0.3px;
}
h2 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 28px 0 10px;
}

/* ── Page content ─────────────────────────────────────────── */
.page-content p  { margin-bottom: 14px; color: var(--text-2); }
.page-content ul,
.page-content ol { margin: 10px 0 12px 24px; }
.page-content li { margin-bottom: 6px; color: var(--text-2); }
.page-content strong { color: var(--text); }
.page-content a  { color: var(--red); }

.page-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.2px;
  margin: 28px 0 10px;
}
.page-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  margin: 20px 0 8px;
}

/* ── Bilder i sidinnehåll ─────────────────────────────────── */
.page-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 0 24px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 8px 0;
  box-shadow: var(--shadow-sm);
}

/* ── News items ───────────────────────────────────────────── */
.news-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: block;
}
.news-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-item h3 {
  font-size: 0.93rem;
  font-weight: 500;
  margin: 0 0 3px;
  color: var(--text);
  line-height: 1.45;
}
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--red); text-decoration: none; }
.news-item time {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* ── Single post ──────────────────────────────────────────── */
.single-post h1 { display: block; }
.single-post .post-date {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
  margin-top: -12px;
}
.back-link { margin-top: 32px; font-size: 0.85rem; }

/* ── Sidebar ──────────────────────────────────────────────── */
.col-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding: 11px 16px 9px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.sub-nav {
  list-style: none;
}
.sub-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.87rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s;
}
.sub-nav li:last-child a { border-bottom: none; }
.sub-nav li a::after { content: '›'; color: #ccc; font-size: 1.1rem; }
.sub-nav li a:hover,
.sub-nav li a.active { background: var(--red-pale); color: var(--red); text-decoration: none; }
.sub-nav li a.active::after { color: var(--red); }

.emergency-card {
  background: var(--red-pale);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.emergency-card-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-bottom: 8px;
}
.emergency-card p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.55;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #1c1a18;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.footer-copy {
  font-size: 0.75rem;
  color: #666;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  font-size: 0.75rem;
  color: #555;
}
.footer-links a:hover { color: #aaa; text-decoration: none; }

.empty { color: var(--muted); font-style: italic; font-size: 0.9rem; }

/* ── Kontaktsida ──────────────────────────────────────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}
.kontakt-col h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 22px 0 8px;
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}
.kontakt-col h2:first-child { margin-top: 0; }
.kontakt-col p { margin-bottom: 9px; font-size: 0.93rem; color: var(--text-2); }
.map-wrap { margin-top: 12px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; }

/* ── Bildspel / Slideshow ─────────────────────────────────── */
.slideshow {
  position: relative;
  width: calc(100% + 64px);
  margin: -36px -32px 0;
  height: 460px;
  overflow: hidden;
  background: #1c1a18;
  box-shadow: 0 6px 30px rgba(0,0,0,.18);
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow .slide.active {
  opacity: 1;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.3);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  font-size: 1.6rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background .18s, border-color .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.slide-btn:hover { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.6); }
.slide-btn.prev  { left: 20px; }
.slide-btn.next  { right: 20px; }
.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 10;
}
.slide-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slide-dots .dot.active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .slideshow { height: 230px; margin: -20px -20px 0; width: calc(100% + 40px); }
}

/* ── Välkommen-rubrik på startsidan ───────────────────────── */
.col-main > h1 {
  font-size: 1.6rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-name a { font-size: 1.45rem; }
  main { margin: 20px auto; padding: 0 20px; }
  footer { flex-direction: column; text-align: center; padding: 16px 20px; }
}
