/* ============================================================
   nav-footer.css — the shared site nav + footer.
   Used by index.html and cookies.html (and any future page).

   Depends on: css/index.css must be loaded first on the same page —
   it defines the CSS custom properties (--green-900, --border,
   --nav-h, --shadow, --text-muted, --font, etc.), the base reset,
   and the .wq-btn-primary button styles this file reuses. This
   file only carries rules whose selector is nav/footer-specific.
   ============================================================ */

.wq-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--green-900);
  flex-shrink: 0;
  text-decoration: none;
}

.wq-nav-logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: var(--font), Arial, sans-serif;
  margin-left: 0;
  background: linear-gradient(
    90deg,
    #8adf54 0%,
    #1db1b3 25%,
    #4569a2 50%,
    #0d369c 75%,
    #0d369c 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
}

.tm {
  font-size: 10px;
  font-weight: 800;
  color: #0d369c;
  -webkit-text-fill-color: #0d369c;
  position: relative;
  top: -8px;
  left: 2px;
  margin-left: 0;
  line-height: 1;
}

/* Footer smaller size */
.wq-footer .logo-text {
  font-size: 1.35rem;
  margin-left: 0;
}

.wq-footer .tm {
  color: #4ade80;
  -webkit-text-fill-color: #4ade80;
  font-size: 10px;
  top: -8px;
  left: 2px;
}

/* ── NAV ─────────────────────────────────────── */
.wq-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(10,32,22,.04);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.wq-nav.scrolled { border-color: var(--border); box-shadow: var(--shadow); background: rgba(255,255,255,.97); }
.wq-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.wq-logo-light span { color: white; }
.wq-nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
.wq-nav-links a { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color .2s, background .2s; white-space: nowrap; }
.wq-nav-links a:hover,
.wq-nav-links li.active > a {
  color: var(--green-700);
  background: var(--green-50);
  text-decoration: none;
}
.wq-nav-links li.has-dropdown {
  position: relative;
}
/* Invisible hover bridge so the cursor can travel from the nav link down to the dropdown.
   (Not currently used by the injected nav markup — kept in case a dropdown submenu is added later.) */
.wq-nav-links li.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.wq-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.wq-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }
.wq-mobile-menu { display: none; flex-direction: column; padding: 16px 24px 24px; background: white; border-top: 1px solid var(--border); gap: 4px; }
.wq-mobile-menu a { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text-muted); }
.wq-mobile-menu a.wq-btn-primary { color: white !important; }
.wq-mobile-menu.open { display: flex; }

/* ── FOOTER ──────────────────────────────────── */
.wq-footer { background: var(--green-900); color: rgba(255,255,255,.75); }
.wq-footer-top { max-width: 1280px; margin: 0 auto; padding: 72px 32px 48px; display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
.wq-footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: 16px; color: rgba(255,255,255,.5); }
.wq-social { display: flex; gap: 14px; margin-top: 24px; }
.wq-social a { color: rgba(255,255,255,.4); transition: color .2s; }
.wq-social a:hover { color: var(--green-400); }
.wq-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.wq-footer-col h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.wq-footer-col a { display: block; font-size: .875rem; color: rgba(255,255,255,.6); padding: 4px 0; transition: color .2s; }
.wq-footer-col a:hover { color: var(--green-400); }
.wq-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 32px; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; font-size: .8rem; color: rgba(255,255,255,.35); }
.wq-footer-bottom strong { color: rgba(255,255,255,.6); }
.wq-footer-bottom strong a { transition: color .2s; }
.wq-footer-bottom strong a:hover { color: var(--green-400); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .wq-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .wq-footer-cols { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .wq-nav-links, .wq-nav-actions { display: none; }
  .wq-hamburger { display: flex; margin-left: auto; }
  .wq-footer-cols { grid-template-columns: 1fr 1fr; }
  /* Products + Solutions/Partnership fill row 1 (one column each), but
     Company is the 3rd item dropped into a 2-column grid, so it lands
     alone in row 2 col 1 and the whole of row 2 col 2 sits empty — the
     "left aligned, right side is wasted space" look. Spanning Company
     across both columns and flowing its long link list into 2 CSS columns
     turns it into an actual 2-column row instead of one narrow list. */
  .wq-footer-col:last-child {
    grid-column: 1 / -1;
    column-count: 2;
    -webkit-column-count: 2;
    column-gap: 32px;
    -webkit-column-gap: 32px;
  }
  .wq-footer-top    { padding: 48px 20px 32px; }
  .wq-footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 20px; }
}
@media (max-width: 480px) {
  .wq-footer-top    { padding: 40px 16px 28px; }
  .wq-footer-bottom { padding: 14px 16px; }
}
