/* =====================================================
   TYPOGRAFI
===================================================== */

/* Open Sans från Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap");

/* Raleway font */
@font-face {
  font-family: "Raleway";
  src: url("fonts/raleway-semibold.woff2") format("woff2"),
    url("fonts/raleway-semibold.woff") format("woff");
  font-weight: 600; /* Semibold */
}

/* ================================
   GLOBAL RESET
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Grundläggande textinställningar */
body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 30px;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* Rubriker */
h1 {
  font-size: clamp(2.5rem, 3vw, 2.5rem);
  font-family: "Raleway", sans-serif;
  text-align: left;
  margin-top: 20px;
}

h2,
h3 {
  font-family: "Raleway", sans-serif;
  text-align: left;
  font-size: 1.5rem; /* exempelvärde, motsvarar ca "large" */
}

ul li {
  font-family: "Raleway", sans-serif;
  text-align: left;
  font-size: 1rem; 
}

p {
  color: black;
  font-size: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

strong {
  font-weight: 700;
}

li a { font-size: 18px; /* normal storlek */ 
  padding: 4px 6px; /* justera om du vill minska ytan */
}

h1.vit {
  color:white;
  font-size: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

blockquote {
  font-family: "Open Sans", sans-serif;
  text-align: center;
}

.fetstil {
  font-weight: bold;
}

.tjansterli li {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  text-align: left;
}

label {
  font-family: "Raleway", sans-serif;
  text-align: left;
  font-size: 1.125rem; /* exempelvärde */
}

a.miotek {
  color: black;          /* Gör texten svart */
  text-decoration: none; /* Tar bort understrykningen */
}

/* =====================================================
   LAYOUT
===================================================== */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: rgb(248, 248, 243);
}

main {
  flex: 1;
  width: 100%;
}

.wrapper {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
}

.container {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 4rem 0;
}

  .blocks-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.centered-block {
  width: 60%;
  margin: 1rem auto;
  text-align: left;
}

.centered-block2 {
  width: 45%;
  margin: 1rem auto;
  align-items: center;
  text-align: center;
}

h2 {
    text-align: center;
}

.centered-block2 img {
    width: 85%;   /* eller procent, t.ex. 100% */
    height: auto;   /* behåller proportionerna */
}


.block {
  flex: 1;
  min-width: 100px;
  padding: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.block p {
  max-width: 220px; /* matchar rundbildens bredd + lite marginal */
  margin: 0 auto 1rem;
}

.block-content {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  text-align: left;
}

.highlighted-text {
  background-color: rgba(252, 249, 249, 0.797);
  display: inline;
  text-align: left;
  margin-left: 5px;
}

.center-wrapper {
  display: flex;
  flex-direction: column; /* Staplar elementen ovanpå varandra */
  align-items: center;    /* Centrerar horisontellt */
  gap: 8px;               /* Lite luft mellan telefonnumret och knappen */
}

.center-wrapper .phone {
  margin: 0; /* Tar bort onödig marginal från <p> */
}


/* =====================================================
   HEADER & NAVIGATION
===================================================== */

header {
  display: flex;
  justify-content: center; /* centrerar hela innehållet horisontellt */
  align-items: center;     /* vertikal centrering */
  gap: 8rem;               /* avstånd mellan logga och meny */
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  display: flex;
  width: 100%;
  Height: 120px;
  padding: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex-direction: row;
}

header img {
  height: 90%;   /* fyller headerns höjd */
  width: auto;    /* behåller proportionerna */
  margin: 0;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  column-gap: 1rem;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  flex-direction: row;
  align-items: center;
  row-gap: 0.5rem;
}

nav li {
  background-color: transparent; /* Ingen bakgrund */
}

nav li:hover {
  background-color: transparent; /* Säkerställ att ingen bakgrund visas */
  border-bottom: solid black; /* svart streck under */
}

/* Standard: stor skärm */
.menu-icon {
  display: none;
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

ul li { 
  margin-bottom: 5px; /* justera efter smak */
  margin-top: 5px;
 }

#top-menu {
  list-style: none;
  padding: 15px;
  font-style: normal;
  font-size: x-large;
}

#top-menu a {
  text-decoration: none;
  color: black;
}

/* Hamburgermeny */
#menu-toggle {
  display: none;
  position: absolute;
  left: -9999px;
}

.menu-icon {
  display: none; /* gömd som standard */
  position: absolute;
  left: -9999px;
}

#menu-toggle:checked + .menu-icon + ul {
  display: flex;
}

a {
    color: #000;            /* svart text */
    text-decoration: none;  /* ingen understrykning */
}

a:hover {
    text-decoration: underline; /* understrykning vid hover */
}


/* =====================================================
   BILDER & SEKTIONER
===================================================== */

.bildsektion {
  width: 100%;
  min-height: 500px;
  margin: 0 auto;
  background-image: url("images/bakgrund.jpg");
  background-size: cover;
  background-position: center;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 3rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
}

.content-wrapper {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.rundbild {
  width: 200px;
  height: 200px;
  border-radius: 10%;
  display: block;
  margin: 0 auto 30px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   KNAPPAR
===================================================== */

.contact-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, white, white);
  color: black;
  border: 2px solid black;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* =====================================================
   GRID
===================================================== */

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  grid-template-areas: "section1 section2 section3 section4";
}

/* =====================================================
   FOOTER
===================================================== */

.footer-container {
  background-color: #e8e3e5a8;
  display: flex;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem;
  width: 100%;
  gap: 1rem;
}

.footer-container a[href^="mailto:"] {
  color: #000;
  text-decoration: none;
  font-weight: normal;
}

.footer-section {
  padding: 1rem;
}

.footer-section h3 {
  margin-top: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #0e0e0d;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

#footer-section1 {
  grid-area: footer-section1;
}

#footer-section2 {
  grid-area: footer-section2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#footer-section3 {
  grid-area: footer-section3;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

#footer-section3 a img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#footer-section3 a:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* =====================================================
   MEDIA QUERIES
===================================================== */
@media (max-width: 2000px) {
  .wrapper {
    width: 100%;
  }
  
.centered-block2 p {
    max-width: 75%;   /* eller 70%, 65% – testa vad som känns bäst */
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* eller center om du vill */
  }

}

@media (max-width: 1320px) {
  .wrapper {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "section1 section2"
      "section3 section4";
  }

  .footer-container {
    display: grid;
    grid-template-areas: "footer-section1 footer-section2 footer-section3";
  }

  header {
    flex-direction: row;
  }


}

@media (max-width: 768px) {
  .container {
    flex-direction: row;
    align-items: center;
  }

  header img {
    height: 100px;
    width: auto;
  }

  .blocks-row {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .blocks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolumner på stora skärmar */
  gap: 10px;
}

.blocks-row img {
  width: 100%;
  aspect-ratio: 1 / 1; /* gör bilden fyrkantig */
  object-fit: cover;  /* beskär snyggt */
}

  .centered-block2 {
    flex: 1;
    max-width: 500px;
  }

  .centered-block2 p {
    max-width: 75%;   /* eller 70%, 65% – testa vad som känns bäst */
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* eller center om du vill */
  }

  .block {
    width: 50%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  /* Footer i en kolumn */
  .footer-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "footer-section1"
      "footer-section2"
    gap:1rem;
  }

  .block {
    min-width: 100%; /* blocken staplas snyggt på mobil */
  }

  .centered-block {
  width: 95%;
  margin: 1rem auto;
  text-align: left;
}

.blocks-row { 
  display: flex !important; 
  flex-direction: column !important; 
  gap: 1.5rem; }


.centered-block2 {
  width: 75%;
  margin: auto;
  text-align: left;
}

.centered-block2 img {
    width: 60%;   /* eller procent, t.ex. 100% */
    height: auto;   /* behåller proportionerna */
}

li a { font-size: 14px; /* normal storlek */ 
}

#top-menu {
    font-size: 14px; /* mindre text */
    padding: 0;
  }

  /* Dölj hamburgermenyn helt */
  .menu-icon,
  #menu-toggle {
    display: none !important;
  }

  /* Visa menyn direkt och i rad */
  nav ul {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0rem;
    font-size: 14px;
    justify-content: center; /* centrerar menyn */
    width: 100%;             /* gör att centreringen fungerar */
}

  /* Header: logotyp + meny i rad */

  header {
    display: flex;
    flex-direction: row;
    height: 100px;
    align-items: center;
  justify-content: center; /* centrerar allt i headern */
  gap: 0.25rem;               /* lite luft mellan logga och meny */
}

  header img {
    max-height: 50px;
    height: auto;
    width: auto;
  }

  .centered-block2 {
    align-items: center;
    text-align: center;
  }

  .logo {
    margin: 1;
  }

  h1 {
    font-size: 2rem; /* eller större, t.ex. 4rem */
  }

  .highlighted-text {
    font-size: 2rem; /* ökat från 1rem */
    line-height: 1.0;
  }

  h2,
  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1.125rem;
  }

}

@media (min-width: 601px) {

  .container { 
    flex-direction: row;
  }

  .menu-icon {
    display: none !important;
  }

  .footer-container {
    margin: 0 auto;      /* centrerar hela footern */
    justify-content: center; 
    gap: 5rem;           /* avstånd mellan sektionerna */
  }


 .blocks-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* gör att det funkar även på mobil */
}

.container.blocks-row2 { 
  flex-direction: row; 
}

.container.blocks-row2 img { 
  flex: 1; /* alla blir lika breda */ 
  height: 500px; /* justera efter smak */ 
}


.centered-block2 {
  flex: 1;          /* låter båda kolumnerna dela utrymmet */
  max-width: 500px; /* valfritt, men gör layouten snyggare */
  margin: 20px;
  text-align: center;
}

.centered-block2 .text {
  display: inline-block;     /* Gör listan centrerad */
  text-align: left;          /* Behåller vänsterjusterad text i listan */
}

.centered-block2 img {
    width: 50%;   
    height: auto;   /* behåller proportionerna */
}


  #menu-toggle {
    display: none !important;
  }

  nav ul {
    display: flex !important;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
  }

  header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; 
    gap: 19rem;
  }


  header img {
    max-height: 150px;
  width: auto;
}

#top-menu {
    font-size: 18px; /* mindre text */
  }

  .centered-block {
  width: 40%;
  margin: 1rem auto;
  text-align: left;
}
}

@media (min-width: 418px) {
  .block2-rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumner */
    gap: 10px; /* mellanrum mellan rutorna */
  }

  .block2-rows img {
    width: 100%;
    aspect-ratio: 4 / 3; /* gör alla bilder till lika stora rektanglar */
    object-fit: cover;   /* beskär snyggt om proportionerna skiljer sig */
    display: block;
  }
}

@media (max-width: 418px) {

  .footer-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "footer-section1"
      "footer-section3";
    gap: 0.25rem;
  }

  .menu-icon,
  #menu-toggle {
    display: none !important;
  }

  #top-menu {
    font-size: 13px;
    margin: 0px;
  }

  nav ul {
    display: flex !important;
    flex-direction: row;
    justify-content: center; /* ändrad */
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .blocks-row2 {
  display: grid;
  gap: 15px;  
  grid-template-columns: 1fr;
  padding: 15px;          /* lite ram runt hela blocket */
}

  .container.blocks-row {
    flex-direction: column !important; /* Stapla blocken */
    align-items: center;               /* Centrerar dem snyggt */
  }

  .centered-block2 {
    width: 100%;
    max-width: 500px;                  /* valfritt */
    margin: 0.5rem auto;
    text-align: left;
  }

  .centered-block2 p {
  max-width: none;
  width: 95%;
  display: block;
}


.blocks-row2 img {
  width: 100%;
  height: auto;
  border-radius: 6px;     /* valfri liten rundning */
  display: block;
}

  header {
    display: flex;
    flex-direction: row;
    justify-content: center; /* ändrad */
    align-items: center;
    gap: 20px;
  }

  header img {
  height: 80%;   /* fyller headerns höjd */
}