/* navbar.css: Navbar-related styles. */
/*-----------------------------------*\
  #TOPBAR
\*-----------------------------------*/

.top_navbar_style {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  justify-items: center;
  align-content: center;
  align-items: center;
  padding: 5px;
  margin-top: -20px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0px 0px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); */
  border-bottom: 1px solid var(--gold-2);
  margin-bottom: 10px;
  font-family: var(--fontFamily-dm_sans);
}

.header.active .top_navbar_style {
  color: var(--gray-5);
}

.topbar {
  display: none;
}

/*-----------------------------------*\
    #LOGO
\*-----------------------------------*/
.logohover {
  transition: transform 0.8s ease-in-out;
}
.logohover:hover {
  transform: rotate(360deg) scale(1.3); /* Spins 360 degrees and scales up */
}

/*-----------------------------------*\
    #HEADER
\*-----------------------------------*/
.header .btn {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background-color: var(--gray-1);
  opacity: 0.9;

  padding-block: 20px;
  z-index: 4;
  border-block-end: 1px solid transparent;
  transition: var(--transition-1);
}

.header.active {
  padding-block: 20px;
  background-color: var(--white);
  border-color: var(--black-alpha-15);
}

.header.hide {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.header .container {
  padding-inline: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.navbar-transparent {
  background-color: transparent;
}

.navbar-scrolled {
  background-color: var(--white);
  opacity: 0.9;
}

.navbar-scrolled,
.navbar-scrolled .top_navbar_style {
  color: var(--gray-5);
}

/*-----------------------------------*\
    #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  background-color: var(--gray-1);
  top: 0;
  left: -360px;
  bottom: 0;
  max-width: 360px;
  width: 100%;
  padding-inline: 30px;
  padding-block-end: 50px;
  overflow-y: auto;
  visibility: hidden;
  z-index: 2;
  transition: var(--transition-2);
}

.navbar.active {
  visibility: visible;
  transform: translateX(360px);
}

.navbar .logo {
  max-width: max-content;
  margin-inline: auto;
  margin-block-end: 60px;
  margin-top: 20px;
}

.header .btn-secondary {
  color: var(--gold-1);
  background-color: transparent;
  border: 1px solid var(--gold-1);
}

.header .btn-secondary .text {
  color: var(--gold-1);
}

.header .btn-secondary .text-2 {
  color: var(--smoky-black-1);
}

.header .btn-secondary::before {
  background-color: var(--gold-1);
  color: var(--eerie-black-1);
}

.navbar-list {
  border-block-end: 1px solid var(--white-alpha-20);
  margin-block-end: 100px;
}

.navbar-item {
  border-block-start: 1px solid var(--white-alpha-20);
  font-weight: 500;
  color: var(--eerie-black-4);
}

.navbar-link {
  position: relative;
  font-size: var(--fontSize-label-2);
  text-transform: uppercase;
  padding-block: 10px;
  max-width: unset;
}

.navbar-link::after {
  display: none;
}

.navbar-link .span {
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible, .active) .span {
  color: var(--gold-2);
  transform: translateX(20px);
}

.navbar-scrolled .navbar-link:is(:hover, :focus-visible, .active) .span {
  color: var(--gold-2);
}

.navbar-link .separator {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible, .active) .span {
  margin-left: 20px;
}

.navbar-link:is(:hover, :focus-visible, .active) .separator {
  opacity: 1;
  border: 1px solid var(--gold-2);
}

.navbar-title {
  margin-block-end: 15px;
}

.navbar-text {
  margin-block: 10px;
}

.navbar .body-4 {
  color: var(--quick-silver);
}

.navbar .text-center .separator {
  margin-block: 30px;
  margin-inline: auto;
}

.navbar .contact-label {
  margin-block-end: 10px;
}

.navbar::-webkit-scrollbar-thumb {
  background-color: var(--white-alpha-10);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: var(--black-alpha-80);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-2);
  z-index: 1;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

@keyframes menuBtn {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0.5);
  }
}

/* Open/Close Buttons */
.nav-open-btn {
  padding: 12px;
  padding-inline-end: 0;
}

.nav-open-btn .line {
  width: 30px;
  height: 2px;
  background-color: var(--white);
  margin-block: 4px;
  transform-origin: left;
  animation: menuBtn 400ms ease-in-out alternate infinite;
}

.navbar-scrolled .nav-open-btn .line {
  background-color: var(--gray-5);
}

.nav-open-btn .line-2 {
  animation-delay: 150ms;
}

.nav-open-btn .line-3 {
  animation-delay: 300ms;
}

.navbar .close-btn {
  color: var(--white);
  border: 1px solid currentColor;
  padding: 4px;
  border-radius: var(--radius-circle);
  margin-inline-start: auto;
  margin-block: 30px 20px;
}

.navbar .close-btn ion-icon {
  --ionicon-stroke-width: 40px;
}

.navbar .close-btn:is(:hover, :focus-visible) {
  color: var(--gold-1);
}

/*-----------------------------------*\
    #SIDEBAR MENU
\*-----------------------------------*/
.sidebar-link {
  transition: var(--transition-1);
}

.sidebar-link:is(:hover, :focus-visible) {
  color: var(--gold-1);
}

/* --- Responsive Navbar Improvements --- */
@media (max-width: 1000px) {
  .top_navbar_style {
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    font-size: var(--navbar-font-size);
    gap: 4px;
  }
  .top_navbar_style p,
  .top_navbar_style a {
    font-size: var(--navbar-font-size);
    padding: 2px 0;
    text-align: center;
    word-break: break-word;
  }
}
@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    gap: 0;
    padding-inline: 8px;
  }
  .navbar {
    right: -100%;
    left: auto;
    width: 80vw;
    max-width: 350px;
    min-width: 200px;
    padding-inline: 10px;
    padding-block-end: 30px;
    background: #fff;
    color: #222;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    font-size: 1rem;
  }
  .navbar.active {
    right: 0;
    left: auto;
    transform: none;
    visibility: visible;
  }
  .navbar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-block-end: 40px;
    border-block-end: none;
    width: 100%;
  }
  .navbar-item {
    border: none;
    width: 100%;
  }
  .navbar-link {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 16px 0 16px 12px;
    width: 100%;
    min-height: 48px;
    letter-spacing: 0.02em;
    border-radius: 6px;
    margin: 0;
  }
  .navbar-link .span {
    font-size: 1.1rem;
    margin-left: 10px;
  }
  .navbar-link .separator {
    display: none;
  }
  .navbar-link:active, .navbar-link.active {
    background: var(--gold-1, #f5c16c);
    color: #222;
  }
  .close-btn {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    font-size: 1.5rem;
    padding: 8px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
  }
  .nav-open-btn {
    display: block;
    z-index: 1001;
  }
  .btn.btn-secondary {
    font-size: 1rem;
    padding: 10px 18px;
    margin: 10px 0 0 0;
  }
  .navbar .text-center {
    font-size: 0.95rem;
    padding: 10px 0;
  }
}
@media (max-width: 520px) {
  .navbar {
    width: 95vw;
    max-width: 99vw;
    min-width: 140px;
    padding-inline: 4px;
  }
  .navbar-link {
    font-size: 1rem;
    padding: 14px 0 14px 8px;
    min-height: 48px;
  }
  .close-btn {
    font-size: 1.2rem;
    padding: 6px;
  }
  .btn.btn-secondary {
    font-size: 0.95rem;
    padding: 8px 10px;
  }
}
/* NAVBAR VISIBILITY FIX */

.header {
  /* This forces the background to always be white */
  background-color: #ffffff !important;

  /* This forces the navbar to stay on top of all other content */
  z-index: 100 ;
}