/* OdooBridge — shared site chrome (nav + footer).
   Loaded AFTER each page's inline <style> so these win. Uses `ob-` prefixed
   classes so nothing collides with per-page CSS, and pins the OdooBridge
   accent so the chrome looks identical on every page (incl. the teal
   Vajra-Enterprise page). Colours pull from each page's tokens where they're
   shared (--ink/--txt/--line), so light + dark both work. */

:root { --ob-accent: #7b6cf6; --ob-accent-hover: #6a5bf0; }
@media (prefers-color-scheme: light) { :root { --ob-accent: #5a48e0; } }
:root[data-theme="light"] { --ob-accent: #5a48e0; }
:root[data-theme="dark"]  { --ob-accent: #7b6cf6; }

/* ---------- nav ---------- */
nav.ob-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink, #0d0f14) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line, rgba(255,255,255,.09));
}
.ob-nav-in {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px;
}
.ob-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  text-decoration: none; white-space: nowrap;
}
/* The real bridge mark, transparent bg so it sits on light + dark. */
.ob-brand img {
  width: 36px; height: 36px; object-fit: contain; flex: none;
  transition: transform .15s ease;
}
.ob-brand:hover img { transform: scale(1.06); }
/* Wordmark echoes the logo lockup: "Odoo" in body colour, "Bridge" in the
   blue->cyan gradient. Rendered as text so it stays crisp at any size and
   adapts to light/dark (the PNG lockup is white-on-black and can't). */
.ob-wm {
  font-weight: 800; font-size: 19px; letter-spacing: -.025em;
  color: var(--txt, #eef0f6); line-height: 1;
}
.ob-wm-b {
  background: linear-gradient(90deg, #4b7ef5, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.ob-links { display: flex; align-items: center; gap: 22px; }
.ob-links a {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 13px; color: var(--txt-2, #a7adbb); text-decoration: none;
  white-space: nowrap; transition: color .12s ease;
}
.ob-links a:hover { color: var(--ob-accent); }
.ob-links a.ob-active { color: var(--txt, #eef0f6); }

.ob-links a.ob-cta {
  background: var(--ob-accent); color: #fff; font-weight: 600;
  padding: 10px 16px; border-radius: 9px; margin-left: 4px;
  transition: transform .12s ease, background .12s ease;
}
.ob-links a.ob-cta:hover { background: var(--ob-accent-hover); color: #fff; transform: translateY(-1px); }

.ob-burger {
  display: none; background: transparent; border: 1px solid var(--line-2, rgba(255,255,255,.14));
  color: var(--txt, #eef0f6); border-radius: 8px; padding: 7px 11px; font-size: 15px; cursor: pointer;
}

/* Mobile: collapse the links behind a burger instead of wrapping the bar. */
@media (max-width: 860px) {
  .ob-burger { display: block; }
  .ob-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink, #0d0f14); border-bottom: 1px solid var(--line, rgba(255,255,255,.09));
    padding: 8px 0 14px;
  }
  .ob-links.ob-open { display: flex; }
  .ob-links a { padding: 13px 24px; font-size: 14px; }
  .ob-links a.ob-cta { margin: 10px 24px 0; text-align: center; padding: 12px 16px; }
}

/* ---------- footer ---------- */
footer.ob-footer {
  border-top: 1px solid var(--line, rgba(255,255,255,.09));
  background: var(--surface, #14171e);
  padding: 46px 0 22px; margin-top: 0;
}
.ob-footer-in {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px;
}
.ob-f-brand { display: flex; align-items: flex-start; gap: 12px; }
.ob-f-brand img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.ob-f-name { font-weight: 800; font-size: 17px; color: var(--txt, #eef0f6); letter-spacing: -.025em; }
.ob-f-tag {
  font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11.5px;
  color: var(--txt-3, #6f7787); margin-top: 4px; line-height: 1.5; max-width: 30ch;
}
.ob-f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ob-f-col h4 {
  font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3, #6f7787);
  margin: 0 0 12px; font-weight: 600;
}
.ob-f-col a {
  display: block; font-size: 13.5px; color: var(--txt-2, #a7adbb);
  text-decoration: none; margin-bottom: 9px; transition: color .12s ease;
}
.ob-f-col a:hover { color: var(--ob-accent); }
.ob-f-bottom {
  max-width: 1080px; margin: 34px auto 0; padding: 18px 24px 0;
  border-top: 1px solid var(--line, rgba(255,255,255,.09));
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11.5px; color: var(--txt-3, #6f7787);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 760px) {
  .ob-footer-in { grid-template-columns: 1fr; gap: 30px; }
  .ob-f-cols { grid-template-columns: repeat(2, 1fr); }
}
