/* =========================
   Bas
========================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #ffffff;
  color: #333;
}


/* =========================
   Header
========================= */
.header {
  background-color: #55b6b3;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
}

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

.logo-img {
  height: 80px;
  width: 160px;
  display: block;
}


/* =========================
   Hero
========================= */
.hero {
  background: url('../images/bilutanperson.webp') center/cover no-repeat;
  color: white;
  padding: 0 2rem;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 450px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  text-align: left;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero h1,
.hero p {
  margin: 0.5rem 0;
}


/* =========================
   Sektioner (Tjänster, Om oss, etc.)
========================= */
.tjanster,
.om-oss,
.referenser,
.kontakt {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}


/* =========================
   Tjänster – 3 + 2 layout
========================= */
.tjanst-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 2.5rem;     /* 🆕 lodrätt mellanrum */
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 1100px;
}

.tjanst-lista li {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 320px;
  transition: transform 0.2s, box-shadow 0.2s;
  will-change: transform;         /* 🧠 viktig för jämnt lyft */
  position: relative;             /* 🧠 så att hover inte påverkar andra */
  z-index: 1;
}

.tjanst-lista li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.tjanst-lista i {
  font-size: 2.5rem;
  color: #55b6b3;
  margin-bottom: 1rem;
}

.tjanst-lista h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.tjanst-lista p {
  font-size: 1rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}


.tjanst-knapp-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.tjanst-knapp {
  background-color: #55b6b3;
  color: white;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
  display: inline-block;
}

.tjanst-knapp:hover {
  background-color: #449f9c;
}

.varfor {
  background: #f4f7f8;
  padding: 4rem 2rem;
  text-align: center;
}

.varfor h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #333;
}

.varfor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.varfor-box {
  background-color: white;
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.varfor-box i {
  font-size: 2rem;
  color: #55b6b3;
  margin-bottom: 1rem;
}

.varfor-box p {
  font-size: 1.05rem;
  color: #444;
  margin: 0;
}

.intro-pmcbygg {
  padding: 4rem 2rem;
  background-color: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.intro-bild img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.intro-text {
  text-align: center;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.intro-text p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  text-align: center;
}

/* Mobilanpassning */
@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-bild img {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* =========================
   Kontaktformulär
========================= */
.kontakt h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.kontakt-form label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.kontakt-form button {
  background-color: #55b6b3;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.kontakt-form button:hover {
  background-color: #449f9c;
}


/* =========================
   Kontaktinfo
========================= */
.kontaktinfo {
  margin-top: 2rem;
  background-color: #eef3f5;
  padding: 1.5rem;
  border-radius: 6px;
}

.kontaktinfo h2 {
  margin-top: 0;
  color: #333;
}


/* =========================
   Footer
========================= */
.footer {
  background-color: #55b6b3;
  color: white;
  text-align: center;
  padding: 1rem;
}


/* ====== Förbättrad tjänstelista ====== */
.tjanst-lista li:hover {
  background-color: #e5f6f5;
  transform: translateY(-3px);
  transition: all 0.2s;
}

/* Extra spacing efter hero */
.tjanster {
  padding-top: 4rem;
}

/* Mellanrum mellan sektioner */
section + section {
  margin-top: 4rem;
}

/* Textskugga i hero för läsbarhet */
.hero-content h1,
.hero-content p {
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ====== Varför välja oss-sektion ====== */
.varfor {
  background: #f4f7f8;
  padding: 3rem 2rem;
  text-align: center;
}
.varfor ul {
  list-style: none;
  padding: 0;
}
.varfor li {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.om-oss {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.om-oss h1, .om-oss h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.om-oss p {
  font-size: 1.05rem;
  color: #444;
}

.kontaktpersoner {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.kontaktpersoner h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.personkort {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.personkort img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
  object-fit: cover;
  max-height: 550px;
}

.personkort h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #222;
}

.personkort p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.personkort a {
  color: #55b6b3;
  text-decoration: none;
}

.personkort a:hover {
  text-decoration: underline;
}

.tack-sida {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.tack-sida h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.tack-sida p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.tjanst-knapp {
  background-color: #55b6b3;
  color: white;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
  display: inline-block;
}

.tjanst-knapp:hover {
  background-color: #449f9c;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

/* ====== Responsivitet ====== */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 3rem 1.5rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .tjanst-lista.rad1,
  .tjanst-lista.rad2 {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav a {
    margin: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .tjanst-lista {
    grid-template-columns: 1fr;
  }

  .tjanst-lista li {
    min-height: auto;
  }
}