html {
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    /* font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #4F6F52; */
    background: #F5F4EB;
    
}

/* Reset */

* {
  /* margin: 0; */
  padding: 0;
  box-sizing: border-box;
 font-family: Lato, sans-serif;
}

main {
    width: 80%;
    margin: 0 auto;
}

.header {
  display: flex;
  justify-content: center; /* ändrad från space-between */
  align-items: center;
  padding: 15px 40px;
  background-color: #F5F4EB;
  color: #4F6F52;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
} 

.header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav {
  display: flex;
  gap: 30px;
  background-color: #D2E3C8;
  padding: 20px 40px;
  border-radius: 30px;
  list-style: none;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.nav a {
    color: #4F6F52;
    text-decoration: none;
    transition: 0.2s ease;
}

.nav li a {
    color: #4F6F52;
    text-decoration: none;
}

.nav li:hover a {
    color: #a0c9a4;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4F6F52;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .header nav,
    .about-header nav {
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 4px 6px #4F6F52;
        z-index: 20; /* ensure the menu appears above the header */
    }

    .menu-toggle {
        display: block;
    }
}

/*knappar*/
button {
    padding: 0.6rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    background: #4F6F52;
    color: #fff;
    cursor: pointer;
    font-family: Lato, sans-serif;
}

button:hover {
    opacity: 0.9;
}




/* Footer */


footer {
    margin-top: 160px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap; /* stack instead of forcing the page wider than the screen */
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #F5F4EB;
    color: #4F6F52;
    font-family: Lato, sans-serif;
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background-color: #D2E3C8;
    padding: 8px 16px;
    font-family: Lato, sans-serif;
    border-radius: 30px; /* rund meny som headern */
}

.social-links a {
    color: #4F6F52;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 20px;
    transition: 0.2s ease;
    font-family: Lato, sans-serif;
}

.social-links a:hover {
    color: #a0c9a4;
    background-color: #D2E3C8;
}