/* AXVERSE MEDIA 2026: offer bar, navigation and footer (loaded on every page).
   Tokens are scoped to these blocks so the dashboards and inner pages keep their own styles. */
.offer-bar, .nav, .footer, .skip-link {
  --ink: rgb(var(--bg));
  --ink-2: rgb(var(--bg2));
  --surface: rgb(var(--bg3));
  --line: rgb(var(--fg) / 0.07);
  --line-strong: rgb(var(--fg) / 0.12);
  --text: rgb(var(--fg));
  --muted: rgb(var(--mut));
  --dim: rgb(var(--dim));
  --accent: rgb(var(--ac));
  --accent-text: rgb(var(--ach));
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
.offer-bar .wrap, .nav .wrap, .footer .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.skip-link { position: absolute; left: -999px; top: 8px; background: rgb(var(--fg)); color: rgb(var(--bg2)); padding: 8px 14px; border-radius: 999px; z-index: 1000; }
.skip-link:focus { left: 16px; }

/* The original style.css sets overflow-x:hidden on both html and body, which turns body into a
   scroll container and silently breaks every position:sticky element. 'clip' keeps the no-sideways-scroll
   guarantee without that side effect. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip !important; } }

/* Buttons used in the chrome */
.nav .btn, .footer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; white-space: nowrap; font: 600 0.9rem/1 var(--f-body); border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s; }
.nav .btn-primary { background: linear-gradient(180deg, rgb(var(--fg)), rgb(var(--fg))); color: rgb(var(--bg2)); box-shadow: inset 0 -1px 0 rgb(var(--sh) / calc(0.12 * var(--sha))), 0 12px 36px -12px rgb(var(--ach) / 0.7); }
.nav .btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 -1px 0 rgb(var(--sh) / calc(0.12 * var(--sha))), 0 18px 46px -12px rgb(var(--ach) / 0.9); }
.nav .btn:active { transform: translateY(1px) scale(0.98); }
.nav :focus-visible, .footer :focus-visible, .offer-bar :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

/* Offer bar */
.offer-bar { background: rgb(var(--bg)); border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.offer-bar[hidden] { display: none; }
.offer-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; position: relative; }
.offer-bar p { margin: 0; color: var(--muted); }
.offer-bar strong { color: var(--text); font-weight: 600; }
.offer-bar a { color: var(--accent-text); font-weight: 600; margin-left: 4px; }
.offer-close { position: absolute; right: var(--gutter); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); background: none; border: 0; cursor: pointer; }
.offer-close:hover { color: var(--text); background: var(--surface); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 900; background: rgb(var(--bg) / 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 70px; }
.nav .brand, .footer .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.nav .brand img, .footer .brand img { width: 34px; height: 34px; object-fit: contain; }
.nav .brand span, .footer .brand span { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.06em; }
.nav .brand small, .footer .brand small { font-weight: 500; color: var(--muted); letter-spacing: 0.12em; font-size: 0.7rem; margin-left: 4px; }
.nav .nav-links { display: flex; gap: 4px; margin-left: auto; flex: 0 1 auto; justify-content: flex-end; }
.nav .nav-links li, .footer .footer-nav li { list-style: none; display: contents; }
.nav .nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 0.925rem; font-weight: 500; letter-spacing: 0; text-decoration: none; transition: color .2s, background-color .2s; }
.nav .nav-links a::after, .footer .footer-nav a::after { display: none; }
.nav .nav-links a:hover { color: var(--text); background: var(--surface); }
.nav .nav-links a.nav-active, .nav .nav-links .current-menu-item > a { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); place-items: center; font-size: 1.25rem; cursor: pointer; }

@media (max-width: 1100px) {
  .nav .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav #navWorkBtn { display: none; }
  .nav.is-open .nav-links { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px; background: rgb(var(--bg)); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-links a { padding: 12px 4px; font-size: 1.05rem; background: none; }
  .nav.is-open #navWorkBtn { display: inline-flex; position: absolute; top: 14px; right: calc(var(--gutter) + 56px); }
}
@media (max-width: 640px) {
  .offer-bar .wrap { justify-content: flex-start; padding-right: 52px; }
  .offer-bar p { font-size: 0.8rem; line-height: 1.35; }
  .nav.is-open #navWorkBtn { display: none; }
}

/* Footer */
.footer { background: rgb(var(--bg)); border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--muted); font-size: 0.925rem; position: relative; z-index: 1; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.footer .footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; flex: 0 1 auto; justify-content: flex-start; }
.footer .footer-nav a, .footer-legal a { color: var(--muted); font-size: 0.925rem; font-weight: 500; letter-spacing: 0; text-decoration: none; }
.footer .footer-nav a:hover, .footer-legal a:hover { color: var(--text); }
.footer .socials { display: flex; gap: 10px; }
.footer .socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--text); background: rgb(var(--fg) / 0.05); box-shadow: inset 0 0 0 1px rgb(var(--fg) / 0.10); transition: background-color .2s, color .2s; }
.footer .socials a:hover { background: rgb(var(--fg)); color: rgb(var(--bg2)); }
.footer .footer-bottom { margin-top: 40px; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; text-align: left; }
.footer .footer-bottom p { margin: 0; color: var(--dim); font-size: 0.85rem; font-family: var(--f-body); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; }
@media (max-width: 640px) { .footer-top { flex-direction: column; align-items: flex-start; } }

/* Logged-in admins: keep the sticky nav below the WordPress admin bar */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }

/* 4.5 Top banner (colorful gradient, links to the AXVERSE AI website) */
.app-bar { position: relative; overflow: hidden; background: linear-gradient(90deg, #4f46e5, #7c3aed 35%, #c026d3 70%, #f97316); color: #fff; font-family: var(--f-body, "Geist", system-ui, sans-serif); }
.app-bar[hidden] { display: none; }
.app-bar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(30% 200% at 20% 0%, rgba(255, 255, 255, 0.25), transparent 70%); }
.app-bar-link { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 6px 60px; color: #fff !important; text-decoration: none; }
.app-bar-tag { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.35); }
.app-bar-long, .app-bar-short { font-family: var(--f-display, "Bricolage Grotesque", system-ui, sans-serif); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; }
.app-bar-short { display: none; }
.app-bar-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; color: #fff; background: #0b0b14; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.6); transition: transform 0.2s; }
.app-bar-link:hover .app-bar-btn { transform: translateY(-1px); }
.app-bar-close { position: absolute; right: var(--gutter, 16px); top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, 0.85); display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.app-bar-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.app-bar :focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 999px; }
@media (max-width: 720px) {
  .app-bar-link { justify-content: flex-start; gap: 10px; padding: 6px 46px 6px 14px; }
  .app-bar-long, .app-bar-tag { display: none; }
  .app-bar-short { display: inline; font-size: 0.95rem; }
  .app-bar-btn { margin-left: auto; height: 32px; padding: 0 12px; font-size: 0.8rem; }
}
