/* ==========================================
   DESKTOP STYLES (>992px)
   ========================================== */
.gm-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* High z-index prevents hero overlays from dimming the header */
  padding: 20px 0;
  background: transparent;
}

.gm-nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 993px) {


  .gm-desktop-nav {
    display: flex;
    align-items: center;
    margin: 0 auto; /* Keeps navigation strictly in the center */
  }
  
  .gm-desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  }

  .gm-desktop-nav a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 1001; /* Prevents low-opacity banner overlays from fading link colors */
    /***transition: color 0.3s ease; */

  font-size: 15px;
  transition: var(--gm-transition);
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;

  }

  .gm-desktop-nav a:hover,
  .gm-desktop-nav li.active > a {
    color: var(--gm-orange, #F4A261);
  }

  .gm-desktop-auth {
    display: flex;
    align-items: center;
    gap: 12px;
	margin-left:5em;


  }

  /* Hide all mobile elements on desktop */
  .gm-mobile-toggle,
  .gm-mobile-overlay {
    display: none !important;
  }
}

/* ==========================================
   MOBILE STYLES (<=992px)
   ========================================== */
@media (max-width: 992px) {
  /* Hide desktop navbar on mobile */
  .gm-desktop-nav {
    display: none !important;
  }

.gm-mobile-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    z-index: 100003;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
  }

  .gm-mobile-close:hover {
    color: var(--gm-orange, #F4A261);
  }

  /* Hamburger Toggle Pinning */
  .gm-mobile-toggle {
    display: block;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 100002;
  }

  body.menu-open .gm-mobile-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
  }

  /* Full-Screen Overlay Base */
  .gm-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1b263b; /* Deep Navy Theme */
    z-index: 100001;
    overflow-y: auto;
  }

  /* Active Full-Screen Overlay State */
  .gm-mobile-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px; /* Precise top placement */
  }

  /* Compact Centered Inner Container */
  .gm-mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
  }

  /* Mobile Links Styling */
  .gm-mobile-links {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0; /* Tight spacing directly above buttons */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .gm-mobile-links a {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
  }

  /* Mobile Auth Buttons Group */
  .gm-mobile-auth-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .gm-mobile-auth-group .nav-btn {
    width: 100%;
    text-align: center;
  }
}

/* Lock Page Body Scroll */
body.menu-open {
  overflow: hidden !important;
}
