/* ══ WebEaze Nav — Custom header, no Bootstrap ════════════════════════════════
   Fixed 64px bar. Mobile menu overlays (no push-down, no flicker).
══════════════════════════════════════════════════════════════════════════════ */

/* ── Header shell ──────────────────────────────────────────────────────────── */
.wb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: transform .28s ease, box-shadow .2s;
}
.wb-header.wb-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.wb-header.wb-nav-hidden { transform: translateY(-100%); }
.wb-header-spacer { height: 64px; flex-shrink: 0; }

/* ── Inner bar ─────────────────────────────────────────────────────────────── */
.wb-nav-inner {
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

/* ── Logo ──────────────────────────────────────────────────────────────────── */
.wb-logo,
.wb-logo:hover,
.wb-logo:focus,
.wb-logo:visited,
.wb-logo:active {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: auto;
  color: inherit;
}
.wb-logo img { width: 28px; height: auto; }
.wb-logo-word {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1228;
  letter-spacing: -.025em;
  font-family: "Poppins", system-ui, sans-serif;
  text-decoration: none;
}

/* ── Desktop nav links ─────────────────────────────────────────────────────── */
.wb-nav {
  display: flex;
  align-items: center;
  gap: .05rem;
  margin-right: 1rem;
}
.wb-nav-item { position: relative; }

.wb-nav-link,
.wb-nav-link:hover,
.wb-nav-link:focus,
.wb-nav-link:visited {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .42rem .72rem;
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none !important;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: "Poppins", system-ui, sans-serif;
  transition: color .14s, background .14s;
  white-space: nowrap;
  line-height: 1;
}
.wb-nav-link:hover,
.wb-nav-link.wb-active { color: #7851a9; background: rgba(120,81,169,.07); }

/* ── Services dropdown ─────────────────────────────────────────────────────── */
.wb-chevron { font-size: .62rem; transition: transform .2s; }
.wb-has-dropdown.wb-dd-open .wb-chevron { transform: rotate(180deg); }

.wb-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  min-width: 270px;
  padding: .5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px) scale(.97);
  transform-origin: top center;
  transition: opacity .18s, transform .18s;
}
.wb-has-dropdown.wb-dd-open .wb-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.wb-dd-item,
.wb-dd-item:hover,
.wb-dd-item:visited {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .52rem 1.1rem;
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none !important;
  transition: background .12s, color .12s;
  font-family: "Poppins", system-ui, sans-serif;
}
.wb-dd-item:hover { background: rgba(120,81,169,.07); color: #7851a9; }
.wb-dd-item i { width: 16px; color: #9ca3af; font-size: .8rem; flex-shrink: 0; }
.wb-dd-item:hover i { color: #7851a9; }
.wb-dd-divider { height: 1px; background: #f0f0f0; margin: .35rem 0; }

/* ── Actions (portal + hamburger) ─────────────────────────────────────────── */
.wb-nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.wb-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .95rem;
  font-size: .82rem;
  font-weight: 700;
  color: #7851a9;
  border: 1.5px solid #7851a9;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s, color .14s;
  font-family: "Poppins", system-ui, sans-serif;
}
.wb-portal-btn:hover { background: #7851a9; color: #fff; text-decoration: none; }
/* Filled "Get Started" CTA that sits beside the portal button */
.wb-get-started-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .44rem 1.05rem;
  font-size: .82rem;
  font-weight: 700;
  color: #0a0a0a;
  background: #fff;
  border: 1.5px solid #0a0a0a;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .12s;
  font-family: "Poppins", system-ui, sans-serif;
}
.wb-get-started-btn:hover { background: #0a0a0a; border-color: #0a0a0a; color: #fff; text-decoration: none; }
.wb-get-started-btn:active { transform: scale(.95); }

/* ── Hamburger ─────────────────────────────────────────────────────────────── */
.wb-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem .4rem;
  border-radius: 7px;
  transition: background .14s;
}
.wb-hamburger:hover { background: rgba(0,0,0,.05); }
.wb-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.wb-hamburger[aria-expanded="true"] .wb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wb-hamburger[aria-expanded="true"] .wb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.wb-hamburger[aria-expanded="true"] .wb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay menu ───────────────────────────────────────────────────── */
.wb-mobile-menu {
  overflow: hidden;
  max-height: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  transition: max-height .32s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 1;
}
.wb-mobile-menu.wb-open { max-height: 90vh; overflow-y: auto; }

/* Blurred scrim behind the open mobile menu (built by nav.js). Sits below the
   fixed header (z 1040) so the menu stays on top, above page content. */
.wb-mob-backdrop {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(15, 18, 40, .35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 1035;
}
.wb-mob-backdrop.wb-show { opacity: 1; visibility: visible; }
@media (min-width: 992px) {
  .wb-mob-backdrop { display: none !important; }
}
.wb-mob-inner {
  padding: .75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.wb-mob-link,
.wb-mob-link:hover,
.wb-mob-link:visited {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .72rem .25rem;
  font-size: .92rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none !important;
  border-bottom: 1px solid #f3f4f6;
  transition: color .12s;
  font-family: "Poppins", system-ui, sans-serif;
}
.wb-mob-link:last-of-type { border-bottom: none; }
/* A link right before a divider shouldn't also draw its own line (avoids a
   doubled-up line where a menu section ends). */
.wb-mob-link:has(+ .wb-mob-divider) { border-bottom: none; }
.wb-mob-link:hover,
.wb-mob-link.wb-active { color: #7851a9; }
.wb-mob-link i { width: 16px; font-size: .85rem; color: #9ca3af; flex-shrink: 0; }
.wb-mob-link:hover i { color: #7851a9; }
.wb-mob-sub {
  padding-left: 1.75rem;
  font-size: .875rem;
  color: #6b7280;
}
/* ── Mobile "Our Services" accordion (built by nav.js) ── */
.wb-mob-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  padding: .72rem .25rem;
  font-size: .92rem;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  font-family: "Poppins", system-ui, sans-serif;
  cursor: pointer;
  transition: color .12s;
}
/* Only show a divider under the toggle when open (separating it from the
   service links). When collapsed, the existing menu divider is the only line. */
.wb-mob-accordion.wb-open { border-bottom: 1px solid #f3f4f6; }
.wb-mob-accordion > span { display: inline-flex; align-items: center; gap: .6rem; }
.wb-mob-accordion > span > i { width: 16px; }
.wb-mob-accordion i { font-size: .85rem; color: #9ca3af; flex-shrink: 0; }
.wb-mob-accordion:hover,
.wb-mob-accordion.wb-open { color: #7851a9; }
.wb-mob-accordion:hover i,
.wb-mob-accordion.wb-open i { color: #7851a9; }
.wb-mob-acc-chevron { transition: transform .25s ease; }
.wb-mob-accordion.wb-open .wb-mob-acc-chevron { transform: rotate(180deg); }
.wb-mob-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
}
.wb-mob-submenu.wb-open { max-height: 520px; }
/* Inside the accordion, indent "All Services" to match the other entries. */
.wb-mob-submenu .wb-mob-link { padding-left: 1.75rem; }
.wb-mob-divider {
  height: 1px;
  background: #e5e7eb;
  margin: .6rem 0;
  border: none;
}
.wb-mob-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  padding: .6rem 1.1rem;
  font-size: .875rem;
  font-weight: 700;
  color: #7851a9;
  border: 1.5px solid #7851a9;
  border-radius: 8px;
  text-decoration: none;
  transition: background .14s, color .14s;
  font-family: "Poppins", system-ui, sans-serif;
  width: fit-content;
}
.wb-mob-cta:hover { background: #7851a9; color: #fff; }

/* ── Responsive breakpoints ────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .wb-nav { display: none; }
  .wb-hamburger { display: flex; }
  .wb-portal-btn { display: none; }
  /* Keep "Get Started" visible in the mobile bar as the primary CTA */
  .wb-get-started-btn { padding: .4rem .8rem; font-size: .8rem; }
}
@media (max-width: 380px) {
  .wb-get-started-btn { padding: .38rem .65rem; font-size: .76rem; }
}
@media (min-width: 992px) {
  .wb-mobile-menu { display: none !important; }
  /* Three-zone bar: logo left, nav links centered, actions right.
     Grid keeps the nav dead-center and independent of the logo's width, so
     hovering the logo never nudges the menu items. */
  .wb-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  /* Nudge the logo in from the far-left edge so it isn't flush to the border. */
  .wb-logo { margin: 0 0 0 1.5rem; justify-self: start; }
  .wb-nav { margin: 0; justify-self: center; }
  .wb-nav-actions { margin: 0; justify-self: end; }
}

/* ── Portal demo embed (service pages) ─────────────────────────────────────── */
.portal-embed { border-radius: 14px; overflow: hidden; border: 1px solid #e4e7f1; box-shadow: 0 20px 50px rgba(15,18,40,.16); background: #fff; max-width: 100%; }
.portal-embed .pe-bar { display: flex; align-items: center; gap: 6px; padding: 9px 13px; background: #f1f2f7; border-bottom: 1px solid #e4e7f1; }
.portal-embed .pe-dot { width: 9px; height: 9px; border-radius: 50%; background: #d3d6e2; }
.portal-embed .pe-url { margin-left: 10px; font-size: 11.5px; color: #6b7094; font-weight: 600; font-family: "Poppins", system-ui, sans-serif; }
.portal-embed .pe-screen { position: relative; height: 440px; overflow: hidden; }
.portal-embed .pe-screen iframe { width: 100%; height: 1100px; border: 0; pointer-events: none; display: block; }
.portal-embed .pe-overlay { position: absolute; inset: 0; display: block; }

/* Cleaner service-page heroes on mobile: hide the decorative trust-pill row
   (Flat pricing, You own everything, 3 revisions included, etc.). Kept on desktop. */
@media (max-width: 640px) {
  .hero-trust { display: none !important; }
}

/* "Works best with" related-service pills (replaces the text-heavy card grid) */
.related-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.related-pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 1.5px solid var(--line, #e5e7eb); border-radius: 100px; background: #fff; font-weight: 600; font-size: 1rem; color: var(--text, #0f1228); text-decoration: none; transition: border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.related-pill:hover { border-color: var(--brand, #7851a9); color: var(--brand, #7851a9); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(120,81,169,.12); }
.related-pill > i:first-child { color: var(--brand, #7851a9); font-size: .95rem; }
.related-pill-arrow { font-size: .72rem; opacity: .45; transition: transform .2s, opacity .2s; }
.related-pill:hover .related-pill-arrow { transform: translateX(3px); opacity: 1; }

/* ------------------------------------------------------------------
   Global focus polish (loaded on nearly every page)
   Bootstrap Reboot sets `button:focus { outline: 5px auto -webkit-focus-ring-color }`,
   which paints the OS accent ring (blue by default, orange when the macOS accent is
   orange) on every <button> the instant it's clicked. Replace it site-wide:
     - mouse / touch  -> no ring (clean)
     - keyboard       -> a soft brand-purple ring (accessibility preserved)
   The :not(:focus-visible) / :focus-visible selectors outrank Bootstrap's plain
   `button:focus`, so this wins regardless of stylesheet load order.
   ------------------------------------------------------------------ */
button:focus:not(:focus-visible) { outline: none; }
button:focus-visible {
  outline: 2px solid rgba(120, 81, 169, .55);
  outline-offset: 2px;
}
