/* ============================================================
   Lewix.no — static rebuild
   Brand: teal→blue gradient + dark navy. Headings in Oswald.
   ============================================================ */

:root {
  --navy-900: #0a0a28;   /* header / darkest */
  --navy-800: #0d1240;   /* page background */
  --navy-700: #141a52;   /* section background */
  --navy-600: #1b2166;   /* card background */
  --navy-500: #0f1a4a;   /* deep panel */
  --teal:     #21c8dc;   /* primary accent (cyan/teal) */
  --teal-2:   #3ad0e0;
  --blue:     #4f5bff;   /* gradient end */
  --ink:      #eef1ff;   /* body text on navy */
  --muted:    #b9c0e6;   /* muted text */
  --white:    #ffffff;
  --grad:     linear-gradient(120deg, #16b6cf 0%, #2a6cf0 55%, #4f57ff 100%);
  --grad-soft:linear-gradient(120deg, #17c0d8 0%, #3f5bff 100%);
  --maxw: 1180px;
  --radius: 12px;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--navy-800);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Oswald", "Segoe UI", Impact, sans-serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: .3px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-2); }

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

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--teal);
  margin: 0 0 .6em;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 1.8em;
  border-radius: 50px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid var(--teal);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}
.btn:hover { background: var(--teal); color: var(--navy-900); box-shadow: 0 8px 24px rgba(33,200,220,.35); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--grad); border-color: transparent; }
.btn-solid:hover { filter: brightness(1.08); color: var(--white); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand img { height: 30px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; gap: .5em;
  color: #dfe3ff; padding: 10px 13px; border-radius: 8px;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.18rem; font-weight: 300; letter-spacing: .3px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.06); }
.nav-links .ico { width: 16px; height: 16px; opacity: .85; }
.search {
  display: flex; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 6px 10px; gap: 8px;
}
.search input {
  background: transparent; border: 0; outline: 0; color: var(--white);
  font-size: .9rem; width: 130px;
}
.search input::placeholder { color: #9aa2d0; }
.search button { background: transparent; border: 0; color: #9aa2d0; cursor: pointer; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.nav-links a .caret { font-size: .7em; opacity: .8; margin-left: 2px; }

/* ---------- Funksjonshjulet mega-menu ---------- */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #0c1030; border-top: 1px solid rgba(33,200,220,.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 90;
}
.has-mega:hover .mega, .mega:hover, .mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 24px;
  display: grid; grid-template-columns: 1fr 1.1fr 1.4fr; gap: 34px; align-items: start;
}
.mega-intro h3 { color: var(--teal); font-size: 1.9rem; }
.mega-intro p { color: var(--muted); font-size: .95rem; }
.mega-tabs { display: flex; flex-direction: column; }
.mega-tabs button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #cfd5f5; font-family: "Oswald", sans-serif; font-weight: 300; font-size: 1.05rem;
  padding: 11px 6px; cursor: pointer; text-align: left; transition: color .15s, background .15s;
}
.mega-tabs button .ti { width: 20px; height: 20px; opacity: .85; flex: none; }
.mega-tabs button:hover { color: #fff; }
.mega-tabs button.active { color: var(--teal); background: rgba(33,200,220,.06); }
.mega-panel { display: none; }
.mega-panel.active { display: block; animation: megaFade .25s ease; }
@keyframes megaFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mega-panel h3 { color: var(--teal); font-size: 1.7rem; margin-bottom: 14px; }
.mega-panel .illu {
  width: 100%; max-height: 190px; object-fit: cover; border-radius: 10px; margin-bottom: 14px;
}
.mega-panel .desc {
  border: 1px solid rgba(33,200,220,.4); border-radius: 10px;
  padding: 14px 16px; color: var(--ink); font-size: .92rem; margin-bottom: 14px;
}
.mega-panel .q { list-style: none; margin: 0; padding: 0; }
.mega-panel .q li {
  position: relative; padding: 4px 0 4px 30px; color: var(--muted); font-size: .9rem;
}
.mega-panel .q li::before {
  content: "?"; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 5px; background: rgba(33,200,220,.18);
  color: var(--teal); font-weight: 700; text-align: center; line-height: 20px; font-size: .8rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  color: var(--white); text-align: center;
  padding: 120px 0 150px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,12,45,.72), rgba(9,12,45,.88));
  z-index: 1;
}
.hero > .container { position: relative; z-index: 2; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  text-transform: none; margin-bottom: .3em;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.hero .eyebrow { color: #d7dbff; letter-spacing: 5px; }
.hero .subtitle {
  font-family: "Oswald", sans-serif; font-weight: 300;
  letter-spacing: 2px; text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.35rem); color: #dfe3ff;
  max-width: 760px; margin: 0 auto 2em;
}

/* Curved bottom divider */
.wave-sep { display: block; width: 100%; height: 90px; margin-top: -1px; }

/* Gradient (puzzle) hero variant for sub-pages */
.hero-gradient::before {
  background: linear-gradient(120deg, rgba(20,182,207,.55) 0%, rgba(42,108,240,.6) 55%, rgba(79,87,255,.7) 100%);
}

/* ============================================================
   Sections
   ============================================================ */
section { position: relative; }
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.split.reverse .split-media { order: 2; }

.lead { font-size: 1.05rem; color: var(--muted); }

h2.section-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); text-transform: uppercase; }

/* Feature list with checks */
.check-list { list-style: none; margin: 1.2em 0; padding: 0; }
.check-list li {
  position: relative; padding: 8px 0 8px 34px; color: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--teal); font-weight: 700;
}

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* card media (illustration on top) */
.card .illu-top {
  width: 100%; height: 150px; object-fit: contain; margin: 0 0 18px;
}
.card .svg-icon {
  width: 56px; height: 56px; color: var(--teal); margin-bottom: 16px;
}
.card h3 + .check-list { margin-top: 12px; }

/* keyword chips */
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 50px;
  background: var(--navy-600); border: 1px solid rgba(33,200,220,.25);
  color: var(--ink); font-size: .9rem; font-weight: 500;
  transition: background .15s, color .15s, transform .15s;
}
.chip:hover { background: var(--teal); color: var(--navy-900); transform: translateY(-2px); }

.card {
  background: var(--navy-600);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--white); font-size: 1.35rem; }
.card .icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Accordion (Business Central / help) */
.accordion { border-radius: var(--radius); overflow: hidden; }
.accordion details {
  background: var(--navy-600);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; margin-bottom: 12px;
}
.accordion summary {
  cursor: pointer; padding: 18px 22px; list-style: none;
  display: flex; align-items: center; gap: 14px;
  font-family: "Oswald", sans-serif; font-size: 1.15rem; color: var(--white);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; margin-left: auto; color: var(--teal);
  font-size: 1.5rem; transition: transform .2s;
}
.accordion details[open] summary::after { content: "–"; }
.accordion summary img { width: 34px; height: 34px; object-fit: contain; }
.accordion .body { padding: 0 22px 20px; color: var(--muted); }

/* ============================================================
   Person card (kompetanse)
   ============================================================ */
.person {
  background: var(--navy-600); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.07);
  text-align: center; padding: 40px 30px; box-shadow: var(--shadow);
}
.person img.avatar {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 18px;
  border: 4px solid var(--teal);
}
.person .role { color: var(--teal); letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; font-family: "Oswald", sans-serif; }
.person .social { display: flex; gap: 16px; justify-content: center; margin: 10px 0 16px; }
.person .social a { color: var(--white); font-size: 1.3rem; }

/* Timeline */
.timeline { border-left: 2px solid rgba(33,200,220,.4); margin: 20px 0; padding-left: 26px; }
.timeline .item { margin-bottom: 26px; position: relative; }
.timeline .item::before {
  content: ""; position: absolute; left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--teal);
}
.timeline .year { font-family: "Oswald", sans-serif; color: var(--teal); font-size: 1.1rem; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-card {
  background: var(--navy-500);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 38px; box-shadow: var(--shadow);
  max-width: 520px; margin: 0 auto;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.form-field input[type=text],
.form-field input[type=email],
.form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: #eef0fa; color: #1a1f3c; font-size: 1rem; font-family: inherit;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.radio-row { display: flex; gap: 22px; margin-top: 6px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  text-align: center; padding: 100px 0;
  background: var(--grad); color: var(--white);
}
.cta h2 { text-transform: uppercase; font-size: clamp(1.8rem,3.5vw,2.8rem); }
.cta .eyebrow { color: rgba(255,255,255,.9); }
.cta .btn { border-color: var(--white); }
.cta .btn:hover { background: var(--white); color: var(--blue); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900); color: var(--muted);
  padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer img.flogo { height: 28px; margin-bottom: 18px; }
.site-footer h4 { font-family: "Oswald", sans-serif; color: var(--white); text-transform: uppercase; letter-spacing: 2px; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #8890c0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .search { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--navy-900); padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 100px; }
  .section { padding: 60px 0; }
}
