/* ========================================
   NAVIGATION CSS - PROTECTED RULES
   ========================================
   This file contains all navigation-critical CSS rules
   extracted from webflow.css and note-dock-*.webflow.css
   to ensure mobile navigation always works.
   ======================================== */

/* ========================================
   WEBFLOW NAVIGATION BASE RULES
   ======================================== */

.w-nav {
  position: relative;
  background: #dddddd;
  z-index: 1000;
}

.w-nav:before,
.w-nav:after {
  content: " ";
  display: table;
  grid-column-start: 1;
  grid-row-start: 1;
  grid-column-end: 2;
  grid-row-end: 2;
}

.w-nav:after {
  clear: both;
}

.w-nav-brand {
  position: relative;
  float: left;
  text-decoration: none;
  color: #333333;
}

.w-nav-link {
  position: relative;
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  color: #222222;
  padding: 20px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.w-nav-link.w--current {
  color: #0082f3;
}

.w-nav-menu {
  position: relative;
  float: right;
}

[data-nav-menu-open] {
  display: block !important;
}

.w-nav-dropdown-list {
  position: absolute;
  overflow: hidden;
  display: none;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  position: relative;
}

.w-nav-overlay {
  position: absolute;
  overflow: hidden;
  display: none;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
}

.w-nav-overlay [data-nav-menu-open] {
  top: 0;
}

.w-nav[data-animation='over-left'] .w-nav-overlay {
  width: auto;
}

.w-nav[data-animation='over-left'] .w-nav-overlay,
.w-nav[data-animation='over-left'] [data-nav-menu-open] {
  right: auto;
  z-index: 1;
  top: 0;
}

.w-nav[data-animation='over-right'] .w-nav-overlay {
  width: auto;
}

.w-nav[data-animation='over-right'] .w-nav-overlay,
.w-nav[data-animation='over-right'] [data-nav-menu-open] {
  left: auto;
  z-index: 1;
  top: 0;
}

.w-nav-button {
  position: relative;
  float: right;
  padding: 18px;
  font-size: 24px;
  display: none;
  cursor: pointer;
  color: #222222;
  background: 0 0;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  user-select: none;
}

.w-nav-button:focus {
  outline: 0;
}

.w-nav-button.w--open {
  background-color: #C8C8C8;
  color: white;
}

.w-nav[data-collapse='all'] .w-nav-menu {
  display: none;
}

.w-nav[data-collapse='all'] .w-nav-button {
  display: block;
}

.w--nav-dropdown-open {
  display: block;
}

/* ========================================
   RESPONSIVE NAVIGATION RULES
   ======================================== */

@media screen and (max-width: 991px) {
  .w-nav[data-collapse='medium'] .w-nav-menu {
    display: none;
  }
  .w-nav[data-collapse='medium'] .w-nav-button {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .w-nav[data-collapse='small'] .w-nav-menu {
    display: none;
  }
  .w-nav[data-collapse='small'] .w-nav-button {
    display: block;
  }
  .w-nav-brand {
    padding-left: 10px;
  }
}

@media screen and (max-width: 479px) {
  .w-nav[data-collapse='tiny'] .w-nav-menu {
    display: none;
  }
  .w-nav[data-collapse='tiny'] .w-nav-button {
    display: block;
  }
}

/* ========================================
   NOTEDOCK NAVIGATION SPECIFIC RULES
   ======================================== */

.navbar {
  z-index: 999;
  background-color: var(--color--color--bg--900);
  position: sticky;
  top: 0;
}

.navbar-no-shadow-container {
  z-index: 5;
  background-color: #000000b3;
  background-image: linear-gradient(180deg, var(--color--color--bg--900), var(--color--transparent));
  background-origin: padding-box;
  background-clip: padding-box;
  background-size: auto;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.navbar-wrapper {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.navbar-brand.w--current {
  justify-content: flex-start;
  align-items: center;
  display: block;
}

/* ========================================
   MENU BUTTON AND LOTTIE ANIMATION
   ======================================== */

.menu-button {
  padding: 10px;
}

.menu-button.w--open {
  color: #fff;
  background-color: #0000;
}

.lottie-animation {
  width: 32px;
  height: 32px;
}

/* ========================================
   MOBILE NAVIGATION CONTAINER
   ======================================== */

/* Mobile Navigation Container - Hidden by default */
.mobile-nav-container {
  display: none;
}

/* Mobile Get App Button - Uses existing nav-button component */
.mobile-nav-container .nav-button-wrapper {
  /* No specific styles needed - inherits from nav-button */
}

/* ========================================
   NAVIGATION PROTECTION RULES
   ======================================== */

/* CRITICAL: Ensure hamburger menu is always visible on mobile */
@media screen and (max-width: 991px) {
  .menu-button {
    display: block !important;
  }
  
  .lottie-animation {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
  }
  
  /* Show mobile navigation container */
  .mobile-nav-container {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  /* Make mobile Get App button smaller with custom styling */
  .mobile-nav-container .nav-button {
    padding: 2px;
    border-radius: 1.25rem;
  }
  
  .mobile-nav-container .nav-button-text {
    padding: 0 5px;
    font-size: 14px;
    border-radius: 1.25rem;
  }
}

/* Fallback hamburger icon if Lottie animation fails to load */
.lottie-animation:empty::before {
  content: "☰";
  display: block;
  text-align: center;
  line-height: 32px;
  font-size: 20px;
  color: white;
  font-weight: bold;
}

/* Center the footer logo */
.image-2 {
  display: block;
  margin: 0 auto;
}

/* Logo border-radius override */
.navbar-brand .image {
  border-radius: 0 !important;
}

/* ========================================
   RESPONSIVE NAVIGATION ADJUSTMENTS
   ======================================== */

@media screen and (max-width: 991px) {
  .navbar {
    padding-left: 32px;
    padding-right: 32px;
  }

  .navbar-no-shadow-container {
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
    background-color: #0000;
    background-image: none;
    border-radius: 0;
  }

  .navbar-brand.w--current {
    /* Removed size constraints to match pricing page */
  }

  .menu-button {
    padding: 10px;
  }

  .menu-button.w--open {
    color: #fff;
    background-color: #0000;
  }

  .lottie-animation {
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 767px) {
  .navbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-brand {
    padding-left: 0;
  }

  .navbar-brand.w--current {
    /* Removed size constraints to match pricing page */
  }

  .menu-button {
    padding: 0;
  }
}

@media screen and (max-width: 479px) {
  .navbar-brand.w--current {
    /* Removed size constraints to match pricing page */
  }

  .menu-button {
    padding: 0;
  }
}
