:root {
  --brand: #0365a4; /* blå */
  --accent: #ff6a33; /* oransje CTA */
  --bg: #0c2b45;
  --ink: #0b1220;
  --ink-2: #3b4656;
  --surface: #ffffff;
}

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

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header img {
  height: 50px;
  margin-bottom: 12px;
}

nav {
  display: flex;
  flex-direction: row; /* Horizontal menu below logo */
  align-items: center;
  justify-content: center;
  margin: 0;
  gap: 8px; /* Space between nav items */
}

nav a {
  text-decoration: none;
  color: black;
  border: 2px solid transparent;
  border-radius: 5px;
  margin: 0;
  padding: 8px 8px;
  font-size: 0.9rem; /* Slightly smaller for mobile */
}

nav a:hover {
  font-weight: bold;
}

nav a.active {
  border: 2px solid var(--brand);
  font-weight: bold;
}

.call {
  padding: 8px 12px;
  font-weight: bold;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: 5px;
}

.call:hover {
  background-color: #00a8e0;
  transition: background-color 0.3s ease;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("images/background.png");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  width: 100%;
  max-width: 600px;
  line-height: 1.2;
}

.hero h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  width: 100%;
  max-width: 500px;
  line-height: 1.4;
}

.hero button {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 24px;
  transition: background-color 0.3s ease;
}

.hero button:hover {
  background-color: #d95b30;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 16px;
}

.service-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 24px 16px;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.service-button {
  background-color: transparent;
  color: var(--ink);
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 24px;
  margin: 10px 0 0 0;
}

.service-button:hover {
  background-color: var(--brand);
  color: white;
  transition: background-color 0.3s ease;
}

footer {
  padding: 24px 16px;
  background-color: #f8f9fa;
}

.footer {
  margin: 16px 0;
  text-align: center;
  justify-content: center;
}

.copyright {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* Contact page styles */
.content form {
  max-width: 600px;
  margin: 40px auto;
  padding: 32px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

form label {
  display: block;
  margin-bottom: 24px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  background-color: #fafafa;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background-color: white;
}

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

form button[type="submit"] {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 16px;
}

form button[type="submit"]:hover {
  background-color: #d95b30;
}

/* Simple about page styles */
.about-simple {
  padding: 40px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-container h1 {
  text-align: center;
  color: var(--ink);
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.about-container h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.company-section,
.employee-section {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.company-section h2,
.employee-section h2 {
  color: var(--brand);
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
}

.company-section h2::before,
.employee-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.company-text p,
.employee-text p {
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.company-text p:first-of-type,
.employee-text p:first-of-type {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

.company-image img,
.employee-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-image img:hover,
.employee-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* Contact page styles */
.contact-page {
  padding: 40px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-container h1 {
  text-align: center;
  color: var(--ink);
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.contact-container h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.contact-form-section {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-section h2 {
  color: var(--brand);
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
}

.contact-form-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item h4 {
  color: var(--brand);
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-item p {
  color: var(--ink-2);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.social-media {
  margin-top: 10px;
}

.social-media h4 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.facebook-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.facebook-link:hover {
  transform: scale(1.1);
}

.facebook-link img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* Om oss page styles */

main {
  padding: 40px 16px;
}

section {
  margin-bottom: 32px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

section p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Desktop styles */
@media (min-width: 900px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 60px;
  }

  nav {
    flex-direction: row;
    justify-content: flex-end;
    margin: 0;
  }

  nav a {
    margin: 0 0 0 20px;
  }

  .hero {
    text-align: left;
    padding: 60px 100px;
    min-height: 80vh;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 3.5rem;
    width: 70%;
    max-width: 800px;
  }

  .hero h3 {
    font-size: 1.3rem;
    width: 60%;
    max-width: 600px;
    margin-bottom: 40px;
  }

  .hero button {
    font-size: 1.1rem;
    padding: 16px 32px;
    align-self: flex-start;
  }

  .services {
    flex-direction: row;
    gap: 30px;
    margin: 60px 100px;
  }

  .service-box {
    flex: 1;
    margin: 0;
    padding: 30px 20px;
  }

  footer {
    flex-direction: column;
    padding: 40px 100px;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .footer {
    display: inline-block;
    margin: 0 20px;
    text-align: left;
  }

  .copyright {
    text-align: center;
    margin: 0;
    width: 100%;
    border-top: 1px solid #ddd;
    padding-top: 20px;
  }

  /* Contact form desktop styles */
  .content form {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
  }

  form input[type="email"],
  form textarea {
    padding: 16px 20px;
    font-size: 1.1rem;
  }

  form button[type="submit"] {
    padding: 16px 40px;
    font-size: 1.2rem;
  }

  /* Simple about page desktop styles */
  .about-simple {
    padding: 80px 40px;
  }

  .about-container h1 {
    font-size: 3.5rem;
    margin-bottom: 70px;
  }

  .company-section {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding: 50px 40px;
  }

  .employee-section {
    flex-direction: row-reverse;
    align-items: center;
    gap: 60px;
    padding: 50px 40px;
  }

  .company-text,
  .employee-text {
    flex: 1;
  }

  .company-section h2,
  .employee-section h2 {
    font-size: 2.2rem;
  }

  .company-text p,
  .employee-text p {
    font-size: 1.15rem;
  }

  .company-text p:first-of-type,
  .employee-text p:first-of-type {
    font-size: 1.25rem;
  }

  .company-image,
  .employee-image {
    flex: 0 0 450px;
  }

  .company-image img,
  .employee-image img {
    border-radius: 20px;
  }

  /* Contact page desktop styles */
  .contact-page {
    padding: 80px 40px;
  }

  .contact-container h1 {
    font-size: 3.5rem;
    margin-bottom: 70px;
  }

  .contact-form-section {
    padding: 50px 40px;
  }

  .contact-form-section h2 {
    font-size: 2.2rem;
  }
}
