/* ============================================================
   EQ Consulting — WordPress compatibility layer
   Maps WP menu / editor markup onto the original design.
   ============================================================ */

/* ---------- Primary menu: WP outputs <li> items, style them like the
   original inline <a> links, and <ul.sub-menu> like the .drop panel. ---------- */
#eq-site .nav-links > li,
#eq-site .nav-links li.menu-item {
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}
#eq-site .nav-links li.menu-item > a {
  font-size: .96rem;
  color: var(--slate);
  white-space: nowrap;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
#eq-site .nav-links li.menu-item > a:hover,
#eq-site .nav-links li.current-menu-item > a {
  color: var(--royal);
}

/* Dropdown caret for parents */
#eq-site .nav-links li.menu-item-has-children > a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2.4px solid currentColor;
  border-bottom: 2.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
  flex: 0 0 auto;
}
#eq-site .nav-links li.menu-item-has-children:hover > a::after,
#eq-site .nav-links li.menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg) translateY(-2px);
}

/* Sub-menu styled exactly like the original .drop panel */
#eq-site .nav-links ul.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  transform: translateY(8px);
  width: 264px;
  max-width: 86vw;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 50px -18px rgba(15, 36, 112, .35);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 60;
  list-style: none;
  display: block;
}
#eq-site .nav-links ul.sub-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
#eq-site .nav-links li.menu-item-has-children:hover > ul.sub-menu,
#eq-site .nav-links li.menu-item-has-children:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(6px);
}
#eq-site .nav-links ul.sub-menu li {
  display: block;
  width: 100%;
}
#eq-site .nav-links ul.sub-menu a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--royal);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  transition: background .18s;
}
#eq-site .nav-links ul.sub-menu a:hover {
  background: var(--mist);
  color: var(--royal);
}
/* Gold square marker in place of the original inline icon tile */
#eq-site .nav-links ul.sub-menu a::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--royal);
  position: relative;
  box-shadow: inset 0 0 0 10px var(--royal);
}
#eq-site .nav-links ul.sub-menu a::after {
  content: "";
  position: absolute;
  margin-left: 11px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--yellow);
  pointer-events: none;
}

@media (max-width: 900px) {
  #eq-site .nav-links > li,
  #eq-site .nav-links li.menu-item {
    display: block;
    width: 100%;
  }
  #eq-site .nav-links ul.sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    width: auto;
    margin-top: 6px;
  }
  #eq-site .nav-links ul.sub-menu::before { display: none; }
  #eq-site .nav-links li.menu-item-has-children > a::after { display: none; }
}

/* ---------- Editor content inside .sec .wrap (page.php / privacy) ---------- */
#eq-site .entry-content > * { margin-bottom: 18px; }
#eq-site .entry-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 34px 0 14px;
}
#eq-site .entry-content h3 {
  font-size: 1.25rem;
  color: var(--royal);
  margin: 26px 0 12px;
}
#eq-site .entry-content p { color: var(--slate); line-height: 1.75; }
#eq-site .entry-content ul,
#eq-site .entry-content ol { margin: 12px 0 18px 1.25rem; color: var(--slate); }
#eq-site .entry-content li { margin-bottom: 8px; }
#eq-site .entry-content a {
  color: var(--royal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#eq-site .entry-content img { border-radius: 12px; }
#eq-site .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
#eq-site .alignfull { max-width: none; }
#eq-site .aligncenter { margin-left: auto; margin-right: auto; }

/* Pagination (blog / archive) */
#eq-site .pagination .nav-links { position: static; display: flex; gap: 10px; flex-wrap: wrap; background: none; padding: 0; transform: none; border: none; }
#eq-site .pagination .page-numbers {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: .5em 1em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--slate);
}
#eq-site .pagination .page-numbers.current,
#eq-site .pagination .page-numbers:hover { background: var(--royal); color: #fff; border-color: var(--royal); }

/* Screen-reader helper */
#eq-site .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
