/********************************************
  1) Navbar & Offcanvas Background (all sizes)
********************************************/
nav.navbar,
.offcanvas {
  background-color: var(--beige) !important;
}


/*Logo centering on mobile, left-align on desktop*/
nav.navbar {
    position: relative;
  }
.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0; /* override any auto-margins */
  }
.navbar-nav .nav-link,
.offcanvas .nav-link {
  color: var(--white) !important;
  transition: font-size 0.15s ease, font-weight 0.15s ease, color 0.15s ease;
}
#offcanvasMenuLabel.offcanvas-title {
  color: #fff !important;
}



/* on hover or focus, bump weight and change to brown */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus {
  color: var(--brown) !important;
  font-weight: 600;
  /* optionally tweak size, e.g.: */
  /* font-size: 1.05em; */
}
/*Offcanvas toggler & panel: mobile only*/
@media (min-width: 992px) {
  .btn[data-bs-toggle="offcanvas"],
  .offcanvas {
    display: none !important;
  }
}

/*Desktop nav-links inline + white/brown colors*/
@media (min-width: 992px) {
  .navbar-nav.d-lg-flex .nav-link {
    color: var(--white) !important;
    padding: 0.5rem 0.75rem;
    transition: color 0.15s ease, font-size 0.15s ease;
  }
  .navbar-nav.d-lg-flex .nav-link:hover,
  .navbar-nav.d-lg-flex .nav-link:focus {
    color: var(--brown) !important;
  }
}

/*“Log In” Button Styles*/
@media (max-width: 991.98px) {
  .btn-primary {
    background-color: var(--orange) !important;
    color: var(--white) !important;
    border: 2px solid var(#e18733) !important;
  }
}

/* DESKTOP (≥992px): brown stroke + text; on hover fill brown */
@media (min-width: 992px) {
  .btn-primary {
    background-color: transparent !important;
    color: var(--orange) !important;
    border: 2px solid var(--orange) !important;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .btn-primary:hover,
  .btn-primary:focus {
    background-color: var(--orange) !important;
    color: var(--white) !important;
    border-color: #e18733 !important;
  }
}



/*******************************
 
        GENDAN KONTO OVERLAY

 ******************************/
 .gendan-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.gendan-content{
  background: white;
  padding: 30px;
  padding-top: 50px; 
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
}


/*******************************
 
        style-hjem 

 ******************************/

/* Make the page fill the viewport and remove default margins */
html, body {
  height: 100%;
  margin: 0;
}

/* Ensure <main> is the stacking context */
main {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}


/* 1) Background video at the lowest layer (z-index: 1) */
.container-bghjem {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.container-bghjem video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2) Semi-transparent overlay (z-index: 2) */
.container-overlayhjem {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* adjust the alpha for lighter/darker */
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* 3) Title & button content on top (z-index: 3) */
.container-titelhjem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: #fff; /* make sure text is readable on video */
  gap: 1rem;
}



.container-titelhjem h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
}

/* Bootstrap’s .btn classes will handle the button styling,
   but you can add spacing if you like: */
.container-titelhjem .btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
}


/****************************


      style-omos


***************************/

/* 1) Global section margins */
section {
  margin-left: 150px;
  margin-right: 150px;
  margin-top: 50px;
  margin-bottom: 50px;
  padding-bottom: 150px;
}
@media (max-width: 768px) {
  section {
    margin: 50px;
  }
}
.container-overlaygrey {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.06); /* light grey */
  z-index: 2; /* beneath .container-titelhjem (z-index 3) */
  pointer-events: none; /* allow buttons/text to be clickable */
}

/* 2) About section: image left, text right */
.about-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

.about-section__image img {
  width: 100%;
  height: auto;
  
}
.about-section__content h2 {
  margin-top: 0;
  margin-bottom: 30px;
}

/* 3) Contact section: info left, form right */
.contact-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-evenly;
  gap: 2rem;
}
.contact-section__info h2 {
  margin-top: 0;
}

/* 4) Ensure text is left-aligned */
.about-section__content,
.contact-section__info {
  text-align: left;
}
@media (max-width: 992px) {
  .contact-section {
    flex-direction: column;
  }
  /* give a little breathing room between the two blocks */
  .contact-section__form {
    margin-top: 2rem;
  }
  .about-section {
    flex-direction: column;
  }
  /* add space between the image and the text */
  .about-section__content {
    margin-top: 2rem;
  }
}
