/* ==========================================================================
   PROFOUND-STYLE NAVBAR COMPONENT (SPIN & SWING)
   ========================================================================== */

:root {
  --nav-font-body: 'Bahnschrift SemiCondensed', 'Bahnschrift SemiLight SemiCondensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-font-headline: 'Eaglore', sans-serif;
  --nav-primary-blue: #0060e6;
  --nav-primary-blue-hover: #004fc2;
  --nav-border: #e2e8f0;
  --nav-bg: rgb(245 245 245);
}

.profound-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--nav-bg);
  /* backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); */
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  font-family: var(--nav-font-body);
}

/* .nav-inner-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
} */

.nav-inner-container {
  /* max-width: 1380px; */
  max-width: 1400px;
  margin: 0 auto 0 60px;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-nav-logo-img {
    height: 62px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Center Navigation Menu */
.nav-center-menu {
  display: flex;
  align-items: center;
}

.nav-items-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--nav-font-body);
    line-height: 1.2;
}

.nav-link:hover,
.nav-item.active>.nav-link,
.nav-item:hover>.nav-link {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.dropdown-chevron {
  font-size: 15px;
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}

.nav-item:hover .dropdown-chevron,
.nav-item.active .dropdown-chevron {
  transform: rotate(180deg);
  color: #0f172a;
}

/* ==========================================================================
   DROPDOWN MENUS (Clean Minimalist Card Style matching reference UI)
   ========================================================================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  z-index: 1050;
  padding-top: 8px; /* Hover bridge between trigger button and menu */
}

.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu-inner {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 22px 28px 22px 24px;
  min-width: 220px;
  width: max-content;
  max-width: 280px;
}

/* Category header matching 'Resources' in reference image */
.dropdown-category-title,
.dropdown-col-header {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 14px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Vertical list container */
.dropdown-simple-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Dropdown individual link matching reference items (Blog, Case Studies, etc.) */
.dropdown-simple-item {
  display: block;
  padding: 8px 10px;
  margin: 0 -10px;
  color: #111827;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  line-height: 1.35;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.dropdown-simple-item:hover {
  color: #0060e6;
  background-color: #f8fafc;
  transform: translateX(3px);
}

/* Right CTA Button */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-profound-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  white-space: nowrap;
}

.btn-profound-cta:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
}

.btn-profound-cta i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.btn-profound-cta:hover i {
  transform: translateX(3px);
}

/* Mobile Menu Toggle */
.mobile-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-toggle-btn:hover {
  background: #e2e8f0;
}

.mobile-toggle-btn .menu-close-icon {
  display: none;
}

.mobile-toggle-btn.active .menu-open-icon {
  display: none;
}

.mobile-toggle-btn.active .menu-close-icon {
  display: block;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 20px 40px;
  border-top: 1px solid #e2e8f0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s;
}

.mobile-link:hover,
.mobile-link.active {
  background: #f1f5f9;
  color: #0060e6;
}

.mobile-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.accordion-arrow {
  font-size: 18px;
  color: #64748b;
  transition: transform 0.25s ease;
}

.mobile-accordion.open .accordion-arrow {
  transform: rotate(180deg);
  color: #0f172a;
}

.mobile-accordion-body {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 10px 18px;
}

.mobile-accordion.open .mobile-accordion-body {
  display: flex;
}

.mobile-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #475569;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.mobile-sublink:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.mobile-drawer-footer {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.btn-mobile-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

@media (max-width: 980px) {
  .nav-inner-container {
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    gap: 12px;
  }

  .site-nav-logo-img {
    height: 50px;
  }

  .nav-center-menu {
    display: none;
  }

  .btn-profound-cta {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .mobile-nav-drawer {
    display: block;
    top: 64px;
  }
}

@media (max-width: 480px) {
  .nav-inner-container {
    padding: 0 14px;
    height: 60px;
  }

  .site-nav-logo-img {
    height: 44px;
  }

  .mobile-toggle-btn {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .mobile-nav-drawer {
    top: 60px;
    padding: 16px 14px 36px;
  }

  .mobile-link,
  .mobile-accordion-header {
    padding: 10px 12px;
    font-size: 15px;
  }

  .mobile-sublink {
    padding: 8px 12px;
    font-size: 14px;
  }
}