/* =========================================================
   ARK Tjenester — Static rebuild
   Faithful adaptation of the Ignition Medi WordPress theme
   Palette: navy #132739 / olive #455621 / gray #f5f8fa
   ========================================================= */

/* ---------- Fonts (self-hosted Inter variable font, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
:root {
  --primary: #132739;
  --secondary: #455621;
  --accent: #34a4c6;
  --text: #212121;
  --text-soft: #757575;
  --headings: #132739;
  --border: #dddddd;
  --gray: #f5f8fa;
  --white: #ffffff;
  --footer-bg: #4d4d4d;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.615;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  color: var(--headings);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75em;
}

h1 { font-size: 48px; letter-spacing: -0.03em; }
h2 { font-size: 30px; letter-spacing: -0.04em; }
h3 { font-size: 26px; letter-spacing: -0.03em; }
h4 { font-size: 20px; line-height: 1.25; text-transform: none; letter-spacing: -0.04em; margin-bottom: 0.35em; }
h5 { font-size: 16px; line-height: 1.25; text-transform: none; letter-spacing: -0.04em; }
h6 { font-size: 14px; line-height: 1.32; text-transform: none; letter-spacing: -0.04em; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--secondary); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1230px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-4 { width: 33.333%; padding: 0 15px; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff !important;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 15px 30px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--primary); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff !important;
}
.btn-outline:hover { background: #fff; color: var(--primary) !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo img { width: 60px; height: 60px; }
.site-logo-text { font-weight: 800; color: var(--primary); font-size: 20px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.main-nav a:hover { color: var(--secondary); }
.main-nav .current > a { color: var(--secondary); }

/* Dropdown */
.has-children > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 7px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 110;
}
.sub-menu a { padding: 9px 20px; font-weight: 400; font-size: 14px; }
.has-children:hover > .sub-menu,
.has-children.open > .sub-menu { display: block; }

/* ---------- Mobile nav ---------- */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  color: var(--primary);
}
.mobile-nav-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 39, 57, 0.61);
}
.page-hero .container { position: relative; }
.page-hero-inner {
  padding: 60px 0;
}
.page-hero h1 {
  color: #fff;
  font-size: 40px;
  margin: 0;
}
.page-hero .subtitle {
  color: #fff;
  font-size: 18px;
  margin: 12px 0 0;
  opacity: 0.9;
}

/* ---------- Page title band (service pages) ---------- */
.page-title-band {
  background: var(--gray);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.page-title-inner h1 {
  font-size: 36px;
  margin: 0 0 6px;
}
.page-title-inner .subtitle {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0;
}

/* ---------- Entry (service article) ---------- */
.entry { padding: 45px 0 20px; }
.entry-thumb {
  margin: 0 0 30px;
}
.entry-thumb img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  border-radius: var(--radius);
}
.entry-content { max-width: 100%; }
.entry-content .drop-cap::first-letter {
  font-size: 3.6em;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 0;
  color: var(--primary);
}
.split-section {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}
.split-text { flex: 1 1 50%; }
.split-box {
  flex: 1 1 50%;
  background: #f8f8f8;
  padding: 30px;
  border-radius: var(--radius);
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-weight: 700;
  color: var(--headings);
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--secondary);
  font-weight: 800;
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-sm { padding: 45px 0; }
.section-gray { background: var(--gray); }
.section-title { margin-bottom: 40px; }
.section-title h2 { margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 740px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-image: url("../../images/hero-1920.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 39, 57, 0.4);
}
.hero .container { position: relative; }
.hero-content {
  padding: 0 0 80px;
  max-width: 720px;
}
.hero-logo { margin-bottom: 30px; }
.hero-logo img { width: 100px; height: 100px; }
.hero h1 {
  color: #fff;
  font-size: 48px;
  margin-bottom: 15px;
}
.hero .tagline {
  color: #fff;
  font-size: 18px;
  margin-bottom: 30px;
}

/* ---------- Feature / icon cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card { text-align: left; }
.feature-card .icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}
.feature-card .icon svg,
.service-feature .icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 14px; margin: 0; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.service-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 25px; }
.service-card h2, .service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.service-card h2 a, .service-card h3 a { color: var(--headings); }
.service-card h2 a:hover, .service-card h3 a:hover { color: var(--secondary); }
.service-card p { color: var(--text-soft); font-size: 15px; margin-bottom: 18px; }
.learn-more { font-weight: 700; font-size: 15px; }

/* ---------- Intro band (homepage about blurb) ---------- */
.intro-band { background: var(--gray); padding: 80px 0; }
.intro-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}
.intro-text { flex: 1 1 55%; }
.intro-text h2 { margin-bottom: 20px; }
.intro-cta { flex: 1 1 45%; text-align: center; }

/* ---------- About page ---------- */
.about-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.about-photo { flex: 0 0 340px; }
.about-photo img { border-radius: var(--radius); }
.about-text { flex: 1 1 auto; }
.about-text h1 { font-size: 40px; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 45px; }
.faq-group > h2 { margin-bottom: 22px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 700;
  color: var(--headings);
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--secondary);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer {
  padding: 0 40px 20px 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Service detail ---------- */
.service-hero-text h1 { margin: 0; color: #fff; }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.process-list .step-num {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.process-list .step-text strong { display: block; color: var(--headings); margin-bottom: 3px; }
.process-list .step-text span { color: var(--text-soft); font-size: 15px; }
.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-feature { text-align: center; }
.service-feature .icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 15px;
}
.service-feature h4 { margin-bottom: 6px; }
.service-feature p { color: var(--text-soft); font-size: 14px; margin: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: flex; gap: 50px; }
.contact-form-wrap { flex: 1 1 58%; }
.contact-info { flex: 1 1 42%; }
.contact-info-box { margin-bottom: 30px; }
.contact-info-box h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.contact-info-box p { color: var(--text-soft); font-size: 15px; margin: 0 0 6px; }
.contact-info-box a { color: var(--primary); font-weight: 700; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-row { display: flex; gap: 18px; }
.form-row .form-group { flex: 1; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--primary); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.form-check input { margin-top: 3px; }
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 12px; }

/* Honeypot felt — usynlig for mennesker, men synlig for roboter */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 15px;
}
.form-status.success { display: block; background: #e8f5e9; color: #1b5e20; }
.form-status.error { display: block; background: #fdecea; color: #b71c1c; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background-color: var(--primary);
  background-image: url("../../images/hero-800.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 56, 21, 0.81);
}
.cta-band .container { position: relative; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-kicker { font-size: 15px; margin-bottom: 10px; opacity: 0.85; }
.cta-inner h2, .cta-inner h5 { color: #fff; }
.cta-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; }
.footer-widgets { padding: 60px 0 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h3 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.footer-col p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.85); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0 0 10px; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #fff; font-size: 14px; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-logo img { width: 100px; height: 100px; }
.footer-info {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.footer-info .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-info a { color: #fff; }

/* Back to top */
.btn-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.btn-to-top.visible { display: flex; }
.btn-to-top:hover { background: var(--primary); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .code {
  font-size: 90px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 10px;
}
.error-404 h1 { margin-bottom: 15px; }
.error-404 p { color: var(--text-soft); margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  h1 { font-size: 38px; }
  .hero { min-height: 560px; background-image: url("../../images/hero-800.webp"); }
  .hero-content { padding-bottom: 60px; }
  .feature-grid, .service-grid, .service-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .contact-layout, .intro-layout, .cta-inner, .split-section { flex-direction: column; }
  .about-photo { flex: 0 0 auto; max-width: 420px; }
  .cta-inner { align-items: flex-start; }

  /* Mobile nav */
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .main-nav.mobile-open {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    padding: 20px;
    overflow-y: auto;
    z-index: 120;
  }
  .main-nav.mobile-open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.mobile-open a {
    color: #fff;
    padding: 13px 5px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .main-nav.mobile-open .sub-menu {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .main-nav.mobile-open .sub-menu a { font-size: 15px; }
  .main-nav.mobile-open .has-children > a::after { float: right; margin-top: 8px; }
}

@media (max-width: 575px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 30px; }
  .hero-content { padding-bottom: 45px; }
  .feature-grid, .service-grid, .service-feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .section { padding: 45px 0; }
  .cta-title { font-size: 26px; }
  .btn { width: 100%; }
  .cta-inner .btn { width: auto; }
  .footer-info .container { flex-direction: column; gap: 8px; }
}
