* {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #222831;
  color: #DFD0B8;
}


/* Navbar */
.navbar {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #222831;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Logon mindre i mobil */
@media screen and (max-width: 768px) {
  .logo img {
    height: 35px;
  }
}

/* Menyn */
.menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.menu li a {
  position: relative;
  color: #dfd0b8;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  padding: 6px 0;
  transition: 0.3s;
  font-family: 'Poppins', Arial, sans-serif;
}

.menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #948979;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.menu li a:hover {
  color: #dfd0b8a3;
}

.menu li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #DFD0B8;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6.2px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6.2px, -5px);
}

/* Mobilanpassning */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    flex-direction: column;
    background-color: #222831;
    gap: 20px;
    padding: 60px 20px 20px 20px; /* mer top padding för att inte hamna under logon */
    transition: right 0.4s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .menu.active {
    right: 0;
  }

  /* Hela raden klickbar */
  .menu li {
    width: 100%;
  }

  .menu li a {
    display: block;  /* full width */
    width: 100%;
    padding: 15px 20px;
  }
}

.snap-container {
  flex: 1 0 auto;
  height: auto;
  overflow: visible;
}

/* Hero */
.hero-section {
  background-image: url('Background.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
    padding: 0px 20px 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 10px;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 40, 49, 0.85);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.main-title {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 3rem;
  color: #DFD0B8;
  font-weight: 600;
}
.slogan {
  font-size: 1.3rem;
  color: #DFD0B8c9;
  margin-top: 10px;
}

/* About */
.about-section {
  padding: 80px 20px 40px 20px;
  display: flex;
  justify-content: center;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  align-items: center;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.about-image {
  flex: 1;
  text-align: center;
}
.about-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
}

@media screen and (max-width: 768px) {
  section.about-section {
      padding: 80px 20px 40px 20px;
    font-size: 1.2rem;
    align-items: flex-start;
  }
  .about-content {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 100%;
    height: auto;
  }
  .about-text {
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
  }
  .about-image {
    display: none;
  }
  .services-image {
    display: none;
  }
  .contact-image {
    display: none;
  }
  .about-text h2 {
    font-size: 1.5rem;
    width: 100%;
  }
  .about-text p {
    font-size: 1rem;
    width: 100%;
  }
}

/* Team */
.team-section {
  padding: 80px 20px;
  background-color: #393E46;
  text-align: center;
}
.team-section h2 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 40px;
}
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.team-member {
  background: #222831;
  padding: 20px;
  border-radius: 16px;
  max-width: 250px;
  flex: 1 1 220px;
  text-align: center;
}
.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}
.team-member h3 {
  font-size: 1.2rem;
  font-family: 'Poppins', Arial, sans-serif;
}
.team-member p {
  font-size: 1rem;
  color: #DFD0B8c9;
}

/* Footer */
.footer-section {
  width: 100%;
  background: #222831;
  text-align: center;
  padding: 24px 0 16px 0;
  color: #DFD0B8;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  flex-shrink: 0;
}

.scroll-arrow {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: #dfd0b8;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1500;
  user-select: none;
  background: transparent;
}

/* Placering */
.scroll-arrow.down {
  bottom: 20px;
  animation: bounceDown 1.8s infinite;
}
.scroll-arrow.up {
  top: 80px;
  animation: bounceUp 1.8s infinite;
}

.scroll-arrow:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

/* Animationer */
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(6px); }
  60% { transform: translateX(-50%) translateY(3px); }
}
@keyframes bounceUp {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-6px); }
  60% { transform: translateX(-50%) translateY(-3px); }
}
