
/* --- NAVBAR STYLES --- */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 100;
}

/* NEW: This class gets added by JS to solve layering issues */
.navbar.navbar-on-top {
  z-index: 110;
}

.navbar-brand svg {
  height: 50px;
  width: auto;
}

#navbar-logo {
  width: 60px;
  height: auto;
  margin: 3px 8px 0 0;
  transition: all 0.4s ease;
}

/* Custom style to make Bootstrap's toggler icon white */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-dark .navbar-toggler {
  /* border-color: rgba(255,255,255,0.2); */
  border: 1px solid white; /* Change border color */
  padding: 0rem 0.2rem;
  background-color: rgba(0,0,0,0);
  border-radius: 5px;
}

/* this should look like the WordPress toggle button */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-dark .navbar-toggler {
/*  background-color: #d61f42;   /* Red background */
  border: none;                /* No border */
  padding: 0.25rem 0.5rem;      /* Even padding */
  border-radius: 0;            /* Square corners */
  width: 35px;
  height: 35px;
  /*
  display: flex;
  align-items: center;
  justify-content: center;
  */
}
/*---------------------------------------------------*/

/* In your CSS file */
.navbar-custom-bg {
  /* background-color: rgb(195, 6, 6); */

  /* Add these lines for the SVG background */
  background-image: url('../images/hero/hero.webp');
  background-size: cover; /* Or 'contain', '100%', etc. */
  background-position: center;
  background-repeat: no-repeat;
  /* ...other navbar styles... */
  background-position: center top; 

  /* This positions the image in the horizontal center, 
      and 50px down from the top edge of the navbar. */
  background-position: center -110px; 

/*    background-position: center 50px; */
    /* You can mix keywords and pixel values. For example, 
     * left 20px top 50px would position the image 20px from 
     * the left and 50px from the top. It gives you very 
     * precise control over the background's placement. 
     */
}

.navbar-no-bg {
  background-color: transparent;
}
.navbar-toggler:hover {
  background-color: black;
  background-color: #827020;
  opacity: 0.6;
}
.navbar-toggler:focus {
  box-shadow: none;
}
/* In your CSS file or <style> block */
.nav-link.custom-link {
  color: white;
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-right: 20px;
  transition: all 0.4s ease;
}
.nav-link.custom-link:hover {
  background-color: #4f4f4f;
  background-color: #c8ae5f;
  text-decoration: none;
  opacity: 1;
}

.navbar-collapse {
  transition: none !important;
}



@media (min-width: 360px) {
  #navbar-logo {
    width: 70px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

@media (min-width: 480px) {
  #navbar-logo {
    width: 70px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}


/* NEW: Styles for the expanded mobile menu */
@media (max-width: 575.98px) {
  .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggler-icon {
    margin: auto;
  }

  .navbar-collapse.show {
    background-color: rgba(0, 0, 0, 0.75); /* Dark, semi-transparent background */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    margin: 0.5rem -0.5rem -0.5rem; /* Fills the container padding */
    padding: 1rem;
    border-radius: 0;
    margin-top: 0.5rem;

    /* Use CSS calc() to perfectly counteract the container padding */
    margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem));
    margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
    margin-top: 0.5rem;
    padding: 1rem var(--bs-gutter-x, 0.75rem); /* Add padding back to align content */
    border-radius: 0; /* No radius on a full-width element */       
    z-index: 102; /* This is the key line */
    transition: all 0.4s ease;
  }

  /* Style for nav link hover ONLY when mobile menu is open */
  .navbar-collapse.show .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Adds a subtle white highlight */
    border-radius: 0.25rem;
    border-radius: 0;
  }
}

/* UPDATED Responsive Adjustments (Mobile-First) */
@media (min-width: 576px) {
  #navbar-logo {
    width: 80px;
  }
  .nav-link.custom-link {
    color: #333333; /* white;*/
    font-size: 1rem;
    font-weight: 700;
    padding: 3px 30px;
    margin-left: 10px;
    margin-right: 0px;
  }
  .nav-link.custom-link:hover {
    background-color: #c8ae5f;
    background-color: #D4AF37;
    background-color: #827020;
    color: white;
    font-weight: 700;
    text-decoration: none;
    opacity: 1;
  }
  /* a.nav-link.custom-link:last-child {
    padding-right: 0;
    margin-right: 0;
  } */
  /* .navbar-nav .nav-link:last-child {
    margin-right: 0;
    padding-right: 0;
  } */
  .navbar-nav .nav-item:last-child .nav-link {
    margin-right: 0;
    padding-right: 0;
  }

  .navbar-collapse {
    background-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  #navbar-logo {
    width: 90px;
    margin-top: 10px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #navbar-logo {
    width: 100px;
    margin-top: 10px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 1300px) {
  #navbar-logo {
    width: 12%;
  }
  .nav-link.custom-link {
    font-size: 1.3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 2100px) {
  #navbar-logo {
    width: 20%;
  }
  .nav-link.custom-link {
    font-size: 1.5rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {

  #navbar-logo {
    width: 60px;
  }

}