@charset "utf-8";

/* ==========================================================================
   navigation.css - Sticky Header & Navigation Menu
   Uses global :root color tokens from global.css
   ========================================================================== */

/* Fixed Sticky Top Navigation Bar */
#main-nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  z-index: 99999 !important; /* Forces nav above hero banner overlays */
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Inner Navigation Alignment */
.mobile-nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 1rem;
  display: flex;
  flex-direction: column; /* Column on mobile keeps drawer layout stable */
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Mobile Header Bar - Fixes alignment when open */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

.nav-logo-img {
  height: 58px; /* Base mobile height */
  max-height: none;
  width: auto;     
  display: block;
  object-fit: contain;
  transition: height 0.2s ease;
}

/* Hamburger Toggle Button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  padding: 0;
  position: relative;
  z-index: 10;
}

/* Prevent outline artifacts on keyboard ESC / click */
.menu-toggle:focus {
  outline: none;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--text-accent, #2a9d8f);
  outline-offset: 4px;
  border-radius: 2px;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--primary, #2c3531);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  display: block;
  transform-origin: center;
}

/* Force clean return state when closed */
.mobile-nav:not(.nav-open) .hamburger-bar {
  transform: none !important;
  opacity: 1 !important;
}

/* Navigation Links Drawer */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.nav-links li {
  display: block;
  width: 100%;
}

/* Standard Link Mobile Base */
.nav-links a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-muted, #718096);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Link Hover / Active State */
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary, #2c3531);
  background-color: var(--bg-alt, #f4f6f4);
  font-weight: 600;
}

/* Mobile CTA Button */
.nav-links .nav-book-btn {
  margin: 12px 24px 20px 24px;
  padding: 12px 20px;
  background-color: var(--text-accent, #2a9d8f);
  color: #ffffff !important;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: none !important;
}

.nav-links .nav-book-btn:hover {
  background-color: var(--text-accent-hover, #207a6f) !important;
  color: #ffffff !important;
}

/* Mobile Menu Open Animation */
.mobile-nav.nav-open .nav-links {
  max-height: 500px;
  opacity: 1;
}

/* Precise Symmetrical 'X' Animation */
.mobile-nav.nav-open .hamburger-bar:nth-child(1) { 
  transform: translateY(9px) rotate(45deg); 
}

.mobile-nav.nav-open .hamburger-bar:nth-child(2) { 
  opacity: 0; 
  transform: scaleX(0);
}

.mobile-nav.nav-open .hamburger-bar:nth-child(3) { 
  transform: translateY(-9px) rotate(-45deg); 
}

/* --------------------------------------------------------------------------
   DESKTOP LAYOUT OVERRIDES (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1.5rem;
  }

  .nav-header {
    width: auto;
    padding: 0; 
  }

  /* Large Prominent Desktop Logo */
  .nav-logo-img {
    height: 90px;
    max-height: 110px;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    width: auto;
    max-height: none;
    opacity: 1;
    overflow: visible;
    gap: 4px;
  }

  .nav-links li {
    width: auto;
  }

  /* Desktop Link Styling */
  .nav-links a {
    padding: 10px 18px; 
    font-size: 0.88rem;
  }

  /* Desktop Link High-Attention Focus Hover */
  .nav-links a:not(.nav-book-btn):hover,
  .nav-links a:not(.nav-book-btn).active {
    color: var(--text-accent, #2a9d8f);
    background-color: rgba(42, 157, 143, 0.08); /* Soft sea-teal fill */
    font-weight: 600;
    transform: translateY(-1px);
  }

  /* Desktop CTA Button */
  .nav-links .nav-book-btn {
    margin: 0 0 0 12px; 
    padding: 10px 20px;   
    font-size: 0.8rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .nav-links .nav-book-btn:hover {
    transform: translateY(-1px) !important;
  }
}