/* ============================================
   Nextnor AS – felles stilark
   ============================================ */

:root {
  --navy: #0d1b2a;
  --navy-light: #1b2a41;
  --teal: #00a8a8;
  --teal-dark: #007f7f;
  --off-white: #f7f9fb;
  --grey: #5c6b7a;
  --grey-light: #e4e9ee;
  --white: #ffffff;
  --max-width: 1120px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Toppmeny ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.nav-links .btn {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Knapper ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a5f 100%);
  color: var(--white);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 168, 0.25), transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 640px;
}

.hero .kicker {
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Seksjoner ---------- */

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--off-white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head .kicker {
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--grey);
  font-size: 1.05rem;
}

/* ---------- Kort ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(13, 27, 42, 0.12);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 168, 168, 0.12);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ---------- Tosidig layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.split p {
  color: var(--grey);
  margin-bottom: 16px;
}

.split ul {
  list-style: none;
  margin-top: 8px;
}

.split li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--navy);
}

.split li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.image-placeholder {
  background: linear-gradient(135deg, var(--grey-light), #cfd9e2);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-weight: 500;
  text-align: center;
  padding: 24px;
}

/* ---------- CTA-banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn {
  background: var(--white);
  color: var(--teal-dark);
  flex-shrink: 0;
}

.cta-banner .btn:hover {
  background: var(--off-white);
}

/* ---------- Kontaktside ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-info p {
  color: var(--grey);
  margin-bottom: 24px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-light);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Sideheader (undersider) ---------- */

.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 72px 0;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  font-size: 1.1rem;
}

/* ---------- Bunntekst ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.site-footer .logo {
  color: var(--white);
  margin-bottom: 12px;
  display: inline-block;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsivt ---------- */

@media (max-width: 860px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--grey-light);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 12px 0;
  }

  .nav-links .btn {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .section {
    padding: 64px 0;
  }

  .cta-banner {
    padding: 40px 28px;
  }
}
