/*
 * op-chrome.css, OwnersPath nav + footer chrome
 * ─────────────────────────────────────────────────
 * Light frosted-glass header, dark footer.
 * Loaded by every page alongside op-base-a.css or op-base-b.css.
 * Do not put page-body styles here.
 */

/* ── CHROME TOKENS ──────────────────────────────────
   Self-contained so chrome renders correctly regardless
   of which base file the page uses.
──────────────────────────────────────────────────── */
:root {
  --chrome-font:      'Google Sans Flex','Google Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --chrome-highlight: #3CE000;
  --chrome-radius:    12px;
  --chrome-ease:      0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ══════════════════════════════════════════════════
   NAV, light frosted glass
══════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--chrome-ease), box-shadow var(--chrome-ease);
  will-change: border-color, box-shadow;
}
#nav.scrolled {
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav-logo img  { height: 38px; width: auto; display: block; }
.nav-logo-text { font-size: 20px; font-weight: 800; color: #7ebe2a; letter-spacing: -0.02em; text-decoration: none; }

/* ── Dropdown list ── */
#navLinks {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
#navLinks > li { position: relative; }

#navLinks > li > button {
  font-family: var(--chrome-font); font-size: 14px; font-weight: 500;
  color: #333; background: none; border: none;
  padding: 8px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
  transition: background var(--chrome-ease), color var(--chrome-ease);
  white-space: nowrap;
}
#navLinks > li > button:hover { background: rgba(0,0,0,0.06); color: #000; }

#navLinks > li > button .caret {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -2px;
  transition: transform var(--chrome-ease); display: inline-block;
}
#navLinks > li.open > button .caret { transform: rotate(-135deg); margin-top: 2px; }

/* ── Plain link (no dropdown) ── */
.nav-plain-link {
  font-family: var(--chrome-font); font-size: 14px; font-weight: 500;
  color: #333; text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  display: inline-flex; align-items: center;
  transition: background var(--chrome-ease), color var(--chrome-ease);
  white-space: nowrap;
}
.nav-plain-link:hover { background: rgba(0,0,0,0.06); color: #000; }

/* ── Dropdown panel ── */
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff; border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--chrome-radius); box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px; min-width: 220px; list-style: none;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
#navLinks > li.open .dropdown-panel {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: block; font-size: 13px; font-weight: 400;
  padding: 9px 14px; border-radius: 6px;
  color: #444; text-decoration: none;
  transition: background var(--chrome-ease), color var(--chrome-ease);
}
.dropdown-panel a:hover { background: #f5f5f5; color: #000; }

/* ── Schedule Demo CTA pill ── */
.btn-demo {
  font-family: var(--chrome-font); font-size: 14px; font-weight: 600;
  color: #0a0a0b !important;
  background: var(--chrome-highlight);
  border: none; border-radius: 50px;
  padding: 10px 22px; cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--chrome-ease), box-shadow var(--chrome-ease);
  white-space: nowrap;
}
.btn-demo:hover { background: #2fd100; box-shadow: 0 4px 16px rgba(60,224,0,0.4); }

/* ── Hamburger toggle ── */
#navToggle {
  display: none; background: none; border: none;
  padding: 8px; cursor: pointer; flex-direction: column; gap: 5px;
  flex-shrink: 0;
}
#navToggle span {
  display: block; width: 22px; height: 2px;
  background: #333; border-radius: 2px;
  transition: var(--chrome-ease);
}

/* ══════════════════════════════════════════════════
   FOOTER, dark
══════════════════════════════════════════════════ */
footer {
  background: #111;
  color: #aaa;
  padding: 56px 24px 32px;
  /* No content-visibility/contain here: paint containment clips the
     upward-popping articles dropdown to the footer box. Footer is the
     last element on the page, so the perf gain was negligible anyway. */
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-brand img        { height: 32px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.75; }
.footer-brand-text       { font: 800 18px var(--chrome-font); color: #7ebe2a; display: block; margin-bottom: 14px; }
.footer-brand p          { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 12px; }

.footer-contact          { font-size: 13px; line-height: 1.8; }
.footer-contact a        { color: #888; text-decoration: none; transition: color var(--chrome-ease); }
.footer-contact a:hover  { color: #fff; }
.btn-text-highlight      { color: var(--chrome-highlight) !important; font-weight: 600; }
.btn-text-highlight:hover{ color: #2fd100 !important; }

.footer-col .footer-col-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #555; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13px; color: #666;
  text-decoration: none; padding: 3px 0;
  transition: color var(--chrome-ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copyright { font-size: 12px; color: #444; }

.footer-links            { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a          { font-size: 12px; color: #555; text-decoration: none; transition: color var(--chrome-ease); }
.footer-links a:hover    { color: #aaa; }

.footer-social           { display: flex; gap: 8px; }
.social-link {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #666;
  text-decoration: none;
  transition: background var(--chrome-ease), color var(--chrome-ease);
}
.social-link:hover { background: var(--chrome-highlight); color: #0a0a0b; }

/* ══════════════════════════════════════════════════
   FOOTER ARTICLES DISCLOSURE (progressive enhancement)
   No JS:  panel is a normal link list (every link reachable).
   JS:     op-chrome.js adds .js-ready -> button shows and the
           panel collapses into an upward-popping menu.
══════════════════════════════════════════════════ */
.footer-articles-wrap   { position: relative; }
.footer-articles-toggle { display: none; }              /* shown only when JS ready */
.footer-caret {
  display: inline-block; font-size: 10px; opacity: 0.6;
  transition: transform var(--chrome-ease);
}

/* No-JS fallback: plain footer-col list */
.footer-articles-panel a {
  display: block; font-size: 13px; color: #666;
  padding: 3px 0; text-decoration: none;
  transition: color var(--chrome-ease);
}
.footer-articles-panel a:hover { color: #fff; }

/* JS-enhanced popup */
.footer-articles-wrap.js-ready .footer-articles-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 3px 0; border: 0; background: none;
  font: inherit; font-size: 13px; color: #666;
  text-align: left; cursor: pointer;
  transition: color var(--chrome-ease);
}
.footer-articles-wrap.js-ready .footer-articles-toggle:hover { color: #fff; }
.footer-articles-toggle[aria-expanded="true"] .footer-caret { transform: rotate(-90deg); }

.footer-articles-wrap.js-ready .footer-articles-panel {
  display: none;
  position: absolute; bottom: calc(100% + 6px); left: 0;
  min-width: 230px; max-height: 60vh; overflow-y: auto;
  background: #1a1a1c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 8px; z-index: 500;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.footer-articles-wrap.js-ready .footer-articles-panel.open { display: block; }
.footer-articles-wrap.js-ready .footer-articles-panel a {
  padding: 7px 12px; border-radius: 6px;
  color: #aaa; white-space: nowrap;
  transition: background var(--chrome-ease), color var(--chrome-ease);
}
.footer-articles-wrap.js-ready .footer-articles-panel a:hover {
  background: rgba(255,255,255,0.07); color: #fff;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

/* Mid: 743–1042px, hide logo, keep full nav links */
@media (max-width:1042px) and (min-width:743px) {
  .nav-logo { display: none; }
}

/* Mobile: ≤742px, hamburger menu */
@media (max-width:742px) {
  .nav-logo { display: none; }

  #navLinks { display: none; }
  #navLinks.open {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.99);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px 5%; z-index: 999;
  }
  #navLinks > li > button {
    width: 100%; justify-content: space-between; font-size: 15px; padding: 12px 14px;
  }
  #navLinks > li > .nav-plain-link {
    width: 100%; font-size: 15px; padding: 12px 14px; border-radius: 0;
  }
  .dropdown-panel {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; box-shadow: none; border: none; border-radius: 0;
    background: transparent; padding: 0 0 0 16px; display: none;
  }
  #navLinks > li.open .dropdown-panel { display: block; transform: none; }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .btn-demo   { grid-column: 2; display: inline-flex; }
  #navToggle  { display: flex; grid-column: 3; justify-self: end; }

  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-bottom: 32px; }
  .footer-brand  { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Small mobile footer: keep two-up links, tighten gap */
@media (max-width:600px) {
  .footer-grid { gap: 24px 18px; }
}

/* Logo image fallback wordmark uses the existing .nav-logo-text /
   .footer-brand-text classes; op-chrome.js replaces a broken logo <img>
   with that span (removing the image so its alt text cannot also render). */
