/* ==========================================================================
   Navigation
   Measurements from DOM map: .framer-13skhen / .framer-b076xi
   1377px wide, 40px tall, sits 24px from top+left, not sticky
   ========================================================================== */

.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  padding: 20px var(--page-padding) 0;
  pointer-events: none;
}

.nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1377px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  pointer-events: auto;
}

.nav__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 6px 18px;
  border: 1px solid rgba(39, 39, 39, 0.08);
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(39, 39, 39, 0.06);
}

/* ---------- Left side: brand ---------- */

.nav__left {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  flex: 0 1 50%;
  height: 36px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__brand-name {

  font-size: var(--nav-brand-font-size);        /* 16px */
  font-weight: var(--nav-brand-font-weight);     /* 500 */
  line-height: 19.2px;
  color: var(--nav-brand-color);
  text-decoration: none;
}

.nav__brand-descriptor {

  font-size: var(--nav-subtitle-font-size);      /* 12px */
  font-weight: var(--font-weight-regular);       /* 400 */
  line-height: var(--line-height-base);           /* 1.2 */
  color: var(--color-text-secondary);
}

/* ---------- Right side: links + pill ---------- */

.nav__right {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  flex: 0 1 50%;
  height: auto;
}

.nav__link {

  font-size: var(--nav-link-font-size);          /* 14px */
  font-weight: var(--nav-link-font-weight);      /* 500 */
  line-height: 16px;
  color: var(--nav-link-color);
  text-decoration: none;
  transition: var(--transition-color);
}

.nav__link:hover {
  text-decoration: underline;
}

/* ---------- Availability pill ---------- */

.nav__pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--pill-gap);                           /* 8px */
  padding: var(--pill-padding);                   /* 2px 24px 2px 12px */
  height: var(--pill-height);                     /* 40px */
  background: var(--pill-bg);                     /* #fff */
  border-radius: var(--pill-radius);              /* 40px */
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav__pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(39, 39, 39, 0.08);
}

.nav__pill-dot {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__pill-dot::before {
  content: "";
  display: block;
  width: var(--pill-dot-size);                    /* 8px */
  height: var(--pill-dot-size);
  background: var(--pill-dot-color);              /* #2da677 */
  border-radius: var(--radius-full);
}

.nav__pill-text {

  font-size: var(--pill-font-size);               /* 14px */
  font-weight: var(--pill-font-weight);           /* 500 */
  color: var(--pill-text-color);
  line-height: 20px;
}

.nav__pill--contact {
  padding: 0 18px;
}

main > section[id],
main > footer[id] {
  scroll-margin-top: 104px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1099.98px) {
  .nav-wrapper {
    padding-top: 16px;
  }

  .nav__inner {
    gap: 16px;
    padding-inline: 16px;
  }

  .nav__right {
    gap: 24px;
  }

  .nav__pill {
    padding: 2px 16px 2px 10px;
  }
}

@media (max-width: 639.98px) {
  main > section[id],
  main > footer[id] {
    scroll-margin-top: 92px;
  }

  .nav-wrapper {
    padding-top: 12px;
  }

  .nav__right {
    gap: 16px;
  }

  .nav__pill {
    padding: 2px 12px 2px 8px;
  }

  .nav__pill-text {
    font-size: 12px;
  }
}

@media (max-width: 519.98px) {
  .nav {
    height: auto;
    min-height: 44px;
    overflow: visible;
  }

  .nav__inner {
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .nav__left {
    flex: 1 1 auto;
  }

  .nav__right {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Ensure touch targets meet 44px minimum */
  .nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
  }

  .nav__pill {
    flex: 0 0 auto;
    min-height: 44px;
    height: 44px;
  }
}
