/**
 * ABDflow official brand lockup — exact match to corporate HTML signature.
 *
 * Full lockup: logo image + ABD (gradient 800) + flow (400, white/shadowed) + tagline
 * Icon-only: same official logo PNG (backgroundless)
 * Name-only: ABD + flow spans with exact type treatment
 */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700;800&display=swap');

:root {
  --abd-brand-logo: url("/logos/abdflow-logo-official%20Background%20Removed.png");
  --abd-brand-logo-src: "/logos/abdflow-logo-official%20Background%20Removed.png";
  --abd-brand-abd-from: #002277;
  --abd-brand-abd-to: #0077ff;
  --abd-brand-abd-fallback: #0052cc;
  --abd-brand-flow: #ffffff;
  --abd-brand-flow-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5), -1px -1px 2px rgba(0, 0, 0, 0.1);
  --abd-brand-tagline: #333333;
}

/* —— Wordmark parts ——
   ABD + flow must always read as one word "ABDflow" — never spaced or stacked. */
.abd-brand-name {
  display: inline !important;
  white-space: nowrap !important;
  letter-spacing: -1px !important;
  font-size: inherit !important;
  line-height: 1 !important;
}
.abd-word,
.flow-word {
  font-family: 'Raleway', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-style: normal !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: -0.02em !important;
  word-spacing: 0 !important;
  text-decoration: none !important;
  vertical-align: baseline !important;
  float: none !important;
  position: static !important;
}
/* Kill any accidental whitespace text nodes between the two spans */
.abd-brand-name {
  font-size: 0 !important; /* collapse inter-tag whitespace */
}
.abd-brand-name .abd-word,
.abd-brand-name .flow-word {
  font-size: var(--abd-brand-name-size, 22px) !important;
}

/* ABD — bold + gradient (exact) */
.abd-word {
  font-weight: 800 !important;
  color: var(--abd-brand-abd-fallback) !important;
  background: linear-gradient(135deg, var(--abd-brand-abd-from), var(--abd-brand-abd-to)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* flow — normal weight, white + signature shadow (exact on dark) */
.flow-word {
  font-weight: 400 !important;
  color: var(--abd-brand-flow) !important;
  -webkit-text-fill-color: var(--abd-brand-flow) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: var(--abd-brand-flow-shadow) !important;
  opacity: 1 !important;
}

/*
 * Light surfaces: white "flow" disappears on pale headers.
 * Keep weight/lettering exact; use deep ink + soft depth so the lockup stays legible.
 * Dark surfaces keep the official white + multi-shadow treatment.
 */
.global-header:not(.is-dark) .flow-word,
.site-header:not(.is-dark) .flow-word,
.site-header .brand-text:not([data-brand-surface="dark"]) .flow-word,
[data-brand-surface="light"] .flow-word,
.brand-text:not([data-brand-surface="dark"]) .flow-word {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 1px 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.footer .flow-word,
.footer-brand .flow-word,
.footer .brand-text .flow-word,
.site-header.is-dark .flow-word,
.global-header.is-dark .flow-word,
[data-brand-surface="dark"] .flow-word,
.brand-text[data-brand-surface="dark"] .flow-word {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: var(--abd-brand-flow-shadow) !important;
}

/* —— Tagline: Advanced Business Dynamics Flow (exact) —— */
.brand-text small,
.abd-brand-lockup small,
.abd-brand-tagline,
[data-abd-brand-lockup] small {
  display: block !important;
  margin-top: 0.35em !important;
  font-family: 'Raleway', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-size: 0.52em !important;
  line-height: 1.2 !important;
  letter-spacing: 3.5px !important;
  text-transform: uppercase !important;
  color: var(--abd-brand-tagline) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.footer .brand-text small,
.footer-brand .brand-text small,
[data-brand-surface="dark"] small {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* —— Full lockup containers —— */
.global-header .logo,
.site-header .brand,
.footer .brand,
.footer-brand .brand,
.abd-brand-lockup,
[data-abd-brand-lockup].brand-text {
  font-family: 'Raleway', 'Segoe UI', Roboto, Arial, sans-serif !important;
  text-decoration: none !important;
}

.global-header .logo,
.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Official logo image — always backgroundless, no tile */
.global-header .logo > img,
.site-header .brand-logo-wrap,
.site-header .brand-logo-wrap img,
.site-header .brand > img,
.footer .brand > img,
.footer-brand .brand > img,
.abd-official-logo,
img.abd-official-logo,
.abd-brand-icon {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

.site-header .brand-logo-wrap {
  width: auto !important;
  height: auto !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Header / chrome sizing (scaled from 150px logo + 64px type) */
.site-header .brand-logo-wrap img,
.site-header .brand > img:first-child {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  display: block !important;
}

.site-header .brand-text {
  display: block !important;
  line-height: 1 !important;
  font-size: 22px !important;
  --abd-brand-name-size: 22px;
  font-weight: 400 !important;
  letter-spacing: -1px !important;
  color: inherit !important;
}

.site-header .brand-text .abd-brand-name .abd-word,
.site-header .brand-text .abd-brand-name .flow-word,
.site-header .brand-text > .abd-word,
.site-header .brand-text > .flow-word {
  font-size: 22px !important;
  line-height: 1 !important;
}
/* If spans are direct children without wrapper, keep them on one line */
.site-header .brand-text > .abd-word,
.site-header .brand-text > .flow-word {
  display: inline !important;
}

.site-header .brand-text small {
  margin-top: 4px !important;
  font-size: 8px !important;
  letter-spacing: 2.2px !important;
}

/* Homepage glass header */
.global-header .logo {
  font-size: 26px !important;
  --abd-brand-name-size: 26px;
  font-weight: 400 !important;
  letter-spacing: -1px !important;
  line-height: 1 !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.global-header .logo .abd-brand-name {
  font-size: 0 !important;
}
.global-header .logo .abd-word,
.global-header .logo .flow-word {
  display: inline !important;
  font-size: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.global-header .logo > img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  margin-right: 0 !important;
  display: block !important;
}

.global-header .logo .abd-brand-name .abd-word,
.global-header .logo .abd-brand-name .flow-word {
  font-size: 26px !important;
  line-height: 1 !important;
}

/* Footer lockup */
.footer .brand,
.footer-brand .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.footer .brand > img,
.footer-brand .brand > img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
}

.footer .brand-text {
  display: block !important;
  font-size: 24px !important;
  --abd-brand-name-size: 24px;
  line-height: 1 !important;
  letter-spacing: -1px !important;
}
.footer .brand-text .abd-word,
.footer .brand-text .flow-word {
  display: inline !important;
  font-size: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer .brand-text small {
  font-size: 8px !important;
  letter-spacing: 2.4px !important;
  margin-top: 5px !important;
}

/* Site loader mark */
.abd-site-loader__mark img,
.abd-site-loader__mark .abd-official-logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* Inline brand name row (no image) */
.abd-brand-name {
  font-family: 'Raleway', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-size: inherit;
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
  text-decoration: none !important;
}

/* Product pages still get correct colors if spans exist */
body[data-product-page="true"] .abd-word,
body[data-product-page="true"] .flow-word {
  /* inherits exact treatment */
}

/* Mobile: hide long tagline under lockup where space is tight */
@media (max-width: 720px) {
  .site-header .brand-text small,
  .global-header .logo small {
    display: none !important;
  }
  .site-header .brand-text {
    font-size: 18px !important;
    --abd-brand-name-size: 18px;
  }
  .site-header .brand-text .abd-word,
  .site-header .brand-text .flow-word {
    font-size: 18px !important;
  }
  .global-header .logo {
    font-size: 20px !important;
    --abd-brand-name-size: 20px;
  }
  .global-header .logo .abd-word,
  .global-header .logo .flow-word {
    font-size: 20px !important;
  }
}


/* ===== ABDFLOW_NO_SPACE_LOCK =====
   Hard guarantee: "ABD" + "flow" = "ABDflow" with zero gap, never stacked. */
.abd-word + .flow-word {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.brand-text,
.logo,
.brand-name,
[data-abd-brand-lockup] {
  /* do not flex the word parts into a column */
}
.brand-text {
  display: block !important;
}
.brand-text > .abd-word,
.brand-text > .flow-word,
.logo > .abd-word,
.logo > .flow-word,
.brand-name > .abd-word,
.brand-name > .flow-word,
.abd-brand-name > .abd-word,
.abd-brand-name > .flow-word {
  display: inline !important;
  white-space: nowrap !important;
}
.abd-brand-name {
  display: inline-block !important;
  white-space: nowrap !important;
  vertical-align: baseline;
}
/* Collapse HTML whitespace between ABD and flow spans */
.brand-text,
.logo,
.abd-brand-name {
  word-spacing: 0 !important;
}


/* ===== FOOTER_ABDFLOW_COM_FIX ===== */
.abdflow-word {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: inherit;
  word-spacing: 0 !important;
  white-space: nowrap !important;
}
/* Never invent a space between brand mark and .com */
.abdflow-word + .abdflow-word,
.footer-bottom,
.abd-footer-bottom,
.footer-legal {
  word-spacing: 0 !important;
}
.footer-bottom .abd-word,
.footer-bottom .flow-word,
.abd-footer-bottom .abd-word,
.abd-footer-bottom .flow-word {
  /* copyright lines must stay plain text "ABDflow.com" — if spans appear, keep tight */
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}
.footer-bottom .abd-word + .flow-word,
.abd-footer-bottom .abd-word + .flow-word {
  margin-left: 0 !important;
}
