/**
 * ZBI Design System v1 — canonical visual layer
 * Load after zbi-site.css on WP and static hubs.
 * Tools runtime uses tools-runtime-chrome.css (compact header variant).
 */

:root {
  --zbi-shell-max: 1180px;
  --zbi-shell-gutter: 1.25rem;
  --zbi-logo-width: 198px;
  --zbi-logo-width-mobile: 180px;
  --zbi-ds-max: var(--zbi-shell-max);
  --zbi-ds-gutter: var(--zbi-shell-gutter);
  --zbi-ds-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --- Breadcrumb bar (below header) --- */
.zbi-breadcrumb-bar {
  background: #f8fbf9;
  border-bottom: 1px solid var(--border, #dfe5df);
}
.zbi-breadcrumb-inner {
  max-width: var(--zbi-ds-max);
  margin: 0 auto;
  padding: 0.65rem var(--zbi-ds-gutter);
}
.zbi-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted, #6b756f);
}
.zbi-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.zbi-breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: #a8b5ad;
  font-weight: 400;
}
.zbi-breadcrumb-item a {
  color: var(--green, #214f42);
  font-weight: 700;
  text-decoration: none;
}
.zbi-breadcrumb-item a:hover {
  text-decoration: underline;
}
.zbi-breadcrumb-item.is-current span {
  color: var(--ink, #13201b);
  font-weight: 800;
}

/* Legacy .breadcrumb alias (barcode, converters) */
.breadcrumb,
p.breadcrumb {
  max-width: var(--zbi-ds-max);
  margin: 0 auto;
  padding: 0.65rem var(--zbi-ds-gutter);
  font-size: 0.82rem;
  color: var(--muted, #6b756f);
  background: #f8fbf9;
  border-bottom: 1px solid var(--border, #dfe5df);
}
.breadcrumb a {
  color: var(--green, #214f42);
  font-weight: 700;
  text-decoration: none;
}

/* --- Neutralize zbi-core oversized hero when both load --- */
body.zbi-ds-active .hero h1,
body.zbi-ds-active .zbi-h1 {
  font-size: clamp(2.55rem, 5.4vw, 4.75rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
}
body.zbi-ds-active .hero,
body.zbi-ds-active .zbi-hero {
  padding: 4.4rem 0 3rem !important;
  border-radius: 0 !important;
}
body.zbi-ds-active main {
  max-width: var(--zbi-ds-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--zbi-ds-gutter) !important;
}

/* --- Tools header variant — same logo grid as WP (compact vertical padding only) --- */
.site-header--tools {
  box-shadow: 0 6px 20px rgba(19, 32, 27, 0.05);
}
.site-header--tools .site-header-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.site-header--tools .site-nav a {
  font-size: 0.68rem;
  padding: 0.45rem 0.55rem;
}
.site-header--tools .nav-phone {
  display: none;
}

/* --- ADS-P0-003: blank white CTA on light hero --- */
.hero-reference .btn.ghost,
.hero .btn.ghost,
.hero-enterprise .btn.ghost {
  background: var(--green-3, #2f6d5b) !important;
  color: #fff !important;
  border-color: var(--green-3, #2f6d5b) !important;
  box-shadow: 0 8px 18px rgba(47, 109, 91, 0.22) !important;
}
.hero-reference .btn.ghost:hover,
.hero .btn.ghost:hover {
  background: var(--green, #214f42) !important;
  border-color: var(--green, #214f42) !important;
}

/* --- Unified button radius (match analyzers hub) --- */
.btn,
.zbi-btn {
  border-radius: 3px;
}

@media (max-width: 680px) {
  .zbi-breadcrumb-inner,
  .breadcrumb {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .site-header--tools .site-nav {
    width: 100%;
  }
}

/* --- Contact / mobile overflow (UX S7) --- */
body.zbi-ds-active {
  overflow-x: clip;
}
.contact-layout,
.contact-card,
.contact-info-card,
.contact-form,
.zbi-main {
  max-width: 100%;
}
.site-nav {
  max-width: 100%;
}
.site-nav .nav-phone {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.elementor-section,
.elementor-container,
.elementor-widget-wrap {
  max-width: 100% !important;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .site-nav .nav-phone {
    display: none;
  }
  .site-nav {
    gap: 4px;
  }
}
@media (max-width: 980px) {
  .contact-fields {
    grid-template-columns: 1fr !important;
  }
  .contact-info-card::before {
    display: none;
  }
}
