/* The nav's Solutions menu and Log in link, and the site footer: shared by every page, index.html included.
   Uses the tokens each page already defines (product.css, or index.html's inline copy). */

/* ---------- Nav additions ---------- */
.nav-right { display: flex; gap: 6px; align-items: center; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--text-2); padding: 9px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-login:hover { color: var(--text); background: var(--hover); }

.nav-menu { position: relative; }
.nav-menu > button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.nav-menu > button svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-menu:hover > button, .nav-menu:focus-within > button, .nav-menu > button[aria-current] { color: var(--text); }
.nav-menu:hover > button svg, .nav-menu:focus-within > button svg { transform: rotate(180deg); }
/* The padding-top bridges the gap, so the menu stays open while the pointer moves down to it */
.nav-drop { position: absolute; top: 100%; left: 50%; translate: -50% 0; padding-top: 14px; opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.nav-menu:hover .nav-drop, .nav-menu:focus-within .nav-drop { opacity: 1; visibility: visible; }
.nav-drop-in { width: 360px; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); box-shadow: 0 24px 60px -24px rgba(30,30,60,.35); display: grid; gap: 2px; }
.nav-drop a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--text); }
.nav-drop a:hover, .nav-drop a[aria-current] { background: var(--hover); }
.nav-drop .ni { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--node-bg); display: grid; place-items: center; color: var(--accent-text); }
.nav-drop .ni svg { width: 17px; height: 17px; }
.nav-drop b { display: block; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.nav-drop small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--text-3); }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 44px; }
.foot-brand { max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.foot-brand p { font-size: 14px; line-height: 1.55; color: var(--text-3); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 48px; }
.foot-cols h2 { font: 600 13px var(--sans); letter-spacing: 0; color: var(--text); margin: 0 0 14px; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.foot-cols ul { list-style: none; display: grid; gap: 10px; }
.foot-cols a { color: var(--text-2); transition: color .2s; }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom a:hover { color: var(--text); }

@media (max-width: 760px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 32px 24px; }
}
@media (max-width: 640px) {
  .nav-login { padding: 9px 8px; }
}
