/* General styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.logo {
  width: 35%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  margin-top: 0;
  border-radius: 100px;
}

/* Booking-seksjon */
.booking-description {
  width: 400px; /* samme bredde som about-container */
  max-width: 90%; /* skalerer på mindre skjermer */
  margin: 0 auto; /* midtstiller containeren */
  text-align: left; /* teksten starter venstre */
  line-height: 1.6;
  padding-left: 20px; /* luft på venstre side */
  padding-right: 20px; /* luft på høyre side for rett kant */
  box-sizing: border-box;
}

.booking-image-wrapper {
  text-align: center;
  margin-top: 15px;
}

.booking-image {
  max-width: 400px; /* gjør bildet smalere */
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin: 0 auto; /* sentrer bildet */
  display: block;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: auto;
}

/* Lightbox bilde – større */
.lightbox-content {
  width: 1200px; /* fast bredde, større enn original */
  height: auto;
  max-width: 95vw; /* skalerer hvis skjermen er mindre */
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Close-knapp */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #bbb;
}

/* Bilde under kalender */
.booking-image-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.booking-image {
  cursor: pointer;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.booking-description {
  margin-top: 1rem;
  text-align: center;
  line-height: 1.6;
}

/* Navigation styles */
.menu-container {
  margin-top: 0;
  margin-bottom: 0;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-buttons a {
  position: relative;
  text-decoration: none;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  background-color: #333;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.nav-buttons a.active-button {
  background-color: #024011;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.nav-buttons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
  z-index: 1;
}

.nav-buttons a:hover {
  background-color: #668d5e;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.nav-buttons a:hover::before {
  left: 100%;
}

.nav-buttons a:active {
  transform: scale(0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.website-buttons {
  background-color: #333;
}

.website-buttons:hover {
  background-color: #555;
}

/* Accessibility focus state */
.nav-buttons a:focus {
  outline: 2px solid rgba(102, 141, 94, 0.5);
  outline-offset: 4px;
}

/* Heading styles */
h2 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Paragraph styles */
p {
  text-align: center;
  max-width: 600px;
  margin: auto;
}

/* Section padding */
.section-padding {
  padding: 2rem 0;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* About section */
.about-container p {
  width: 600px;
  max-width: 90%;
  margin: 0 auto 20px auto;
  padding-left: 20px;
  text-align: left;
}

/* Carousel styles */
.carousel {
  position: relative;
  width: 90%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  margin-top: 2%;
}

.carousel-item {
  text-align: center;
}

.carousel-image-wrapper {
  position: relative;
  display: block;
}

.carousel-image-wrapper::after {
  content: "\002B";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-image-wrapper:hover::after {
  opacity: 1;
}

.carousel-item img {
  width: 60% !important;
  height: auto !important;
  display: inline-block;
  margin: 0 auto;
  margin-top: 25px;
  border-radius: 2%;
  cursor: pointer;
}

.carousel-control-prev,
.carousel-control-next {
  width: 2.5rem;
  height: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: grey;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
}

.carousel-indicators {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel-indicators li {
  background-color: grey;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  transition: background-color 0.3s ease;
}

.carousel-indicators .active {
  background-color: darkgrey;
}

/* Banner styles */
.banner {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* sentrer horisontalt */
}

.banner img {
  width: 80%;
  height: auto;
  display: block;
  margin: 2% 0 4% 0; /* topp 2%, bunn 4% for mer luft */
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 2%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 98%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 2%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 98%
  );
}

/* Product card section */
.section-cards {
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.custom-card {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  margin: 0 auto 2rem auto;
  text-align: left;
  width: 100%;
  max-width: 800px;
}

.contact-card {
  max-width: 300px;
  margin: 0 auto; /* senterer kortet under de andre */
  width: 100%;
}

.video-card {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-card h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #024011;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}

.video-card video {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  margin-top: 1rem;
  outline: none;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #f0f0f0, #eaeaea);
}

.custom-card h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #024011;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}

.custom-card p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Card content flex layout */
.custom-card .card-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.custom-card .card-content ul {
  flex: 1 1 60%;
  margin: 0;
  padding-left: 20px;
}

/* Gjør alle bilder i .stacked-images klikkbare med hånd-cursor */
.stacked-images img,
.card-side-image,
.booking-image {
  cursor: pointer;
  transition: transform 0.3s ease; /* valgfritt: fin liten effekt ved hover */
}

.stacked-images img:hover,
.card-side-image:hover,
.booking-image:hover {
  transform: scale(1.05); /* valgfritt: zoom-effekt på hover */
}

.custom-card .stacked-images {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-card .stacked-images img,
.card-side-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

/* Check mark for list items using Font Awesome */
.custom-card ul li {
  position: relative;
  padding-left: 1.5em;
  list-style: none;
  line-height: 1.8; /* Increased distance between lines */
  margin-bottom: 6px; /* More air between lines */
}

.custom-card ul li:before {
  content: "✔";
  font-weight: 900;
  color: #046e1c;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.2rem;
  line-height: 1;
}

/* Narrow card for Kontakt */
.narrow-card {
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer styles */
footer {
  background-color: #333;
  padding: 50px 0;
  color: white;
  width: 100%;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  gap: 150px;
}

footer .social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 200px;
}

footer .social-icons p {
  margin: 0;
  font-size: 1rem;
}

footer .social-icons a {
  text-decoration: none;
  color: #fff;
  font-size: 34px;
}

footer .social-icons a:hover {
  color: #046e1c;
}

footer .copyright p {
  margin: 0;
  font-size: 1rem;
}

.copyright {
  margin-right: 200px;
}

.booking-cards-row {
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

/* Footer styles */
footer {
  background-color: #333;
  padding: 50px 0;
  color: white;
  width: 100%;
}

footer .container {
  display: flex;
  justify-content: space-between; /* Push items to edges */
  align-items: center; /* Align vertically */
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  gap: 150px; /* Adjust this value as needed */
}

footer .social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 200px; /* 👈 This moves it inward */
}

footer .social-icons p {
  margin: 0; /* Remove default margin */
  font-size: 1rem;
}

footer .social-icons a {
  text-decoration: none;
  color: #fff;
  font-size: 34px;
}

footer .social-icons a:hover {
  color: #046e1c;
}

footer .copyright p {
  margin: 0;
  font-size: 1rem;
}

.copyright {
  margin-right: 200px;
}

/* Responsive adjustments (replaces previous responsive blocks) */

/* Basis for .section-cards (bedre grunnoppsett) */
.section-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 20px;
}

/* Catch-all for litt større skjermer (desktop -> small desktop) */
@media (max-width: 1200px) {
  .custom-card {
    max-width: 800px;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .video-card {
    max-width: 500px;
  }
}

/* Viktig: fang området 1024px -> 815px (løser "mellomrom"-problemet) */
@media (max-width: 1024px) {
  .section-cards {
    padding: 0 18px;
  }

  .custom-card {
    max-width: 700px;
    width: 100%;
    padding: 1.6rem;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .video-card {
    max-width: 550px;
  }

  /* kort-innhold: tekst + bilder ved siden av hverandre, men med smalere bildekolonne */
  .custom-card .card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .custom-card .card-content ul {
    flex: 1 1 auto;
    min-width: 220px;
    padding-left: 20px;
  }

  .custom-card .stacked-images {
    flex: 0 0 300px; /* fast bildeside på medium skjerm */
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Små-desktop / store tablet -> 992px og ned */
@media (max-width: 992px) {
  .custom-card {
    max-width: 720px;
    padding: 1.4rem;
  }

  .custom-card .stacked-images {
    flex: 0 0 280px;
    max-width: 280px;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .section-cards {
    max-width: 700px;
  }

  .video-card {
    max-width: 500px;
    margin-top: 3rem;
  }
}

@media (min-width: 931px) {
  .booking-cards-row {
    flex-direction: row;
    align-items: stretch;
  }

  .booking-cards-row .custom-card {
    flex: 1 1 0;
    max-width: 50%;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .video-card {
    max-width: 500px;
  }
}

/* Mellomklasse for 900 -> 768 (gir gradvis overgang) */
@media (max-width: 900px) {
  .custom-card {
    max-width: 680px;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .custom-card .stacked-images {
    flex: 0 0 240px;
    max-width: 240px;
  }

  .video-card {
    max-width: 450px;
    margin-top: 3rem;
  }
}

/* @media (min-width: 769px) {
  .booking-cards-row {
    flex-direction: row;
    align-items: stretch;
  }
  .booking-cards-row .custom-card {
    flex: 1 1 0;
    max-width: 50%;
  }
} */

/* Tablet & mobil (endre til kolonne under 768px) */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .logo {
    width: 55%;
  }

  h2 {
    font-size: 2rem;
  }

  .custom-card {
    padding: 1rem;
    max-width: 98vw;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .video-card {
    max-width: 400px;
    margin-top: 3rem;
  }

  /* STACK: tekst over bilder */
  .custom-card .card-content {
    flex-direction: column;
    gap: 16px;
  }

  .custom-card .stacked-images {
    width: 100%;
    flex: none;
    max-width: 100%;
  }

  .booking-description {
    width: 90%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .container {
    padding: 0 10px;
    max-width: 100%;
  }

  .section-cards {
    padding: 0 5px;
    gap: 1rem;
  }

  .banner img {
    width: 80%;
    max-width: 100%;
    margin: 2% auto 4% auto;
    display: block;
  }

  footer .container {
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center items horizontally */
    gap: 10px; /* Optional: Adjust the gap between stacked elements */
  }

  footer .social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0; /* 👈 RESET the left margin here! */
  }

  .social-icons {
    margin-left: 0; /* Reset the left margin for small screens */
    margin-right: 0; /* Reset the right margin */
    justify-content: center; /* Center the content */
    text-align: center; /* Align text to the center */
  }

  .copyright {
    margin-right: 0; /* Reset the right margin */
  }
}

/* Mellom 600px og 481px (presis styling for dette området) */
@media (max-width: 600px) and (min-width: 481px) {
  .about-container {
    width: 95%;
    padding: 0 10px;
  }

  .about-container p {
    width: 100%;
    padding: 0 10px;
    margin-bottom: 18px;
    text-align: left;
  }

  .banner img {
    width: 90%;
    margin: 2% auto 4% auto;
    display: block;
  }

  h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .custom-card {
    max-width: 95%;
    padding: 1rem;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .video-card {
    max-width: 400px;
    margin-top: 3rem;
  }

  .section-cards {
    gap: 1rem;
    padding: 0 5px;
  }
}

/* Små mobiler */
@media (max-width: 480px) {
  .logo {
    width: 75%;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Nav knapper vertikalt (du ba om dette) */
  .nav-buttons {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  .nav-buttons a {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .custom-card {
    padding: 0.7rem;
    max-width: 100vw;
  }

  .contact-card {
    max-width: 300px;
    margin: 0 auto; /* senterer kortet under de andre */
    width: 100%;
  }

  .video-card {
    max-width: 385px;
    margin-top: 3rem;
  }

  .container {
    padding: 0 4px;
    max-width: 100%;
  }

  .section-cards {
    padding: 0 2px;
    gap: 0.5rem;
  }

  .booking-description {
    width: 95%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .banner img {
    width: 80%;
    margin: 2% auto 4% auto;
    display: block;
  }

  .about-container {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .about-container p {
    width: 100%;
    padding: 0 10px;
    margin: 0 0 20px;
    box-sizing: border-box;
    text-align: left;
  }
}
