/* ============================================================
   POSTLY — SHARED STATIC LANDING NAVBAR
   public/styling/landing-navbar.css

   STATIC NAV ORDER:
   About
   Features
   Use Cases
   Pricing

   USED BY:
   /about
   /features
   /pricing
   /use-cases
   /solo-founders
   /service-professionals
   /students
   /creators

   IMPORTANT:
   This file controls the NAVBAR ONLY.
   Do not put page-specific body styling here.
============================================================ */

/* ============================================================
   PAGE WIDTH STABILITY
============================================================ */

html {
  scrollbar-gutter: stable;
}

/* ============================================================
   NAVBAR SHELL
============================================================ */

.navbar-container {
  position: relative;
  z-index: 1000;

  width: 100%;
  min-height: 70px;

  padding: 0 20px;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: #f4d03f;

  border-bottom: 1px solid #d9b924;

  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
}

/* ============================================================
   BRAND
   LOGO + POSTLY TEXT
============================================================ */

.navbar-logo-container {
  display: inline-flex;
  align-items: center;

  flex: 0 0 auto;

  color: #111111;

  text-decoration: none;

  cursor: pointer;
}

.navbar-logo-content {
  display: flex;
  align-items: center;

  gap: 14px;
}

.company-logo {
  display: block;

  width: 30px;
  height: 30px;

  flex: 0 0 auto;

  object-fit: contain;
}

.company-logo-text {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: #111111;

  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;

  font-size: 18px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 0;

  font-style: normal;

  text-transform: none;

  white-space: nowrap;
}

.navbar-logo-container:hover .company-logo-text {
  text-decoration: underline;

  text-decoration-thickness: 1px;

  text-underline-offset: 4px;
}

/* ============================================================
   RIGHT SIDE
============================================================ */

.navbar-right-container {
  min-width: 0;

  margin-left: auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 28px;
}

/* ============================================================
   PRIMARY NAVIGATION

   IMPORTANT:
   Natural-width text links are used instead of fixed-width
   menu boxes.

   Visual spacing:

   About  32px  Features  32px  Use Cases  32px  Pricing
============================================================ */

.navbar-menu-container {
  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex: 0 1 auto;

  gap: 32px;
}

.navbar-menu-item-container {
  width: auto;
  min-height: 70px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-menu-item {
  position: relative;

  min-height: 70px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #111111;

  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;

  font-size: 15px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 0;

  font-style: normal;

  text-decoration: none;

  white-space: nowrap;

  transition:
    opacity 160ms ease,
    color 160ms ease;
}

.navbar-menu-item:hover {
  opacity: 0.58;
}

/* ============================================================
   ACTIVE PAGE
============================================================ */

.navbar-menu-item-active {
  color: #111111;
}

.navbar-menu-item-active::after {
  position: absolute;

  right: 0;
  bottom: 13px;
  left: 0;

  height: 2px;

  background-color: #111111;

  content: "";
}

/* ============================================================
   AUTH ACTIONS
============================================================ */

.navbar-actions-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex: 0 0 auto;

  gap: 18px;

  white-space: nowrap;

  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
}

/* ============================================================
   SIGN IN
============================================================ */

.navbar-sign-in {
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  color: #111111;

  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;

  font-size: 15px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 0;

  font-style: normal;

  text-decoration: none;

  white-space: nowrap;

  transition: opacity 160ms ease;
}

.navbar-sign-in:hover {
  opacity: 0.58;
}

/* ============================================================
   GET STARTED
============================================================ */

.navbar-get-started {
  min-height: 40px;

  padding: 10px 16px;

  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border: 1px solid #111111;
  border-radius: 3px;

  background-color: #111111;

  color: #ffffff;

  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;

  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 0;

  font-style: normal;

  text-decoration: none;

  white-space: nowrap;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.navbar-get-started:hover {
  border-color: #111111;

  background-color: #ffffff;

  color: #111111;
}

/* ============================================================
   KEYBOARD / ACCESSIBILITY
============================================================ */

.navbar-container a:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.34);

  outline-offset: 3px;
}

/* ============================================================
   MEDIUM DESKTOP
============================================================ */

@media (max-width: 1050px) {
  .navbar-right-container {
    gap: 20px;
  }

  .navbar-menu-container {
    gap: 24px;
  }

  .navbar-menu-item-container {
    width: auto;

    padding: 0;
  }

  .navbar-menu-item {
    font-size: 14px;
  }

  .navbar-sign-in {
    font-size: 14px;
  }
}

/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {
  .navbar-container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .navbar-logo-content {
    gap: 11px;
  }

  .company-logo {
    width: 28px;
    height: 28px;
  }

  .company-logo-text {
    font-size: 17px;
  }

  .navbar-right-container {
    gap: 16px;
  }

  .navbar-menu-container {
    gap: 20px;
  }

  .navbar-menu-item-container {
    width: auto;

    padding: 0;
  }

  .navbar-menu-item {
    font-size: 13px;
  }

  .navbar-actions-container {
    gap: 12px;
  }

  .navbar-sign-in {
    font-size: 13px;
  }

  .navbar-get-started {
    padding-right: 13px;
    padding-left: 13px;

    font-size: 12px;
  }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 760px) {
  .navbar-container {
    min-height: 64px;

    padding-right: 16px;
    padding-left: 16px;
  }

  .navbar-logo-content {
    gap: 10px;
  }

  .company-logo {
    width: 27px;
    height: 27px;
  }

  .company-logo-text {
    font-size: 17px;
  }

  /*
    Hide primary marketing navigation.

    Keep:
    - Postly logo
    - Postly text
    - Sign In
    - Get Started
  */

  .navbar-menu-container {
    display: none;
  }

  .navbar-right-container {
    gap: 0;
  }

  .navbar-actions-container {
    display: flex;

    gap: 12px;
  }

  .navbar-sign-in {
    display: inline-flex;

    min-height: 36px;

    font-size: 13px;
  }

  .navbar-get-started {
    display: inline-flex;

    min-height: 36px;

    padding: 8px 12px;

    font-size: 12px;
  }
}

/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 430px) {
  /*
    On very small screens:
    hide Sign In,
    keep Get Started visible.
  */

  .navbar-sign-in {
    display: none;
  }

  .navbar-logo-content {
    gap: 8px;
  }

  .company-logo {
    width: 25px;
    height: 25px;
  }

  .company-logo-text {
    font-size: 16px;
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .navbar-container *,
  .navbar-container *::before,
  .navbar-container *::after {
    transition-duration: 0.01ms !important;
  }
}
