*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html, body {
  overflow-x: clip;
}


/* LOGO */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin: 48px 0 28px;
}

.logo-wrapper img{
  width: clamp(180px, 60vw, 520px);
  height: auto;
}


/* PAGE */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
  width: 100%;
}

/* HEADER / NAV */
header {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
}

nav a:hover {
  text-decoration: underline;
}

/* DROPDOWN */
.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 8px 0;
  min-width: 160px;
  text-align: center;
  display: none;
  z-index: 1000;
}

.dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
}

.dropdown a:hover {
  background: #f5f5f5;
  text-decoration: none;
}

/* Hover (desktop) */
.nav-item:hover .dropdown {
  display: block;
}

/* Click (mobil + desktop) */
.nav-item.open .dropdown {
  display: block;
}

/* FOOTER */
footer {
  background: #f2f2f2;
  padding: 16px 24px;
  text-align: center;
  font-size: 18px;
  color: #000;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 17px;
  color: #333;
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 10px 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
}

.nav-links {
  display: contents; /* desktop: länkarna beter sig som "vanliga" nav-länkar */
}

@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 360px);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1100;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-links a:hover {
    background: #f5f5f5;
    text-decoration: none;
  }

  nav.menu-open .nav-links {
    display: block;
  }
}
