/* Ramtek site top bar with hover menus (2026-10-11).
   Look and motion copy the homepage's current floating bar: inset 14px, 16px corners, transparent
   over the hero, dark glass with a hairline border and soft shadow once the page scrolls, grey links
   with a gold underline that slides in, pill buttons. The menus drop from it as glass cards.
   Markup: site-nav.html (inserted by the server at <!--SITE-NAV-->). Behaviour: site-nav.js. */
.sn {
  --sn-h: 56px;
  position: fixed; top: 14px; left: 0; right: 0; margin: 0 auto; z-index: 1000;
  width: min(calc(100% - 28px), 1900px);
  font-family: 'Inter', system-ui, sans-serif;
  border: 1px solid transparent; border-radius: 16px;
}
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
.sn a { text-decoration: none; }
body.has-sn { padding-top: 0; }

/* Glass layer (a separate element so the phone menu keeps its own positioning) */
.sn::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: 1; pointer-events: none;
  background: rgba(22,22,23,.72); border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; transition: opacity .35s;
}
.sn.scrolled::before, .sn.is-mobile-open::before, .sn[data-open]:not([data-open=""])::before { opacity: 1; }

.sn-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--sn-h); padding: 0 1.4rem;
}
.sn-logo { display: flex; align-items: center; gap: .5rem; color: #f0f0f8; font-size: .88rem; font-weight: 700; letter-spacing: .08em; flex-shrink: 0; }
.sn-logo img { height: 20px; width: auto; display: block; }
.sn-logo .dot { color: #c9a84c; }

.sn-links { display: flex; align-items: center; margin: 0 auto; }
.sn-item { display: flex; align-items: center; height: var(--sn-h); }
.sn-top {
  position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 1rem;
  font-size: .78rem; font-weight: 500; color: #a1a1a6; white-space: nowrap; transition: color .2s;
}
.sn-top::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; top: calc(50% + 13px); height: 1px; background: #c9a84c;
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.sn-top:hover, .sn-item.is-open > .sn-top, .sn-top[aria-current="page"] { color: #f5f5f7; }
.sn-top:hover::after, .sn-item.is-open > .sn-top::after, .sn-top[aria-current="page"]::after { transform: scaleX(1); }
.sn-top:focus-visible, .sn-cta:focus-visible, .sn-login:focus-visible, .sn-panel a:focus-visible, .sn-burger:focus-visible, .sn-logo:focus-visible, .sn-mobile a:focus-visible, .sn-mobile summary:focus-visible {
  outline: 2px solid rgba(232,196,106,.9); outline-offset: 2px; border-radius: 6px;
}

.sn-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sn-login, .sn-cta {
  font-size: .78rem; font-weight: 600; border: 1px solid #2a2a38; border-radius: 980px; padding: .45rem 1rem; color: #d8d8e8; white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.sn-login:hover { border-color: #c9a84c; color: #c9a84c; }
.sn-cta { background: #c9a84c; border-color: #c9a84c; color: #050508; }
.sn-cta:hover { background: #e8c46a; border-color: #e8c46a; color: #050508; transform: translateY(-1px); }

/* Menus: glass cards that drop just under the bar */
.sn-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 2;
  background: rgba(18,18,20,.94); border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .28s cubic-bezier(.32,.72,0,1), transform .28s cubic-bezier(.32,.72,0,1), visibility 0s linear .28s;
}
.sn-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps the pointer inside while crossing the gap */
.sn-item.is-open > .sn-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sn-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); max-width: 980px; margin: 0 auto; padding: 2rem 1.75rem 2.4rem; }
.sn-col { display: flex; flex-direction: column; gap: 1rem; min-width: 150px; }
.sn-head { margin: 0 0 .15rem; font-size: .7rem; font-weight: 500; color: #86868b; }
/* Menu items use the bar's own link look: small grey, white on hover, and the gold line that slides in underneath */
.sn-col a { position: relative; align-self: flex-start; font-size: .78rem; font-weight: 500; color: #a1a1a6; line-height: 1.3; transition: color .2s; }
.sn-col a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: #c9a84c; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.sn-col a:hover, .sn-col a:focus-visible { color: #f5f5f7; }
.sn-col a:hover::after, .sn-col a:focus-visible::after { transform: scaleX(1); }
.sn-col-main { gap: 1rem; }

.sn-scrim {
  position: fixed; inset: 0; z-index: 0; background: rgba(0,0,0,.38); pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility 0s linear .28s;
}
.sn[data-open]:not([data-open=""]) .sn-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Phone and small tablet: the bar stays the same, the menu opens as a card under it */
.sn-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; padding: 4px; }
.sn-burger span { display: block; width: 22px; height: 2px; background: #d8d8e8; border-radius: 2px; transition: transform .25s, opacity .25s; }
.sn.is-mobile-open .sn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sn.is-mobile-open .sn-burger span:nth-child(2) { opacity: 0; }
.sn.is-mobile-open .sn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sn-mobile {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 3;
  max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(14,14,18,.995); border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: .4rem 1.5rem 1.4rem;
}
.sn.is-mobile-open .sn-mobile { display: block; }
.sn-mobile details { border-bottom: 1px solid rgba(255,255,255,.05); }
.sn-mobile summary, .sn-m-link {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
  padding: .85rem 0; font-size: .9rem; font-weight: 500; color: #d8d8e8;
}
.sn-m-link { border-bottom: 1px solid rgba(255,255,255,.05); }
.sn-mobile summary::-webkit-details-marker { display: none; }
.sn-mobile summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid #86868b; border-bottom: 1.5px solid #86868b; transform: rotate(45deg); transition: transform .25s; margin-right: 3px; }
.sn-mobile details[open] summary::after { transform: rotate(-135deg); }
.sn-mobile summary:hover, .sn-m-link:hover { color: #c9a84c; }
.sn-mobile details a { display: block; padding: .5rem 0 .5rem .5rem; font-size: .86rem; color: #a1a1a6; }
.sn-mobile details a:hover { color: #f5f5f7; }
.sn-mobile details a:last-child { padding-bottom: .9rem; }
.sn-m-actions { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.1rem; }
.sn-m-login { text-align: center; padding: .65rem; border: 1px solid #2a2a38; border-radius: 980px; color: #d8d8e8; font-weight: 600; font-size: .85rem; }
.sn-m-cta { text-align: center; padding: .7rem; border-radius: 980px; color: #050508; font-weight: 700; font-size: .88rem; background: #c9a84c; }
.sn-m-cta:hover { background: #e8c46a; }

@media (max-width: 960px) {
  .sn-links, .sn-login { display: none; }
  .sn-burger { display: flex; }
  .sn-scrim { display: none; }
}
@media (max-width: 420px) { .sn-bar { padding: 0 1rem; } .sn-cta { padding: .42rem .8rem; } }
@media (prefers-reduced-motion: reduce) {
  .sn::before, .sn-panel, .sn-scrim, .sn-top::after, .sn-col a::after, .sn-burger span { transition: none; }
}

/* Cookie notice (2026-10-12): a floating glass card like the top bar, with the same pill buttons */
.ck {
  position: fixed; left: 14px; right: 14px; bottom: 14px; margin: 0 auto; max-width: 780px; z-index: 1000000;
  align-items: center; justify-content: space-between; gap: 1.1rem 1.5rem; flex-wrap: wrap;
  padding: 1rem 1.2rem 1rem 1.5rem; border-radius: 16px; font-family: 'Inter', system-ui, sans-serif;
  background: rgba(22,22,23,.78); border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.55);
  animation: ckIn .5s cubic-bezier(.32,.72,0,1) both;
}
@keyframes ckIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ck p { margin: 0; flex: 1 1 320px; font-size: .8rem; line-height: 1.6; color: #a1a1a6; }
.ck p a { color: #e8c46a; text-decoration: underline; text-decoration-color: rgba(232,196,106,.4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ck p a:hover { text-decoration-color: #e8c46a; }
.ck-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.ck-btn { font-family: inherit; font-size: .78rem; font-weight: 600; border-radius: 980px; padding: .5rem 1.15rem; cursor: pointer; border: 1px solid #2a2a38; background: none; color: #d8d8e8; transition: border-color .2s, color .2s, background .2s, transform .15s; }
.ck-btn:hover { border-color: #c9a84c; color: #c9a84c; }
.ck-btn.primary { background: #c9a84c; border-color: #c9a84c; color: #050508; }
.ck-btn.primary:hover { background: #e8c46a; border-color: #e8c46a; color: #050508; transform: translateY(-1px); }
.ck-btn:focus-visible { outline: 2px solid rgba(232,196,106,.9); outline-offset: 2px; }
@media (max-width: 560px) { .ck { padding: 1rem 1.1rem; } .ck-actions { width: 100%; } .ck-btn { flex: 1; padding: .6rem 1rem; } }
@media (prefers-reduced-motion: reduce) { .ck { animation: none; } }
