@charset "UTF-8";
/* CSS Document */

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}
/* Karusellens höjd – full viewport */
#hero-carousel .carousel-item {
  position: relative;
  width: 100%;
  height: 100vh; /* Full höjd */
  overflow: hidden; /* Dölj beskurna delar */
}

/* Bilden i karusellen */
#hero-carousel .carousel-item .carousel-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* Täcker området utan att förvrängas */
  object-position: center; /* Centrera fokus */
  transform: translate(-50%, -50%);
}
/* Overlay över hela bilden */
#hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Justera transparens här (0 är osynlig, 1 är helt svart) */
  z-index: 1;
}

/* Responsiv anpassning – lägre höjd på mobil */
@media (max-width: 768px) {
  #hero-carousel .carousel-item {
    height: 100vh; /* anpassad höjd för mobil */
  }
}


 .hero .carousel {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
 background-color: var(--background-color);
position: relative;
}

	
.hero .carousel-item {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Viktigt för att hålla fokus i mitten */
}

.hero .carousel-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}



.hero .carousel-container {
  position: absolute;
	top: 40%;
  left: 64px;
  right: 64px;
  bottom: 64px;
display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3 ;
}

.hero h4 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  animation: fadeInDown 1s both;
}

.hero h4 span {
  color: var(--accent-color);
}


.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  animation: fadeInDown 1s both;
color:#ffb03b;
}

.hero h2 span {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}

.hero p {
  animation: fadeInDown 1s both 0.2s;
}

@media (min-width: 1024px) {

  .hero h2,
	.hero a,

  .hero h4,
  .hero p {
    max-width: 100%;
  }
}



.hero .btn-get-started {
  color: var(--contrast-color);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px 5px;
  animation: fadeInUp 1s both 0.4s;
  border: 2px solid var(--accent-color);
}

.hero .btn-get-started:hover {
  background: var(--accent-color);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  transition: 0.3s;
  opacity: 0.5;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

@media (min-width: 1024px) {

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 5%;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

.hero .carousel-indicators {
  list-style: none;
}

.hero .carousel-indicators li {
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
