/* SydneyLove clean navigation patch
   Keeps desktop navigation cleaner and makes mobile/tablet usable. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(6, 47, 69, 0.08);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: clamp(190px, 18vw, 265px);
  max-height: 58px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.7vw, 24px);
  min-width: 0;
}

.primary-nav a.active,
.nav-more-menu a.active {
  color: #a41157;
}

.primary-nav a,
.nav-more-button {
  color: #062f45;
  text-decoration: none;
  font-weight: 850;
  font-size: clamp(0.92rem, 0.95vw, 1rem);
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
}

.primary-nav a:hover,
.nav-more-button:hover {
  color: #a41157;
}

.nav-instagram {
  padding: 10px 18px !important;
  border-radius: 999px;
  background: #a41157 !important;
  color: #ffffff !important;
  line-height: 1;
}

.nav-instagram:hover {
  background: #861146 !important;
  color: #ffffff !important;
  text-decoration: none;
}

.nav-more {
  position: relative;
}

.nav-more-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(6, 47, 69, 0.10);
  box-shadow: 0 22px 54px rgba(6, 47, 69, 0.18);
}

.nav-more.is-open .nav-more-menu,
.nav-more:focus-within .nav-more-menu {
  display: flex;
}

.nav-more-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
}

.nav-more-menu a:hover {
  background: rgba(164, 17, 87, 0.07);
}

/* Desktop: switch from dropdown to a clean two-row navigation. */
@media (min-width: 861px) {
  .site-header {
    --top-row-left-shift: 0.5in;
  }

  .primary-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: clamp(14px, 1.7vw, 24px);
    row-gap: 6px;
    max-width: min(980px, 72vw);
    margin-right: 0.5in;
    transform: translateX(calc(-1 * var(--top-row-left-shift)));
  }

  .nav-more {
    flex-basis: 100%;
    order: 2;
    display: flex;
    justify-content: center;
    padding-top: 4px;
    transform: translateX(var(--top-row-left-shift));
  }

  .nav-more-button {
    display: none;
  }

  .nav-more-menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: clamp(14px, 1.7vw, 24px);
  }

  .nav-more-menu a {
    padding: 0;
    border-radius: 0;
    font-size: clamp(0.92rem, 0.95vw, 1rem);
    font-weight: 850;
    color: #062f45;
  }

  .nav-more-menu a:hover {
    background: transparent;
    color: #a41157;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(6, 47, 69, 0.14);
  background: #ffffff;
  color: #062f45;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 19px;
  height: 2px;
  background: #062f45;
  display: inline-block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: #062f45;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

/* Tablet: keep the header clean by hiding less-critical direct links into More if Codex has not moved them already. */
@media (max-width: 1060px) {
  .site-logo {
    width: clamp(176px, 24vw, 235px);
  }

  .primary-nav {
    gap: 12px;
  }

  .primary-nav a,
  .nav-more-button {
    font-size: 0.9rem;
  }
}

/* Mobile/tablet hamburger */
@media (max-width: 860px) {
  .site-header {
    align-items: center;
    padding: 12px 16px;
  }

  .site-logo {
    width: min(220px, 62vw);
    max-height: 52px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(6, 47, 69, 0.10);
    box-shadow: 0 22px 54px rgba(6, 47, 69, 0.18);
  }

  .site-header.nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a,
  .nav-more-button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .primary-nav a:hover,
  .nav-more-button:hover {
    background: rgba(164, 17, 87, 0.07);
  }

  .nav-instagram {
    justify-content: center !important;
    margin-top: 8px;
  }

  .nav-more {
    width: 100%;
  }

  .nav-more-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px 12px;
    padding: 4px;
    border: 0;
    box-shadow: none;
    background: rgba(6, 47, 69, 0.04);
  }

  .nav-more.is-open .nav-more-menu {
    display: flex;
  }

  .nav-more-menu a {
    padding: 11px 14px;
  }
}
