/* --- Base --- */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
}

/* --- Header --- */
header {
  background: #ffffff;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header .logo {
  height: 50px;
  width: auto;
  display: block;
}

.header-text {
  flex: 1;
  text-align: center;
}

.header-text p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

/* --- Main content --- */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content-box {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.content-box h2 {
  color: #0078d7;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-box p {
  margin-bottom: 1.5rem;
}

/* --- Footer --- */
footer {
  background: #f0f0f0;
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
  color: #555;
  margin-top: 2rem;
  border-radius: 12px 12px 0 0;
}

/* --- Demo button --- */
.demo-container {
  text-align: center;
  margin: 1.5rem 0;
}

.demo-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #0078d7;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.demo-button:hover {
  background: #005a9e;
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  background: #004080;
  color: #fff;
  padding: 0.7rem 1rem;
  width: 100%;
  border-radius: 0 0 16px 16px;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item a {
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

.nav-item a:hover {
  background: #0059b3;
}

/* Dropdown på desktop */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown > a::after {
    content: " ▾";
    font-size: 0.8rem;
  }

  .dropdown-menu {
    min-width: 250px;
    display: none;
    position: absolute;
    background: #fff;
    color: #333;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
  }

  .dropdown-menu li a {
    color: #333;
    padding: 0.6rem 1.2rem;
    display: block;
    border-radius: 8px;
  }

  .dropdown-menu li a:hover {
    background: #f0f4fa;
  }

  /* Hamburgare dold */
  .nav-toggle {
    display: none;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .header-text {
    display: none; /* döljer tagline i mobil */
  }

  .nav-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #004080;
    cursor: pointer;
  }

  .navbar {
    background: #004080;
    border-radius: 0;
  }

  .nav-menu {
    list-style: none;   /* <-- tar bort prickar */
    display: none;
    flex-direction: column;
    width: 100%;
    background: #004080;
    margin-top: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .nav-item a {
    display: block;
    padding: 1rem;
    color: #fff;
  }

  /* Dropdown expanderbar */
  .dropdown > a::after {
    content: " ▾";
    font-size: 0.8rem;
  }

  .dropdown.open > a::after {
    content: " ▴";
  }

  .dropdown-menu {
    list-style: none;   /* <-- tar bort prickar */
    display: none;
    flex-direction: column;
    background: #003366;
    padding-left: 1rem;
    border-radius: 0 0 12px 12px;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu li a {
    color: #fff;
    padding: 0.8rem 1.2rem;
  }

  .dropdown-menu li a:hover {
    background: #004c99;
  }
}
