.hero {
  height: 95vh;
  background-color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: white;
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-content h2 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.intro-text {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  color: rgb(20, 20, 20);
  line-height: 1.7;
  font-size: 1.3rem;
}
/* Services */

.services {
  padding: 80px 40px;
  background-color: #f5f5f5;
  text-align: center;
}

.services h2,
.service-info h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  color: rgb(20, 20, 20);
  position: relative;
  display: inline-block;
}

.services h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 150px;
  height: 3px;
  background-color: orange;
}

.service-card:nth-child(1) .service-info h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 160px;
  height: 3px;
  background-color: orange;
}

.service-card:nth-child(2) .service-info h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 215px;
  height: 3px;
  background-color: orange;
}

.service-card:nth-child(2) .service-info h3 {
  white-space: nowrap;
}

.service-card:nth-child(3) .service-info h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 135px;
  height: 3px;
  background-color: orange;
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  /* background-color: white; */ /* kolla med kunden*/
  gap: 50px;
  overflow: hidden;
}

.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-card img {
  width: 50%;
  height: 500px;
  flex-shrink: 0;
  border-radius: 8px;
}

.service-info {
  padding: 40px;
  flex: 1;
}

.service-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: rgb(20, 20, 20);
}

.service-info p {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}
.service-info a {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
  color: black;
  margin: 25px auto;
}
.service-info a:hover {
  transform: scale(1.05);
}

.why-us {
  padding: 80px 40px;
  text-align: center;
  background-color: white;
}

.why-us h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  color: rgb(20, 20, 20);
  position: relative;
  display: inline-block;
}

.why-us h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background-color: orange;
}

.why-us-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-us-card {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 40px 30px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.why-us-card h3 {
  font-size: 1.1rem;
  color: rgb(20, 20, 20);
}

.why-us-card p {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}
.cta-section {
  /* background-color: rgb(20, 20, 20); */
  background-color: #f5f5f5;
  padding: 100px 40px;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: rgb(0, 0, 0);
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(12, 12, 12, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .service-card,
  .service-card:nth-child(even) {
    flex-direction: column;
  }

  .service-card img {
    width: 100%;
    height: 220px;
  }
}
