/* ──────────────────────────────────────────────
   RESET
────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li,
fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit;
  font-size: 100%; text-decoration: none;
}
html, body { height: 100%; width: 100%; }

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong, b { font-weight: bold; }
img, iframe { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 5px; font-weight: 300; clear: both;
  line-height: 1.5; text-transform: uppercase; color: #000;
}
h1 { font-size: 23px; }
h2 { font-size: 18px; }
h3 { font-size: 22px; }

a {
  color: #9cbed8; text-decoration: none;
  -webkit-transition: all 0.14s ease 0s;
          transition: all 0.14s ease 0s;
}
a:hover { color: #444; }

.clear::after { clear: both; content: ""; display: block; }

/* ──────────────────────────────────────────────
   COLUMN GRID  (12-col, 3% gutter)
────────────────────────────────────────────── */
[class*="stom-cols-"] { float: left; position: relative; margin-right: 3%; }
.stom-cols-2  { width: 14.166%; }
.stom-cols-3  { width: 22.75%; }
.stom-cols-4  { width: 31.33%; }
.stom-cols-8  { width: 65.66%; }
.stom-cols-9  { width: 74.25%; }
.stom-cols-12 { width: 100%; }
.last { margin-right: 0 !important; }

/* ──────────────────────────────────────────────
   STRUCTURE
────────────────────────────────────────────── */
body {
  font-family: 'Open Sans', 'aktiv-grotesk-std', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: #676767;
  background: url('../images/bg.jpg') repeat fixed center center;
  background-size: cover;
}

.page-wrap { padding-bottom: 61px; }
.push { display: none; }
#footer { height: 61px; }

/* ── HEADER ── */
#header-wrapper { width: 100%; }

.header {
  width: 960px; padding: 0 30px; margin: 0 auto; position: relative;
  background: #fff;
  -webkit-box-shadow: 0px 0px 20px -5px rgba(0,0,0,0.5);
          box-shadow: 0px 0px 20px -5px rgba(0,0,0,0.5);
}

#logo, #logo a { float: left; }
#logo { padding: 20px 0 0; }
#logo img { display: block; }

/* ── NAV ── */
#primary-menu { float: right; margin: 0; padding: 0; }

#primary-menu ul {
  margin: 0; padding: 0; list-style: none; float: right;
}
#primary-menu ul li {
  position: relative; display: inline; float: left; margin: 0 0 0 -1px;
}
#primary-menu ul li a {
  text-decoration: none; text-transform: uppercase;
  font-size: 15px; font-weight: 300; color: #6d6e71;
  padding: 35px 15px; display: block; float: left;
}
#primary-menu ul li a:hover {
  color: #000; border-top: 10px solid #000;
}
#primary-menu ul li.current-menu-item > a,
#primary-menu ul li.current-menu-ancestor > a {
  color: #000; border-top: 10px solid #9cbed8;
}

/* dropdown */
#primary-menu ul ul {
  position: absolute; top: -9999em; width: 180px;
  background: #f7f7f7; z-index: 9999; float: none; list-style: none;
  margin: 0; padding: 0;
}
#primary-menu ul ul li { width: 100%; display: block; float: none; margin: 0; background: none; }
#primary-menu ul li:hover > ul { left: 0; top: 80px; }
#primary-menu ul ul li a {
  font-size: 11px; padding: 5px 15px;
  text-transform: inherit; font-weight: 400; border-top: none !important;
  color: #999; float: none; display: block;
}
#primary-menu ul ul li a:hover { color: #fff; background: #9cbed8; }

/* ── WRAPPER & CONTENT ── */
#wrapper { width: 100%; }

.content-wrapper {
  width: 960px; background: #fff; margin: 0 auto; padding: 30px;
  -webkit-box-shadow: 0px -5px 20px -3px rgba(0,0,0,0.3);
          box-shadow: 0px -5px 20px -3px rgba(0,0,0,0.3);
  position: relative;
}

/* ── SLIDER ── */
#slider {
  position: relative; margin-bottom: 15px;
  height: 350px; overflow: hidden;
}

.slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  -webkit-transition: opacity 0.9s cubic-bezier(0.445, 0.05, 0.55, 0.95);
          transition: opacity 0.9s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 350px; object-fit: cover; display: block; }

/* positioned relative to .content-wrapper, overlapping the slider's top-right corner */
.slider-tekst {
  position: absolute; right: 0; top: 70px;
  background: #9cbed8; font-size: 15px; padding: 12px 15px;
  line-height: 1.4; z-index: 99999; color: #fff;
}
.slider-tekst p { font-weight: bold; margin: 0; }

/* ── INNER CONTENT ── */
#inner-content {
  padding: 20px; width: 700px; float: right; background: #f7f7f7;
}

/* ── SIDEBAR ── */
#sidebar {
  margin-top: 0; width: 220px; float: left;
  background: #9cbed8; color: #fff;
  margin-left: -30px;
}
#sidebar a { color: #fff; }

.widget { float: left; width: 100%; margin-left: 30px; margin-top: 20px; }
.widget h3.title {
  font-size: 18px; line-height: 1.5; font-weight: 400;
  text-transform: uppercase; display: block; margin: 0 0 5px;
  color: #fff !important;
}
.widget p { margin-bottom: 6px; line-height: 1.6; color: #fff; }
.widget a { color: #fff; }

/* ── SECTION TITLE ── */
.section-title { overflow: hidden; padding: 15px 0 20px; clear: both; }
.section-title h1.title {
  display: inline; word-spacing: 5px; color: #000 !important;
}

/* ──────────────────────────────────────────────
   HOME — SERVICE ICONS (bokse)
   Images default to grayscale, full color on hover.
   Label is an absolutely-positioned dark bar.
────────────────────────────────────────────── */
.bokse { overflow: hidden; margin-bottom: 3px; }

.bokse .stom-cols-2 {
  width: 15.416%; margin-bottom: 10px; margin-right: 1.5% !important;
}
.bokse .stom-cols-2.last { margin-right: 0 !important; }

.bokse a { display: block; }

.bokse strong {
  display: block;
  text-transform: uppercase; color: #fff; text-align: center;
  background: rgba(0,0,0,0.9); width: 100%; font-size: 9px;
  padding: 2px 3px; margin-top: 2px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
  letter-spacing: -0.5px;
}

.bokse img {
  width: 100%; height: 120px; object-fit: cover; display: block;
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.3s ease;
          transition: filter 0.3s ease;
}
.bokse img:hover {
  -webkit-filter: grayscale(0%);
          filter: grayscale(0%);
}

/* ── HOME CONTACT WIDGET ── */
.widget-forside {
  background: #9cbed8; color: #fff;
  margin-left: -30px; padding-left: 30px;
  padding-top: 20px; padding-bottom: 20px;
}
.widget-forside h2 {
  color: #fff; font-weight: bold; font-size: 18px;
  text-transform: uppercase; margin-bottom: 8px;
}
.widget-forside p { margin-bottom: 6px; line-height: 1.6; color: #fff; }

/* ──────────────────────────────────────────────
   SUB-PAGE: stom-cols-8 content + stom-cols-4 sub-nav
────────────────────────────────────────────── */
.stom-cols-8 h2 { font-size: 18px; font-weight: 300; margin-bottom: 14px; }
.stom-cols-8 p  { margin-bottom: 12px; line-height: 1.7; color: #676767; }

#undermenuer { background: #9cbed8; padding-bottom: 10px; }
#undermenuer ul { list-style: none; padding: 0; margin: 0; }
#undermenuer ul li a {
  display: block; padding: 8px 15px; font-size: 13px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  text-transform: none; font-weight: 400;
}
#undermenuer ul li a:hover,
#undermenuer ul li.active a { background: rgba(0,0,0,0.15); color: #fff; }

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
#footer {
  position: fixed; bottom: 0; left: 0;
  color: #000; width: 100%; background-color: #fff; font-size: 13px;
  z-index: 1000;
}
#footer a { color: #000; }
#footer a:hover { color: #9cbed8; }

#footer-content { width: 960px; margin: 0 auto; padding: 0 30px; }
#footer-bottom { overflow: hidden; position: relative; padding: 21px 0; }
#footer-bottom p { margin-bottom: 0; }
#footer-bottom .one-half { white-space: nowrap; }

.one-half { float: left; width: 48%; margin-right: 4%; }
.one-half.last { margin-right: 0 !important; float: right; }

/* ──────────────────────────────────────────────
   MOBILE TOGGLE (hidden on desktop)
────────────────────────────────────────────── */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 22px; color: #676767; padding: 10px 0;
  float: right; margin: 25px 0; line-height: 1;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────── */
@media (max-width: 980px) {
  .header, .content-wrapper, #footer-content { width: 100%; }
}

@media (max-width: 760px) {
  .mobile-toggle { display: block; }

  .header { position: relative; }
  #primary-menu {
    display: none; float: none; width: 100%; clear: both;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    z-index: 200;
    -webkit-box-shadow: 0 4px 10px rgba(0,0,0,0.12);
            box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    padding-bottom: 10px;
  }
  #primary-menu.open { display: block; }
  #primary-menu ul { float: none; width: 100%; }
  #primary-menu ul li { display: block; float: none; width: 100%; }
  #primary-menu ul li a { float: none; padding: 12px 15px; border-top: none !important; }
  #primary-menu ul ul { position: static; top: auto; width: 100%; padding-left: 20px; }
  #primary-menu ul li:hover > ul { top: auto; left: 0; }

  #inner-content { width: 100%; float: none; background: #fff; padding: 15px; }
  #sidebar {
    width: 100%; float: none; margin-left: 0;
    background: #9cbed8 !important; padding: 10px 15px;
  }
  #sidebar .widget { float: none; margin-left: 0; margin-top: 10px; }
  .content-wrapper { padding: 0; background: transparent; box-shadow: none; }

  [class*="stom-cols-"] { width: 100%; float: none; margin-right: 0; margin-bottom: 10px; }
  .bokse .stom-cols-2 { width: 30%; float: left; margin-right: 3%; margin-bottom: 10px; }
  .bokse .stom-cols-2.last { margin-right: 0; }
  .widget-forside { margin-left: 0; }
}
