body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header */
header {
  background: #1e3a8a;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  background: #0077b6;
  color: #fff;
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta {
  background: #facc15;
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

/* Generelle seksjoner */
section {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service img {
  max-width: 100%;
  height: 200px; /* fast høyde */
  object-fit: cover; /* cropper bildet så det ser fint ut */
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service h3 {
  margin: 0.5rem 0;
  color: #1e3a8a;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
form input, form select, form textarea, form button {
  padding: 0.5rem;
  font-size: 1rem;
}
form button {
  background: #1e3a8a;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #f3f4f6;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.about-box {
  background-color: #1e3a8a;; /* lys, som tjenesteboksene */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 2rem auto;
  text-align: left;
  color: #e8eaf0; /* mørk tekst for kontrast */
}

/* -------------------------------------------------------
   Tillegg: navigasjon, tilgjengelighet og nye sider
------------------------------------------------------- */

/* Skjult "Hopp til innhold" – blir synlig ved tastaturfokus */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus,
.skip-link:active {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  z-index: 1000;
}

header .logo {
  color: #fff;
  text-decoration: none;
}

nav ul {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Gjør tjenestekort klikkbare (lenker) uten å endre utseende */
a.service {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
a.service:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
a.service:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}
.service .service-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: bold;
}

/* Artikler */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-card h2,
.article-card h3 {
  margin-top: 0;
  color: #1e3a8a;
}

.article-meta {
  font-size: 0.95rem;
  opacity: 0.85;
}

.article-excerpt {
  margin-bottom: 0.75rem;
}

.cta.small {
  padding: 0.5rem 1rem;
  display: inline-block;
}

/* Inputs */
.input-search {
  width: min(520px, 100%);
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

/* FAQ */
.faq details {
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: bold;
}

.faq p {
  margin: 0.5rem 0 0;
}

/* Footer layout */
.footer-inner {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}

/* Bilder på tjenestesider */
.service-page-image {
  max-width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 1rem 0;
}


/* Kampanjebar */
.promo-bar{
  padding: .6rem 1rem;
  background: #111;
  color: #fff;
  font-size: .95rem;
  text-align: center;
}
.promo-bar a{ color:#fff; text-decoration: underline; }

/* Kampanjeseksjon */
.campaign{
  padding: 2rem 1rem;
  background: #f6f6f6;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

/* Artikkel-layout */
article{
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  line-height: 1.7;
}
article h1{
  font-size: 2rem;
  margin: 0 0 .75rem;
}
article h2{ margin-top: 1.75rem; }
.article-meta{ color:#666; font-size:.95rem; margin-bottom:1.25rem; }

/* Tilbudsskjema */
.quote{
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid #eee;
}
.quote form{
  margin-top: 1rem;
}
.form-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.quote label{
  display: block;
  font-weight: 600;
  margin-bottom: .6rem;
}
.quote input, .quote textarea, .quote select{
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-weight: 400;
  margin-top: .35rem;
  box-sizing: border-box;
}
.consent{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight: 400;
  margin-top: .8rem;
}
.form-note{ color:#666; font-size:.95rem; margin-top:.75rem; }

/* Kalkulator */
.calculator{
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid #eee;
}
.calc-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  max-width: 520px;
}
.calc-result{
  padding: .9rem 1rem;
  background: #f6f6f6;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
}
.small{ color:#666; font-size:.95rem; }


/* Secondary CTA button (e.g. Send e-post) */
.cta.secondary{
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta.secondary:hover{
  opacity: .9;
}
.quote-form .cta{
  margin-right: .5rem;
  margin-top: .25rem;
}
