/* === 1. RESET & GRUNDSTILAR === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: green;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ddd;
  color: green;
}

main {
  /* flex: 1; */
}

a {
  color: green;
  text-decoration: none;
}

/* === 2. SIDBREDD === */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === 3. HEADER & NAVIGATION === */
header {
  position: sticky;
  top: 0;
  z-index: 10;
}

header .page-wrapper {
  background-color: #fff;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em;
}

.logo {
  height: 4em;
}

.logo img {
  height: 100%;
  width: auto;
}

/* NAVBAR */
.navbar ul {
  display: flex;
  gap: 1.5em;
  font-size: 1.2em;
  list-style: none;
}

.navbar li a {
  color: green;
}

/* HAMBURGER MENU */
.ham-menu {
  height: 30px;
  width: 30px;
  position: relative;
  margin-left: auto;
  margin-right: 1em;
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.ham-menu span {
  height: 2px;
  width: 100%;
  background-color: green;
  border-radius: 25px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s ease;
}

.ham-menu span:nth-child(1) { top: 25%; }
.ham-menu span:nth-child(2) { top: 50%; }
.ham-menu span:nth-child(3) { top: 75%; }

.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* OFF-SCREEN MENU */
.off-screen-menu {
  background-color: rgb(213, 255, 216);
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  transition: 0.3s ease;
  z-index: 20;
}

.off-screen-menu.active {
  right: 0;
}

.off-screen-menu ul {
  list-style: none;
}

.off-screen-menu li {
  padding: 0.5em 0;
}

/* === 4. HERO-SEKTION (LANDNINGSSIDAN) === */
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-heading {
  background-color: white;
  text-align: center;
  padding: 2em 1em;
  line-height: 1.4;
}

.hero h1{
 font-size:1.5em; 
}

.hero-heading p {
  font-size: 1rem;
  font-weight:bold;
}

/* === 5. BANNER (UNDERSIDOR) === */
.banner {
  background-color: rgb(131, 189, 131);
  padding:1em 1.5em;
  color: white;
  
}

.banner h2 {
  font-size: 1.5em;
  color:white;
}


/* === 6. GALLERI (BÅDA LAYOUTER) === */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  background-color: white;
  padding-bottom: 2em;
  align-items: stretch;
}

.gallery-card {
  /* flex:1 1 300px; */
  max-width: 500px;
  width:100%  ;
  min-height: 450px;
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  overflow: hidden;
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 12px rgba(0, 128, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

/* .gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 128, 0, 0.2);
} */

.gallery-card img {
  width: 100%;
  max-height: 450px;
  
  /* border-radius: 8px; */
  object-fit: cover;
}

.gallery-card h2 {
  margin: 1em 0 0.5em;
  font-size: 1.5em;
  color: green;
  text-align: center;
}

.gallery-card p {
  flex-grow: 1;
  line-height: 1.5;
  text-align:left;
  font-size: 1em;
  overflow-wrap: break-word;
  margin-top: 1em;
}

/* === PRODUCT-LISTING === */

body:not(.produkt-sida) .gallery-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.product-listing{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  background-color: white;
  padding-bottom: 2em;
}

.download{
  font-size: 1.2em;
  
}

i{
  
}
  

/* === SYSTEM-GALLERY === */

.system-card {
  /* flex:1 1 300px; */
  max-width: 500px;
  width:100%  ;
  min-height: 450px;
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  overflow: hidden;
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 12px rgba(0, 128, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.system-image-container{
  width:100%;
  height:100%;
  overflow:hidden;
}

.system-image-container img{
  width: 100%;
  height:80%;
  object-fit: cover;

}
.system-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 128, 0, 0.2);
}

.system-card img {
  width: 100%;
   
  /* border-radius: 8px; */
  object-fit: cover;
}

.system-card h2 {
  margin: 1em 0 0.5em;
  font-size: 1.5em;
  color: green;
  text-align: center;
}

/* === SYSTEM-ARTICLE === */

.article-heading{
  background-color: rgb(131, 189, 131);
  padding:1.5em;
}

.article-heading h1{
  color:white;
}

.system-article article {
  max-width: 800px;
  padding: 2em;
  line-height: 1.6;
  font-size: 1.1em;
  background-color: #fff;
}

.system-article img {
  width: 100%;
  height: auto;
  margin: 2em 0 1em;
  
}

.system-article p {
  margin: 1.2em 0;
}

.call-button-wrapper{
  display: flex;
  justify-content: center;

}

.call-button {
  display: flex;
  justify-content: center;
  margin-top: 2em;
  padding: 0.8em 1.5em;
  background-color: #006400;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.call-button:hover {
  background-color: #228B22;
}

/* === KONTAKT === */

.kontakt-info {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: space-between;
}

.kontakt-item {
  flex: 1 1 30%;
  /* min-width: 200px; */
}

.kontakt-item h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.button-row {
  background-color: white;
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 2em;
  flex-wrap: wrap;
}

.button {
  background-color:rgb(157, 168, 157);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 1rem;
  max-width: 10em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #006b8f;
}

/* Mobilanpassning */
@media (max-width: 600px) {
  .kontakt-info {
    flex-direction: column;
  }

  .button-row {
    flex-direction: column;
    margin:0 auto;
  }
}


/* === 7. FOOTER === */
footer {
  text-align: center;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

footer .page-wrapper {
  background-color: #f7f7f7;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 2em;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

address {
  font-style: normal;
  padding: 1.5em;
}

.footer-bottom {
  margin-top: 2em;
  padding: 2em;
  font-size: 0.9em;
  color: #555;
}

/* === 8. RESPONSIV DESIGN === */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .ham-menu {
    display: block;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .system-article article {
    padding: 1.2em;
    font-size: 1em;
  }
}


