/* ======= Importera Google Fonts ======= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* ======= GRUNDINSTÄLLNINGAR ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: url('Bakgrund.svg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  /* Fortsätt med ingen scroll på riktigt stora skärmar */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Samma som headerns höjd */
}

h1, h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
}

.about-us-container {
  width: 90vw;
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column; /* Staplar allt vertikalt */
  align-items: center;    /* Centrerar horisontellt */
  justify-content: center; /* Centrerar vertikalt */
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
}

.text-section {
  width: 100%;
  max-width: 700px;
  text-align: center; /* Centrerar text */
}

.text-section h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.text-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.contact-info {
  margin-top: 2rem;
  font-size: 1rem;
}


/* ======= RESPONSIV DESIGN ======= */
/* 
   1) På riktigt små skärmar (max-width: 768px) 
      - Låt sidan scrolla fritt
      - Stapla bild och text vertikalt
*/
@media (max-width: 768px) {
  body {
    overflow: auto; /* Tillåt scroll på mobil/läsplatta */
  }

  .about-us-container {
    width: 90vw;
    height: auto; /* Låt innehållet bestämma höjden */
    flex-direction: column;
  }

  .image-section,
  .text-section {
    width: 100%;
    height: auto;
    flex: none;
  }

  .text-section {
    padding: 1rem;
    overflow-y: visible;
  }
}

/*
   2) På mellanstora skärmar (769px – 1024px)
      - Låt också body scrolla 
      - Släpp fast höjd på containern så texten inte skapar inre scrollbar
*/
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    overflow: auto; /* Viktigt: tillåt scroll när vi är i "mellanläge" */
  }

  .about-us-container {
    width: 80vw;
    height: auto;     /* Släpp höjd så texten får plats */
    max-height: 90vh; /* Kan sättas om du vill begränsa maxhöjden */
    flex-direction: row;
  }

  .text-section {
    overflow-y: visible; /* Ingen inre scrollbar */
  }
}

.contact-info {
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center; /* <-- Ändrat från left till center */
  width: 100%;
  background-color: transparent;
  border-radius: 0;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contact-info strong {
  font-weight: 700;
}

.contact-info a {
  color: #002434;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #8a6fa0;
}


/* ======= HEADER ======= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
  z-index: 1000;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
}

/* ======= Desktop Navigationsmeny (dator) ======= */
.desktop-menu {
  margin-left: 40px;
}

.desktop-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
}

.desktop-menu ul li a {
  text-decoration: none;
  font-size: 16px;
  color: #002434;
  transition: color 0.3s;
}

.desktop-menu ul li a:hover {
  color: #8a6fa0;
}

/* ======= HAMBURGARMENY (mobil/läsplatta) ======= */
.hamburger-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hamburger-menu {
  width: 50px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  background: transparent;
  padding: 5px;
}

.hamburger-menu div {
  width: 35px;
  height: 4px;
  background-color: rgb(0, 0, 0);
  transition: 0.3s;
  border-radius: 2px;
  position: absolute;
}

.hamburger-menu div:nth-child(1) { top: 10px; }
.hamburger-menu div:nth-child(2) { top: 18px; }
.hamburger-menu div:nth-child(3) { top: 26px; }

.hamburger-container.active .hamburger-menu div:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}

.hamburger-container.active .hamburger-menu div:nth-child(2) {
  opacity: 0;
}

.hamburger-container.active .hamburger-menu div:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}

.hamburger-links {
  list-style: none;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 200px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-container.active .hamburger-links {
  max-height: 200px;
  opacity: 1;
  padding: 8px;
}

.hamburger-links li {
  padding: 10px;
  text-align: center;
}

.hamburger-links a {
  text-decoration: none;
  font-size: 14px;
  color: black;
  display: block;
  transition: 0.3s;
}

.hamburger-links a:hover {
  background: #f0f0f0;
}

/* ======= RESPONSIV DESIGN (kompletterande) ======= */
/* ----- För mobil + läsplatta upp till 1024px ----- */
@media (max-width: 1024px) {
  .desktop-menu {
    display: none;
  }
  .hamburger-container {
    display: flex;
  }
}
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url('Bakgrund.svg') no-repeat center center/cover;
  z-index: -1;
  opacity: 1;
}


/* ======= HEADER FIX ======= */
@media (max-width: 768px) {
    header {
        padding: 15px 20px; /* Minskar sidopadding på mindre skärmar */
    }

    .logo {
        margin-right: auto; /* Skjuter loggan till vänster */
    }

    .language-switch {
        margin-left: 15px; /* Ökar avstånd mellan logga och switch */
    }
}
@media (max-width: 768px) {
  body {
    padding-bottom: 20px; /* Lägg till lite extra utrymme längst ner */
  }
}
