/* ==========================================================================
   NAVIGATION BAR COMPONENT (Inspired by Wehouse.in)
   Sticky header, active tab pills, quick call, and mobile drawer
   ========================================================================== */

.site-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 39, 76, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ==========================================================================
   SCROLLED / MINIMAL-HEIGHT PINNED STRIP
   Keeps the header frozen at the top while drastically slimming thickness
   so users keep maximum focus on page content during scrolling.
   ========================================================================== */
.site-nav.scrolled {
  background: rgba(7, 39, 76, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(250, 99, 51, 0.25);
}

.site-nav.scrolled .nav-inner {
  padding-top: 0.32rem !important;
  padding-bottom: 0.32rem !important;
}

.site-nav.scrolled .brand-logo {
  height: 30px !important;
}

.site-nav.scrolled .nav-tab-link {
  padding: 0.35rem 0.8rem !important;
  font-size: 0.82rem !important;
}

.site-nav.scrolled .nav-phone-btn {
  padding: 0.32rem 0.75rem !important;
  font-size: 0.78rem !important;
}

.site-nav.scrolled .nav-consult-btn {
  padding: 0.36rem 0.95rem !important;
  font-size: 0.8rem !important;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 8px rgba(250, 99, 51, 0.3));
}

/* Navigation Links (Tabs) */
.site-nav .links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  color: #c5d5e6;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}

.nav-tab-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Active Tab State */
.nav-tab-link.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(250, 99, 51, 0.22) 0%, rgba(229, 184, 105, 0.14) 100%);
  border: 1px solid rgba(229, 184, 105, 0.38);
  box-shadow: 0 4px 16px rgba(250, 99, 51, 0.2);
}

.nav-tab-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 18%;
  right: 18%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-gold) 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(229, 184, 105, 0.65);
}

/* Right Navigation Action Area */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.2s ease;
}

.nav-phone-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--accent-gold);
}

.nav-consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7547, #fa6333);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(250, 99, 51, 0.35);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.nav-consult-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(250, 99, 51, 0.5);
  filter: brightness(1.08);
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.nav-mobile-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #ff7547, #fa6333);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.42rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(250, 99, 51, 0.3);
  white-space: nowrap;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  color: #ffffff;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              border-color 0.2s ease;
}

.nav-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Panel Drawer */
.mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #07274c;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.4rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-panel.open {
  display: flex !important;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel .nav-tab-link {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 6px;
}

.mobile-panel .nav-tab-link.active {
  background: rgba(250, 99, 51, 0.2);
  border: 1px solid rgba(250, 99, 51, 0.4);
}

.mobile-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Navigation Breakpoints */
@media (max-width: 1024px) {
  .site-nav .links {
    gap: 0.2rem;
  }
  .nav-tab-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    padding: 0.65rem 1rem;
  }
  .brand-logo {
    height: 36px;
  }
  .site-nav .links,
  .nav-actions {
    display: none !important;
  }
  .nav-mobile-actions {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }

  /* Scrolled minimal thickness on mobile / tablet */
  .site-nav.scrolled .nav-inner {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .site-nav.scrolled .brand-logo {
    height: 24px !important;
  }

  .site-nav.scrolled .nav-toggle {
    min-width: 32px !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 6px !important;
    border-radius: 4px !important;
  }

  .site-nav.scrolled .nav-toggle svg {
    width: 16px !important;
    height: 16px !important;
  }

  .site-nav.scrolled .nav-mobile-call-btn {
    padding: 0.22rem 0.55rem !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0.55rem 0.85rem;
  }
  .brand-logo {
    height: 32px;
  }
  .nav-mobile-call-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.3rem;
  }

  /* Scrolled minimal thickness on compact mobile screens */
  .site-nav.scrolled .nav-inner {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .site-nav.scrolled .brand-logo {
    height: 22px !important;
  }

  .site-nav.scrolled .nav-toggle {
    min-width: 30px !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 5px !important;
    border-radius: 4px !important;
  }

  .site-nav.scrolled .nav-toggle svg {
    width: 15px !important;
    height: 15px !important;
  }
}
