/* =========================================================================
   PGH site navigation — rebuilt from the Framer NavBar + MobileMenu components
   Desktop (>= 900px): links | logo | links, contact + language on the right
   Phone   (<  900px): hamburger | logo | language badge, slide-in drawer
   ========================================================================= */
:root {
  --nav-h: 120px;
  --nav-h-m: 72px;
  --nav-pad: 80px;
  --nav-gold: #C8A96A;
  --nav-gold-text: #A8843F;
  --nav-ink: #0F1B3D;
  --nav-text: #FFFFFF;
  --nav-scroll-bg: rgba(5, 11, 24, 0.88);
  --nav-font: 'DM Sans', 'Noto Sans SC', sans-serif;
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.nb, .nb *, .nb-pop-wrap, .nb-pop-wrap *, .mm, .mm * { box-sizing: border-box; }

/* ---------- Bar (shared) ---------- */
.nb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  font-family: var(--nav-font); color: var(--nav-text);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .45s var(--nav-ease);
}
.nb.is-scrolled {
  background: var(--nav-scroll-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55);
}
.nb.is-hidden { transform: translateY(-110%); pointer-events: none; box-shadow: none; }
.nb a { color: inherit; text-decoration: none; }
.nb button { font-family: inherit; }

/* ---------- Desktop bar ---------- */
.nb-desk {
  position: relative; height: var(--nav-h); padding: 0 var(--nav-pad);
  display: flex; align-items: center; justify-content: center;
}
.nb-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 120px; width: 100%; }
.nb-links { display: flex; align-items: center; gap: 70px; min-width: 0; }
.nb-links.is-left { justify-content: flex-end; }
.nb-links.is-right { justify-content: flex-start; }
.nb-logo { display: flex; align-items: center; justify-content: center; justify-self: center; }
.nb-logo img { height: 34px; width: auto; display: block; }

.nb-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0;
  font-size: 14px; font-weight: 400; white-space: nowrap; cursor: pointer;
  background: none; border: 0; color: var(--nav-text); transition: color .25s ease;
}
.nb-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--nav-gold);
  transform: scaleX(0); transform-origin: center; transition: transform .35s var(--nav-ease);
}
.nb-link:hover, .nb-link.is-active, .nb-link[aria-expanded="true"] { color: var(--nav-gold); }
.nb-link:hover::after { transform: scaleX(1); }
.nb-link .nb-chev { opacity: .8; transition: transform .25s ease; }
.nb-link[aria-expanded="true"] .nb-chev { transform: rotate(180deg); }

.nb-tools { position: absolute; right: var(--nav-pad); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.nb-pill {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 11px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: var(--nav-text);
  font-size: 12px; font-weight: 600; letter-spacing: .3px; cursor: pointer; white-space: nowrap;
  transition: border-color .25s ease, background .25s ease;
}
.nb-pill.is-icon { padding: 0; width: 32px; }
.nb-pill:hover, .nb-pill.is-on { border-color: var(--nav-gold); }
.nb-pill.is-on { background: rgba(255, 255, 255, .06); }
.nb-pill .nb-chev { opacity: .8; transition: transform .25s ease; }
.nb-pill.is-on .nb-chev { transform: rotate(180deg); }

/* Language panel (white box under the pill) */
.nb-langs {
  position: fixed; min-width: 180px; padding: 6px; z-index: 1100;
  background: #FFFFFF; border: 1px solid rgba(15, 27, 61, .06); border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(15, 27, 61, .35), 0 2px 8px rgba(15, 27, 61, .08);
  font-family: var(--nav-font); font-size: 13px;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s ease, transform .25s var(--nav-ease);
}
.nb-langs.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nb-lang-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--nav-ink); text-decoration: none; transition: background .15s ease; }
.nb-lang-item:hover { background: rgba(15, 27, 61, .05); }
.nb-lang-item.is-on { cursor: default; }
.nb-lang-code {
  min-width: 32px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid rgba(15, 27, 61, .18); color: rgba(15, 27, 61, .55); font-size: 11px; font-weight: 700;
}
.nb-lang-item.is-on .nb-lang-code { border-color: var(--nav-gold); color: var(--nav-gold-text); }
.nb-lang-name { flex: 1; white-space: nowrap; opacity: .85; }
.nb-lang-item.is-on .nb-lang-name { opacity: 1; }
.nb-lang-item svg { opacity: 0; }
.nb-lang-item.is-on svg { opacity: 1; }

/* ---------- Product popup (desktop centred box, phone bottom sheet) ---------- */
.nb-pop-wrap { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 24px; font-family: var(--nav-font); }
.nb-pop-wrap.is-open { display: flex; }
.nb-back { position: absolute; inset: 0; background: rgba(5, 11, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: nbBack .3s ease both; }
.nb-pop {
  position: relative; width: min(960px, 100%); max-height: 85vh; overflow-y: auto; padding: 26px 30px 30px;
  background: #FFFFFF; color: var(--nav-ink); border: 1px solid rgba(15, 27, 61, .06); border-radius: 22px;
  box-shadow: 0 24px 60px -16px rgba(15, 27, 61, .35), 0 2px 8px rgba(15, 27, 61, .08);
  animation: nbPop .4s var(--nav-ease) both;
}
.nb-pop-handle { display: none; width: 40px; height: 4px; border-radius: 4px; background: rgba(15, 27, 61, .18); margin: 0 auto 14px; }
.nb-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nb-pop-title { font-size: 24px; font-weight: 600; letter-spacing: -.3px; line-height: 1.2; }
.nb-viewall { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--nav-gold-text); text-decoration: none; }
.nb-viewall span { display: inline-block; transition: transform .25s ease; }
.nb-viewall:hover span { transform: translateX(4px); }
.nb-close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(15, 27, 61, .18); background: transparent; color: var(--nav-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .3s ease;
}
.nb-close:hover { background: rgba(15, 27, 61, .05); border-color: var(--nav-gold); transform: rotate(90deg); }
.nb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }

/* one product range card: photo (flips to the back on hover) + name + weight chips */
.nb-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 16px; border-radius: 18px;
  background: rgba(15, 27, 61, .03); border: 1px solid rgba(15, 27, 61, .08);
  transition: border-color .25s ease, transform .35s var(--nav-ease), box-shadow .35s ease;
}
.nb-card:hover { border-color: var(--nav-gold); transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(15, 27, 61, .35); }
.nb-photo {
  position: relative; flex-shrink: 0; width: 92px; height: 136px; border-radius: 14px; perspective: 700px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--nav-gold) 25%, transparent) 0%, color-mix(in srgb, var(--nav-gold) 6%, transparent) 45%, transparent 75%);
}
.nb-flip { position: absolute; inset: 6px; transform-style: preserve-3d; transition: transform .7s var(--nav-ease); }
.nb-flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-backface-visibility: hidden; backface-visibility: hidden; filter: drop-shadow(0 10px 14px rgba(120, 80, 20, .35)); }
.nb-flip img.is-back { transform: rotateY(180deg); }
.nb-card:hover .nb-flip { transform: rotate(-4deg) scale(1.06); }
.nb-card.has-back:hover .nb-flip { transform: rotateY(180deg); }
.nb-card-body { min-width: 0; flex: 1; }
.nb-badge { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; background: var(--nav-gold); color: var(--nav-ink); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.nb-card-title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; color: var(--nav-ink); text-decoration: none; display: block; }
.nb-card-text { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: rgba(15, 27, 61, .55); }
.nb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.nb-chip {
  display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(15, 27, 61, .18);
  color: var(--nav-ink); font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.nb-chip:hover { border-color: var(--nav-gold); color: var(--nav-gold-text); background: rgba(15, 27, 61, .05); transform: translateY(-1px); }
.nb-chip.is-on { border-color: var(--nav-gold); background: var(--nav-gold); color: var(--nav-ink); font-weight: 600; }

@media (max-width: 639.98px) {
  .nb-pop-wrap { align-items: flex-end; padding: 0; }
  .nb-pop { width: 100%; max-height: 88vh; padding: 12px 18px 28px; border-radius: 22px 22px 0 0; animation: nbSheet .45s var(--nav-ease) both; }
  .nb-pop-handle { display: block; }
  .nb-pop-head { margin-bottom: 14px; }
  .nb-pop-title { font-size: 20px; }
  .nb-cards { grid-template-columns: 1fr; gap: 10px; }
  .nb-card { gap: 14px; padding: 14px; }
  .nb-photo { width: 76px; height: 112px; }
  .nb-card-title { font-size: 16px; }
}

/* ---------- Phone bar ---------- */
.nb-mob { display: none; position: relative; height: var(--nav-h-m); padding: 0 24px; align-items: center; justify-content: space-between; }
.nb-burger { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: var(--nav-text); cursor: pointer; }
.nb-mob .nb-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nb-mob .nb-logo img { height: 28px; }
.nb-badge-lang { display: flex; align-items: center; justify-content: center; height: 28px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: var(--nav-text); font-size: 12px; font-weight: 700; text-decoration: none; }

@media (max-width: 899.98px) {
  .nb-desk { display: none; }
  .nb-mob { display: flex; }
  /* phone bar: soft dark gradient instead of the solid desktop fill */
  .nb.is-scrolled { background: linear-gradient(180deg, rgba(1, 16, 33, .92), rgba(1, 16, 33, .78)); }
}

/* ---------- Phone drawer ---------- */
.mm { position: fixed; inset: 0; z-index: 1300; font-family: var(--nav-font); pointer-events: none; }
.mm.is-open { pointer-events: auto; }
.mm-dim { position: absolute; inset: 0; background: rgba(5, 11, 24, .55); opacity: 0; transition: opacity .35s ease; }
.mm.is-open .mm-dim { opacity: 1; }
.mm-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(80vw, 360px); overflow: hidden;
  background: linear-gradient(180deg, #011E41, rgba(1, 16, 33, .88)); color: var(--nav-text);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transform: translateX(-102%); transition: transform .45s var(--nav-ease), box-shadow .45s ease;
}
/* shadow only while open (closed, it would leak onto the page's left edge) */
.mm.is-open .mm-panel { transform: none; box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .6); }
.mm-page { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 24px 28px; overflow-y: auto; transition: transform .45s var(--nav-ease), opacity .3s ease; }
.mm-sub { transform: translateX(100%); opacity: 0; }
.mm.show-sub .mm-main { transform: translateX(-30%); opacity: 0; pointer-events: none; }
.mm.show-sub .mm-sub { transform: none; opacity: 1; }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.mm-head img { height: 24px; width: auto; display: block; }
.mm-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--nav-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mm-links { display: flex; flex-direction: column; }
.mm-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; background: none; border: 0;
  color: var(--nav-text); font-family: inherit; font-size: 16px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
  opacity: 0; transform: translateX(-14px); transition: color .2s ease, opacity .4s ease, transform .5s var(--nav-ease);
}
.mm.is-open .mm-link { opacity: 1; transform: none; }
.mm-link.is-active { color: var(--nav-gold); }
.mm-link svg { opacity: .6; }
.mm-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.mm-cta { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 999px; background: var(--nav-gold); color: var(--nav-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.mm-langs { display: flex; gap: 8px; }
.mm-lang { flex: 1; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.mm-lang.is-on { border-color: var(--nav-gold); color: var(--nav-gold); }
.mm-company { font-size: 11.5px; color: rgba(255, 255, 255, .45); text-align: center; }
.mm-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 18px; padding: 0; background: none; border: 0; color: rgba(255, 255, 255, .7); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mm-sub-title { font-size: 22px; font-weight: 600; }
.mm-sub-all { display: inline-block; margin: 4px 0 18px; font-size: 13px; font-weight: 600; color: var(--nav-gold); text-decoration: none; }
.mm-range { padding: 14px 0 16px 14px; border-left: 1px solid color-mix(in srgb, var(--nav-gold) 45%, transparent); margin-bottom: 10px; }
.mm-range-top { display: flex; align-items: center; gap: 12px; }
.mm-range-top img { width: 44px; height: 56px; object-fit: contain; }
.mm-range-name { font-size: 15px; font-weight: 700; color: var(--nav-text); text-decoration: none; }
.mm-range .nb-chips { margin-top: 10px; }
.mm-range .nb-chip { border-color: rgba(255, 255, 255, .18); color: var(--nav-text); font-size: 12.5px; padding: 6px 12px; }
.mm-range .nb-chip:hover { background: rgba(255, 255, 255, .07); color: var(--nav-gold); border-color: var(--nav-gold); }
.mm-range .nb-chip.is-on { background: var(--nav-gold); color: var(--nav-ink); }

body.nb-lock { overflow: hidden; }

@keyframes nbBack { from { opacity: 0; } to { opacity: 1; } }
@keyframes nbPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nbSheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nb, .nb-pop, .nb-back, .mm-panel, .mm-page, .mm-link, .nb-flip { animation: none !important; transition: none !important; }
}

/* soft blur fixed to the bottom of the screen (all pages) */
/* progressive blur: two layers ramp the blur from 0 (top) to strong (bottom edge) */
body::before, body::after { content: ""; position: fixed; transition: opacity .4s ease; left: 0; right: 0; bottom: 0; pointer-events: none; }
body::before { height: 150px; z-index: 39;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%); }
body::after { height: 90px; z-index: 40;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 40%, #000 85%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 40%, #000 85%); }

/* ---------- Product popup: NEW / SECOND HAND tabs ---------- */
.nb-pop-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; align-items: start; }
.nb-side { display: flex; flex-direction: column; gap: 6px; padding-right: 20px; margin-right: 20px; border-right: 1px solid rgba(15, 27, 61, .08); min-height: 100%; }
.nb-stab { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box; padding: 14px 16px 14px 20px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(15, 27, 61, .55); text-align: left; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.nb-stab em { font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: 0; color: rgba(15, 27, 61, .35); }
.nb-stab i { position: absolute; left: 6px; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 3px; background: var(--nav-gold); transform: scaleY(0); transition: transform .3s var(--nav-ease); }
.nb-stab:hover { background: rgba(15, 27, 61, .04); }
.nb-stab.is-on { background: rgba(200, 169, 106, .12); color: var(--nav-gold-text); font-weight: 700; }
.nb-stab.is-on em { color: var(--nav-gold-text); }
.nb-stab.is-on i { transform: scaleY(1); }
.nb-pane { display: none; min-width: 0; }
.nb-pane.is-on { display: block; animation: nbPaneIn .35s var(--nav-ease) both; }
@keyframes nbPaneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nb-empty { padding: 34px 24px; border-radius: 18px; background: rgba(15, 27, 61, .03); border: 1px dashed rgba(15, 27, 61, .15); font-size: 14px; line-height: 1.6; color: rgba(15, 27, 61, .6); }
.nb-empty a { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-weight: 600; color: var(--nav-gold-text); text-decoration: none; }
@media (max-width: 760px) {
  .nb-pop-body { grid-template-columns: 1fr; }
  .nb-side { flex-direction: row; padding: 0 0 14px; margin: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(15, 27, 61, .08); min-height: 0; overflow-x: auto; }
  .nb-stab { width: auto; flex-shrink: 0; white-space: nowrap; }
}
body.at-bottom::after { opacity: 0; }

/* phone bar: language badge is a button with a small arrow; opens the same dropdown as desktop */
button.nb-badge-lang { gap: 6px; background: none; font-family: inherit; cursor: pointer; line-height: 1; transition: border-color .2s ease, background .2s ease; }
button.nb-badge-lang svg { transition: transform .25s ease; }
button.nb-badge-lang.is-on { border-color: var(--nav-gold); background: rgba(255, 255, 255, .06); }
button.nb-badge-lang.is-on svg { transform: rotate(180deg); }

/* ---------- Phone menu · Product panel: NEW / SECOND HAND tabs + gold line per product ---------- */
.mm-tabs { display: flex; gap: 8px; margin: 16px 0 14px; }
.mm-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: rgba(255, 255, 255, .75);
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.mm-tab em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0; opacity: .7; }
.mm-tab.is-on { background: var(--nav-gold); border-color: var(--nav-gold); color: #0B1B3F; }
.mm-tab.is-on em { opacity: .8; }
.mm-pane { display: none; }
.mm-pane.is-on { display: block; animation: nbPaneIn .35s var(--nav-ease) both; }
.mm-empty { padding: 22px 18px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .22); font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.mm-empty a { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--nav-gold); text-decoration: none; }
/* every product gets its own gold line: solid gold edge on the left + a fading gold divider underneath */
.mm-range { position: relative; border-left: 0; padding-left: 0; margin-bottom: 18px; padding-bottom: 18px; }
.mm-range::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--nav-gold), transparent 85%); opacity: .55; }
.mm-range:last-child { margin-bottom: 0; }

/* bottom blur fades away when the footer is reached (class set by nav.js) */
body.at-end::before, body.at-end::after { opacity: 0; }
