/* -- Hero container -- */
.hero {
  position: relative;
  width: 100%;
}

/* -- Hero image -- */
.hero-img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  display: block;
}

.hero-img-tall {
  height: 800px;
}

.hero-img-short {
  height: 180px;
}

/* -- Navbar -- */
.navbar {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  z-index: 10;
}

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

/* -- Nav links -- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.hamburger {
  display: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* -- Hero text overlay -- */
.hero-text {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 5;
  width: 100%;
  margin-top: 40px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  width: 87%;
  margin: 0 auto;
}

.hero-text p {
  font-size: 100%;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  width: 400px;
  margin: 20px auto 0 auto;
}

/* -- Mobile (hamburger menu) -- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    width: 100%;
  }

  .hero-text p {
    font-size: 1rem;
    width: 87%;
  }
}

/* -- Footer -- */
.site-footer {
  background-color: #ffffff;
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.footer-logo img {
  max-width: 300px;
  height: auto;
  width: auto;
}

.footer-text p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 1);
}

.footer-copy {
  border-top: 1px solid #444;
  width: 100%;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #888;
}

/* -- About text section -- */
.about-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-container h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #222;
  margin-top: 30px;
  margin-bottom: 10px;
}

.about-container p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* -- Hero image link -- */
.hero-link-img {
  width: 80px;
  height: auto;
  margin-top: 0;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
}

/* -- Team section -- */
.team-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  margin-top: 0px;
}

.team-member {
  text-align: center;
  width: 200px;
}

.team-member img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 5%;
  display: block;
  margin: 0 auto 15px auto;
}

.team-member h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 5px;
}

.team-member p {
  font-size: 0.9rem;
  color: #555;
  margin: 3px 0;
}

.team-member a {
  color: #555;
  text-decoration: none;
}

.team-member a:hover {
  text-decoration: underline;
}

/* -- Team mobile -- */
@media (max-width: 768px) {
  .team-section {
    flex-direction: column;
    align-items: center;
  }
}

/* -- List -- */
.about-container ul {
  list-style: disc;
  padding-left: 20px;
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}

.about-container ul li {
  margin-bottom: 5px;
}

/* -- Carousel -- */
.carousel-section {
  max-width: 100%;
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 40px;
  padding: 0 20px;
}

.carousel-section h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 20px;
  text-align: center;
}

.carousel-img {
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 8px 16px;
  bottom: 20px;
}

.carousel-caption p {
  margin: 0;
  font-size: 1rem;
  color: white;
  text-shadow: none;
  width: 100%;
}

/* -- Carousel mobile -- */
@media (max-width: 768px) {
  .carousel-img {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .carousel-img {
    height: 250px;
  }

  .carousel-section {
    padding: 0 5px;
  }
}

/* -- Text link -- */
.text-link {
  color: #333;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* -- Upp-knapp -- */
#upBtn {
  display: none;
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#upBtn:hover {
  opacity: 1;
}