/* Grundstil */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  min-width: 275px;
  height: 200vh;
}

h1,
h2 {
  color: #1e90ff;
  margin: 0;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 700;
  font-style: normal;
}
/* Hero-sektion */

.hero-content h1,
.text-flicker-out-glow h2,
.hero-content p {
  transition: opacity 0.3s ease;
}

.hero-content.hide-on-scroll h1,
.text-flicker-out-glow h2,
.hero-content.hide-on-scroll p {
  opacity: 0;

  /*   pointer-events: none; /* valfritt: så att knappen inte går att klicka */
}
.hero {
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  top: 0;
  overflow: hidden; /* viktig för att videon inte ska sticka ut */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(95.1% 0.026 236.824); /* din overlay */
  opacity: 0.5;
  z-index: 1;
}

.hero-content {
  position: relative;
  color: #1e90ff;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.hero-button {
  background-color: #1e90ff;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 10px;
  display: inline-block;
}

.hero-button:hover {
  background-color: #0d6efd;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  background-color: white;
  padding: 10px;
  gap: 30px;
  border-bottom: 1px solid #d4d3d3;
}

.main-nav a {
  text-decoration: none;
  color: #1e90ff;
  font-weight: 500;
}

/* Tjänster */
#services {
  padding: 40px 20px;
  background-color: white;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-box {
  background-color: #f0f8ff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.service-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

/* Karusell */

.image-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  width: 50%;
  height: auto;
  animation: slideCarousel 20s infinite ease-in-out;
}

.carousel-slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-text {
  position: absolute;
  bottom: 20px;
  left: 30px;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 4px;
}
@keyframes slideCarousel {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-50);
  }

  30% {
    transform: translateX(-100%);
  }
  45% {
    transform: translateX(-170%);
  }

  60% {
    transform: translateX(-200%);
  }
  65% {
    transform: translateX(-230%);
  }

  80% {
    transform: translateX(-260%);
  }
  95% {
    transform: translateX(-300%);
  }

  100% {
    transform: translateX(0);
  }
}
@media screen and (max-width: 768px) {
  .image-carousel {
    height: 250px;
  }
  .carousel-slide img {
    height: 250px;
  }
  .carousel-text {
    font-size: 1.2rem;
    bottom: 10px;
    left: 15px;
  }
}
/* Kontakt & FAQ */
#contact,
#faq,
#rut {
  padding: 30px 20px;
  background-color: #ffffff;
  text-align: center;
}

.faq-item {
  margin: 15px auto;
  max-width: 700px;
  text-align: left;
}

/* Footer */
footer {
  background-color: #5d9dde;
  color: white;
  text-align: center;
  padding: 55px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.footer-linker a {
  text-decoration: none;
  color: white;
}
.mainBottom {
  position: relative;
  overflow: hidden;
  height: auto; /* eller större om innehållet är mer */
  bottom: auto;
}

.videoGolvet {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* pointer-events: none; */
}

/* .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
 */
