/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /* for sticky navbar */
}

/* ===== Navbar ===== */
header {
  background: #0a0f2c;
  color: white;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4db8ff;
}

/* Support-knapp */
.nav-links .support-btn {
  background-color: #0056b3;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.nav-links .support-btn:hover {
  background-color: #003f82;
}

/* ===== Hero Section ===== */
.hero {
  height: 80vh;
  background: linear-gradient(to right, #0a0f2c, #1c2d4a);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
  max-width: 600px;
}

.btn {
  background: #4db8ff;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.btn:hover {
  background: #1a8cd8;
  transform: scale(1.05);
}

/* ===== Page Content ===== */
.page-content {
  width: 90%;
  margin: 40px auto;
}

.page-content .btn {
  display: block;
  margin: 30px auto 0 auto;
  text-align: center;
}

.page-content h1 {
  margin-bottom: 20px;
  font-size: 2.5em;
  color: #0a0f2c;
}

.page-content h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: #1c2d4a;
}

.page-content p {
  margin-bottom: 15px;
  max-width: 800px;
}

/* ===== Services & Portfolio Cards ===== */
.services-list,
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.services-list li,
.portfolio-list li {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-list li:hover,
.portfolio-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.services-list strong,
.portfolio-list strong {
  color: #0a0f2c;
  display: block;
  margin-bottom: 10px;
}

/* ===== Contact Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 20px 0;
}

.contact-form label {
  margin: 10px 0 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4db8ff;
  box-shadow: 0 0 5px rgba(77,184,255,0.5);
}

.contact-form button {
  margin-top: 15px;
  border: none;
  cursor: pointer;
}

/* ===== Partnerlogoer ===== */
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
}

.partner-logos img {
  max-height: 120px;
  max-width: 320px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.2s ease;
}

.partner-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.55);
}

/* ===== Pill-nav (Produkter hurtignavigasjon) ===== */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0 25px;
}
.pill-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  text-decoration: none;
  color: #1c2d4a;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pill-nav a:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* ===== Produkter ===== */
.product-section { margin-top: 20px; }
.product-section h2 {
  margin: 10px 0 14px;
  color: #0a0f2c;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}
.product-brand {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  filter: grayscale(100%);
  opacity: .9;
}
.product-brand img {
  max-height: 44px;
  max-width: 160px;
  object-fit: contain;
}
.product-card h3 {
  margin: 8px 0;
  color: #1c2d4a;
  font-size: 1.15rem;
}
.product-card p { margin-bottom: 12px; }
.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.product-actions .link {
  text-decoration: none;
  color: #1a8cd8;
  font-weight: 600;
}

/* ===== Footer ===== */
footer {
  background: #0a0f2c;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .nav-links {
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }
}

.language-selector {
  display: flex;
  gap: 0.5em;
  align-items: center;
  margin-left: 1em;
}

.language-selector a {
  font-size: 1.5em;
  text-decoration: none;
  transition: transform 0.2s;
}

.language-selector a:hover {
  transform: scale(1.2);
}
