:root {
  --primary-color: #39643b;
  --primary-dark: #a69157;
  --background: #f9f6f1;
  --text-color: #2e2b27;
  --card-bg: #ffffff;
  --border-radius: 10px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --btn-secondary-bg: #d2c2a8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--background);
  color: var(--text-color);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #39643b;
  font-weight: 700;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.navbar-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.logo img {
  height: 60px;
  width: 60px;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: #a69157;
}

.nav-links {
  position: relative;
  /* så absolut position på knappen funkar */

  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #39643b;
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #a69157;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #243f25;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #a69157;
  margin-bottom: 5px;
  border-radius: 3px;
  transition: 0.3s;
}

/* Mobilmeny */
/* Mobilmeny som popup */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #ffffff;
    width: 90%;
    max-width: 300px;
    padding: 2rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translate(-50%, -50%) scale(1);
  }

  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.582);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Stängknapp */
  .nav-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    user-select: none;
  }

  .hamburger {
    display: flex;
    z-index: 1100;
    /* ovanför overlay */
  }
}

.nav-close-btn {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #a69157;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .nav-close-btn {
    display: block;
  }
}


.hero {
  padding: 8rem 2rem 4rem;
  margin-top: 50px;
  margin-bottom: 50px;
  background-image: url('/Assets/IMG/gold.jpg');
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero-content {
  max-width: 700px;
}


.hero h1 {
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 800;
  margin-bottom: 16px;
  /* istället för 1rem */
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}


.hero2 {
  padding: 8rem 2rem 4rem;
  margin-top: 50px;
  margin-bottom: 50px;
  background-image: url('/Assets/IMG/deal.jpg');
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero-content2 {
  max-width: 700px;
}

.hero2 h1 {
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 800;
  margin-bottom: 16px;
  /* istället för 1rem */
}

.hero2 p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}



/* Sektioner */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  max-width: 1000px;
  padding: 4rem 2rem;
  margin: 0 auto;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.spacer100 {
  height: 100px;
}

.section-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  margin-bottom: 32px;
  /* 2rem ≈ 32px */
  color: var(--primary-dark);
  text-align: center;
}

.section-title-h2 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  margin-bottom: 32px;
  /* istället för 2rem */
  color: var(--primary-dark);
  text-align: center;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: #444;
}

/* Sekundär knapp */
.btn {
  background-color: #a69157;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  user-select: none;
}

.btn2 {
  background-color: #a69157;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  user-select: none;

  /* Lägg till: */
  margin-left: auto;
  margin-right: auto;
  display: block;
  /* Gör knappen till blockelement för att margin auto ska fungera */
}

.btn3 {
  background-color: #a69157;
  color: white;
  padding: 10px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  user-select: none;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.btn:hover,
.btn:focus {
  background-color: var(--primary-dark);
  outline: none;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #c6dbff;
  outline: none;
}

/* Företagsportal */
.portal p {
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: #333;
}

/* Kontakt */
.contact p {
  max-width: 600px;
  margin: 0.5rem auto;
  text-align: center;
  color: #555;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: #39643b;
  color: white;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  margin-top: auto;
}

footer a p {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

footer a p:hover {
  text-decoration: underline;
}


.footer-nav {
  background-image:
    linear-gradient(to bottom, rgba(245, 248, 255, 0.9), rgba(245, 248, 255, 0.9)),
    url('/Assets/IMG/footer.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 1.5rem;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-column h3 {
  font-size: 1.25rem;
  color: #a69157;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #a69157;
  padding-bottom: 0.3rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.7rem;
}

.footer-column a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-column a:hover,
.footer-column a:focus {
  color: #7c6c41;
  outline: none;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.8rem;
  }

  .footer-column {
    min-width: auto;
  }
}







/* TEXT MED BILD */

.text-image-section {
  display: flex;
  max-width: 1000px;
  /* Eller din maxbredd */
  margin: 0 auto;
  /* Centrera hela sektionen */
  width: 100%;
  align-items: stretch;
  min-height: 500px;
  /* Justera efter behov */
  border-radius: 12px;
  /* Rundade hörn på hela sektionen */
  overflow: hidden;
  /* Klipp innehåll till rundade hörn */
}

.text-image-section .text-box,
.text-image-section .image-box {
  flex: 1 1 50%;
  /* Varje ruta tar exakt 50% av bredden */
  box-sizing: border-box;
  /* Padding inräknad i bredden */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  /* Se till att innehållet klipps i barnen */
}

/* Rundade hörn på text och bild så att det ser snyggt ut */
.text-image-section .text-box {
  background-color: #ffffff;
  padding: 2rem;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.text-image-section .image-box {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.text-image-section h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 24px;
  /* ungefär 1.5rem */
  color: #39643b;
  text-align: left;
  /* eller center, beroende på design */
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-image-section p {
  color: #444444;
}


.text-image-section .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  /* Se till att bilden inte får egen rundning */
}

/* Mobil: stapla */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    border-radius: 12px;
    /* Rundning på hela sektionen även i mobil */
  }

  .text-image-section .text-box,
  .text-image-section .image-box {
    flex: none;
    width: 100%;
    border-radius: 0;
    /* Nollställ rundning på barn när staplade */
  }

  .text-image-section .text-box {
    padding-bottom: 1.5rem;
  }

  .text-image-section .image-box img {
    height: auto;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }

  .text-image-section .text-box {
    flex: none;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
  }

  .text-image-section .image-box {
    flex: none;
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
  }
}



.calculator-section .image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.192), rgba(0, 0, 0, 0.247)), url('/Assets/IMG/cover.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: darken;
}


.calculator {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  max-width: 300px;
  width: 80%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calculator h3 {
  margin-top: 0;
}

#bananaSlider {
  width: 100%;
  margin: 1rem 0;
}

.calculator-result {
  font-weight: bold;
  font-size: 1.2rem;
}

#moneyExplosionContainer {
  position: relative;
  width: 100%;
  height: 0;
}

@keyframes explode {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.5); }
}

.money-emoji {
  position: absolute;
  pointer-events: none;
  font-size: 1.5rem;
  animation: explode 1s ease-out forwards;
}






.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
  font-size: 15px;
  color: #615534;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-text {
  position: relative;
}

.link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  /* Placera precis under texten */
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #615534;
  transition: width 0.3s ease;
}

.visit-link:hover,
.visit-link:focus {
  color: #252525;
  outline: none;
}

.visit-link:hover .link-text::after,
.visit-link:focus .link-text::after {
  width: 100%;
}



/* VISIT LINK NR 2 */

.visit-link2 {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
  color: #615534;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;

  /* Lägg till dessa två rader: */
  left: 50%;
  transform: translateX(-50%);
}

.link-text2 {
  position: relative;
}

.link-text2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  /* Placera precis under texten */
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #615534;
  transition: width 0.3s ease;
}

.visit-link2:hover,
.visit-link2:focus {
  color: #615534;
  outline: none;
}

.visit-link2:hover .link-text::after,
.visit-link2:focus .link-text::after {
  width: 100%;
}

.link-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}






.partners .section-title {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  text-align: center;
  font-size: 23px;
  font-weight: 700;
}

.carousel {
  max-width: 800px;
  width: 100%;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

@media (min-width: 1024px) {
  .carousel {
    width: 50%;
  }
}

.carousel-track {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.carousel-track img {
  flex: 0 0 100%;
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  margin: 0 auto;
  filter: grayscale(30%);
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.3s, transform 0.3s;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.15);
  border: none;
  color: #333;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  user-select: none;
  transition: background 0.3s ease;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}






/* Sätt en min-height för kartan i .image-box och #map */
.text-image-section .image-box {
  min-height: 300px;
  /* eller 400px, justera efter behov */
}