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

:root {
  --blue: #2666CF;
  --blue-dark: #12345B;
  --blue-light: #E7F0FF;
  --gray-dark: #1E232B;
  --gray-light: #F5F5F7;
  --green: #23B57B;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-dark);
  background: #ffffff;
  line-height: 1.6;
}

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

.wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4e7ee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand img {
  height: 50px;
  width: auto;
  display: block;
}

.brand-tagline {
  font-size:.9rem;
  color:#6b7280;
  line-height:1.3;
}

.brand-tagline {
    margin-bottom: 5px; /* justér etter smak: 4–12px */
}

nav {
  display: flex;
  gap: 1.3rem;
  align-items: center;
  font-size: 0.95rem;
}

nav a {
  color: var(--gray-dark);
  font-weight: 500;
}

nav a:hover {
  color: var(--blue);
}

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(38,102,207,.3);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid rgba(18,52,91,0.18);
}

.btn-primary:hover { filter: brightness(1.05); }
.btn-outline:hover { background: var(--blue-light); }

/* HERO */

.hero {
  padding: 3.2rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
  color: var(--blue);
  font-weight: 600;
}

h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin: .5rem 0 1rem;
  color: var(--blue-dark);
}

.hero p {
  font-size: 1rem;
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: .75rem;
  font-size: .85rem;
  color: #5c6370;
}

/* Hero illustration */

.hero-illustration {
  background: radial-gradient(circle at top, #ffffff, #E7F0FF);
  border-radius: 26px;
  padding: 1.4rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-soft);
}

.hero-illustration img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
}

/* SECTIONS */

section {
  padding: 2.8rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

h2 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.6rem;
  margin: 0;
  color: var(--blue-dark);
}

.subtitle {
  max-width: 30rem;
  font-size: .95rem;
  color: #5b6372;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

/* CARDS */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 26px rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.02);
}

.card h3 {
  margin-top: 0.1rem;
  font-size: 1.1rem;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: .6rem 0 0;
  font-size: .9rem;
}

.list-check li {
  margin-bottom: .25rem;
  position: relative;
  padding-left: 1.25rem;
}

.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: .8rem;
  color: var(--green);
}

/* BACKGROUNDS */

.alt-bg {
  background: var(--gray-light);
}

/* CONTACT / FORMS */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr);
  gap: 2rem;
}

form {
  display: grid;
  gap: .9rem;
}

label {
  font-size: .85rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: .95rem;
}

textarea { min-height: 120px; resize: vertical; }

/* GENERIC PAGE LAYOUT */

.page-main {
  padding-top: 2.2rem;
}

.page-main h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.9rem;
}

.page-main p {
  max-width: 46rem;
}

.page-main h2 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}

/* FOOTER */

footer {
  border-top: 1px solid #e4e7ee;
  padding: 1.4rem 0 2rem;
  font-size: .85rem;
  color: #6b7280;
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  nav {
    display: none; /* enkel mobilversjon */
  }
  header {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2.4rem;
  }
  .hero-grid,
  .contact-grid {
    grid-template-columns: minmax(0,1fr);
  }
}


.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}
@media (max-width: 720px){
  .grid-2 { grid-template-columns: 1fr; }
}

/* Kontakt-skjema statusmeldinger */
.form-status{
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.3;
}
.form-status.success{
  background: #e9f7ef;
  border: 1px solid #bfe8cf;
  color: #145a32;
}
.form-status.error{
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #7b1e1e;
}
.form-status a{ text-decoration: underline; }



/* MOBILE NAV (Hamburger) */
.menu-toggle{
  display: none; /* vises kun på mobil */
  border: 1px solid rgba(18,52,91,0.18);
  background: #fff;
  border-radius: 12px;
  height: 44px;
  width: 44px;
  line-height: 1;
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.brand-link{ display:inline-flex; align-items:center; }

.menu-backdrop{
  display:none;
}

/* Scroll-lock når meny er åpen */
html.nav-open, body.nav-open{
  overflow: hidden;
}

/* Overstyr tidligere "nav { display:none; }" på mobil med off-canvas */
@media (max-width: 900px) {
  .menu-toggle{
    display: inline-flex;
  }

  /* Backdrop */
  .menu-backdrop{
    display:block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 998;
  }
  .menu-backdrop.open{
    opacity: 1;
    pointer-events: auto;
  }

  /* Off-canvas meny */
  nav#site-nav{
    display: flex;              /* viktig: ikke display:none */
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;

    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 86vw);

    padding: 5.2rem 1.5rem 1.5rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);

    border-left: 1px solid #e4e7ee;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);

    transform: translateX(105%);
    transition: transform 220ms ease;

    z-index: 999;
  }
  nav#site-nav.open{
    transform: translateX(0);
  }

  nav#site-nav a{
    font-size: 1.05rem;
    padding: 0.25rem 0;
  }
}
