/**
 * Sheba Consulting — site-wide v2 craft layer
 * ============================================
 * Raises non-AI marketing pages to the AI Implementation craft bar:
 * Montserrat hierarchy, navy/near-black type, soft cards, tri bullets,
 * denser sections, responsive grids. Content/copy unchanged.
 *
 * SCOPE: body:not(.sheba-ai-page) so AI landing (.sheba-ai-landing) is untouched.
 * Does NOT add SheBot. Yellow is accent only (triangles / .yellow-highlight / CTAs).
 * Relies on sheba-site-tokens.css + existing CTA chrome.
 * LOCK: Never restyle WP #mainHeader / site footer (sheba-footer.php).
 * AI Implementation RHS header+footer are the locked reference. Never import
 * header/footer from the left-hand standalone example.
 */

/* =============================================================================
   1. BASE TYPE + PAGE CHROME
   ============================================================================= */

body:not(.sheba-ai-page) {
  font-family: var(--font-sans);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.sheba-ai-page) main,
body:not(.sheba-ai-page) .container,
body:not(.sheba-ai-page) .font-bullets,
body:not(.sheba-ai-page) .font-pageHeadliner,
body:not(.sheba-ai-page) .font-neutral {
  font-family: var(--font-sans);
}

body:not(.sheba-ai-page) p,
body:not(.sheba-ai-page) .font-bullets,
body:not(.sheba-ai-page) .text-bullets,
body:not(.sheba-ai-page) .text-bulletsMobile,
body:not(.sheba-ai-page) li.yellow-triangle-bullet {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  font-weight: var(--fw-regular);
}

/* DaisyUI muddy defaults → clean bands */
body:not(.sheba-ai-page) .bg-gray-50 {
  background-color: var(--gray-50) !important;
}

/* Mid-page navy CTA bands only — exclude site footer (.font-footer) + header chrome */
body:not(.sheba-ai-page) .bg-footer:not(.font-footer):not(#mainHeader):not(.main-header-bar) {
  background-color: var(--sheba-navy) !important;
  color: #fff;
}

body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .font-bullets,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) p,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) strong {
  color: rgba(255, 255, 255, 0.92);
}


/* =============================================================================
   LOCKED CHROME
   Do not add rules for #mainHeader / .main-header-bar / .fixed-header /
   div.bg-footer.font-footer (sheba-footer.php). AI page RHS is the reference.
   Never import header/footer from the left-hand standalone.
   ============================================================================= */


/* =============================================================================
   2. HEROES / HEADLINERS
   ============================================================================= */

body:not(.sheba-ai-page) .sheba-main-cta-headliner {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-black) !important;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight) !important;
  font-size: clamp(1.85rem, 4.2vw, 3.5rem) !important;
  text-transform: uppercase;
  color: #fff;
}

body:not(.sheba-ai-page) .sheba-main-cta-headliner .yellow-highlight,
body:not(.sheba-ai-page) .yellow-highlight {
  color: inherit;
  text-decoration: none !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(
    transparent 62%,
    rgba(255, 212, 0, 0.92) 62%,
    rgba(255, 212, 0, 0.92) 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  padding: 0 0.04em;
}

/* Secondary / tertiary page headliners from insert_page_secondary_headliner */
body:not(.sheba-ai-page) h1.text-pageHeadliner,
body:not(.sheba-ai-page) h1.text-pageHeadlinerMobile,
body:not(.sheba-ai-page) h1.md\:text-pageHeadliner,
body:not(.sheba-ai-page) .text-pageHeadlinerMobile,
body:not(.sheba-ai-page) .md\:text-pageHeadliner {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-extra) !important;
  letter-spacing: var(--ls-tight);
  color: var(--sheba-navy) !important;
  line-height: var(--lh-snug) !important;
}

body:not(.sheba-ai-page) h1.text-pageHeadlinerMobile {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
}

@media (min-width: 768px) {
  body:not(.sheba-ai-page) h1.md\:text-pageHeadliner,
  body:not(.sheba-ai-page) .md\:text-pageHeadliner {
    font-size: clamp(2.25rem, 3.5vw, 3rem) !important;
  }
}

body:not(.sheba-ai-page) h2.text-pageHeadlinerSecondary,
body:not(.sheba-ai-page) h2.text-pageHeadlinerSecondaryMobile,
body:not(.sheba-ai-page) .text-pageHeadlinerSecondaryMobile,
body:not(.sheba-ai-page) .md\:text-pageHeadlinerSecondary,
body:not(.sheba-ai-page) h2.font-pageHeadliner {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  letter-spacing: var(--ls-snug);
  color: var(--sheba-navy) !important;
  line-height: 1.25 !important;
  font-size: clamp(1.35rem, 2.4vw, 2rem) !important;
}

body:not(.sheba-ai-page) h3.text-pageHeadlinerTertiary,
body:not(.sheba-ai-page) h3.text-pageHeadlinerTertiaryMobile,
body:not(.sheba-ai-page) .text-pageHeadlinerTertiaryMobile,
body:not(.sheba-ai-page) .md\:text-pageHeadlinerTertiary,
body:not(.sheba-ai-page) .text-pageHeadlinerTertiary {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--sheba-navy) !important;
  line-height: 1.35 !important;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem) !important;
}

/* Home hero band: slightly tighter vertical rhythm on small screens */
@media (max-width: 640px) {
  body:not(.sheba-ai-page) .sheba-main-cta-headliner {
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
    padding-bottom: 1.25rem !important;
  }

  body:not(.sheba-ai-page) .bg-\[url\(\'\.\/public\/images\/top-bg\.jpg\'\)\] > .container,
  body:not(.sheba-ai-page) .bg-cover.bg-no-repeat > .container.h-\[450px\] {
    min-height: 320px;
    height: auto !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* =============================================================================
   3. BREADCRUMBS
   ============================================================================= */

body:not(.sheba-ai-page) .breadcrumbs {
  font-family: var(--font-sans);
  font-size: var(--fs-crumb);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  color: var(--gray-400);
}

body:not(.sheba-ai-page) .breadcrumbs > ul > li > a {
  color: var(--sheba-navy);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

body:not(.sheba-ai-page) .breadcrumbs > ul > li > a:hover {
  color: var(--sheba-blue);
  text-decoration: none;
}

body:not(.sheba-ai-page) .breadcrumbs > ul > li + *:before {
  color: var(--gray-400);
  opacity: 0.7;
}

body:not(.sheba-ai-page) .w-screen.bg-gray-50.font-neutral {
  background: var(--gray-50) !important;
  border-bottom: 1px solid var(--gray-100);
}

/* =============================================================================
   4. HOME SERVICE CARDS (.services-block)
   ============================================================================= */

body:not(.sheba-ai-page) .services-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: auto !important;
  min-height: 112px;
  width: calc(50% - 0.5rem) !important;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-1);
  background: #fff !important;
  color: var(--sheba-navy) !important;
  font-family: var(--font-display);
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
  font-weight: var(--fw-bold) !important;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    background-color 0.22s ease;
}

body:not(.sheba-ai-page) .services-block:hover {
  background: #fff !important;
  border-color: var(--sheba-light-blue) !important;
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
  color: var(--sheba-navy) !important;
}

body:not(.sheba-ai-page) .services-block > div:first-child {
  color: inherit;
}

body:not(.sheba-ai-page) .content-service-block-icons {
  border-color: #fff !important;
  box-shadow: 0 2px 8px rgba(31, 40, 60, 0.12);
  background-size: cover;
}

@media (min-width: 768px) {
  body:not(.sheba-ai-page) .services-block {
    width: 180px !important;
    min-height: 120px;
    font-size: 1rem !important;
  }
}

@media (min-width: 1024px) {
  body:not(.sheba-ai-page) .services-block {
    flex: 1 1 0% !important;
    width: auto !important;
    min-height: 128px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 640px) {
  body:not(.sheba-ai-page) .services-block {
    width: 100% !important;
    min-height: 96px;
  }

  body:not(.sheba-ai-page) .container.flex.flex-row.flex-wrap.gap-4 {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

/* =============================================================================
   5. TRIANGLE BULLETS (match AI .tri-bullets)
   ============================================================================= */

body:not(.sheba-ai-page) li.yellow-triangle-bullet {
  display: block !important;
  position: relative;
  padding-left: 28px !important;
  padding-bottom: 0 !important;
  margin: 0 0 14px;
  text-align: left;
  font-size: var(--fs-body) !important;
  line-height: 1.5 !important;
  color: var(--fg-1) !important;
  font-weight: var(--fw-regular);
}

body:not(.sheba-ai-page) li.yellow-triangle-bullet::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 7px;
  width: 0;
  height: 0;
  padding: 0 !important;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--sheba-yellow);
  color: transparent !important;
}

@media (min-width: 768px) {
  body:not(.sheba-ai-page) li.yellow-triangle-bullet {
    padding-left: 28px !important;
  }
}

body:not(.sheba-ai-page) ul.home-page-bullets,
body:not(.sheba-ai-page) ul.font-bullets {
  list-style: none;
  padding-left: 0;
}

/* “Does this sound familiar?” lead-in inside bullet lists */
body:not(.sheba-ai-page) ul.font-bullets > li.text-secondary,
body:not(.sheba-ai-page) ul.home-page-bullets > li.text-secondary {
  font-family: var(--font-display);
  font-weight: var(--fw-bold) !important;
  color: var(--sheba-navy) !important;
  font-size: var(--fs-h4) !important;
  margin-bottom: 1.25rem !important;
  padding-left: 0 !important;
}

body:not(.sheba-ai-page) ul.font-bullets > li.text-secondary::before,
body:not(.sheba-ai-page) ul.home-page-bullets > li.text-secondary::before {
  display: none !important;
  content: none !important;
}

/* =============================================================================
   6. SERVICE / CAPABILITY CARDS (configure_services_page)
   ============================================================================= */

body:not(.sheba-ai-page) .service-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  height: 100%;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

body:not(.sheba-ai-page) .service-card:hover {
  border-color: var(--sheba-light-blue);
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

body:not(.sheba-ai-page) .service-card img.rounded-2xl,
body:not(.sheba-ai-page) .sheba-service-card-top > img,
body:not(.sheba-ai-page) img.rounded-2xl {
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-1);
}

body:not(.sheba-ai-page) .svc-page-sheba-service-title,
body:not(.sheba-ai-page) .sheba-service-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
  color: var(--sheba-navy) !important;
  height: auto !important;
  margin-top: 1.25rem !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  letter-spacing: var(--ls-snug);
}

body:not(.sheba-ai-page) .svc-page-sheba-service-desc,
body:not(.sheba-ai-page) .sheba-service-desc {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  color: var(--fg-2) !important;
  margin-top: 0.75rem !important;
}

body:not(.sheba-ai-page) .sheba-service-icon-and-desc {
  background: var(--gray-50) !important;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg) !important;
  padding: var(--sp-5) !important;
}

/* Capability / offer grids: consistent gaps, stack ≤900px */
body:not(.sheba-ai-page) .grid.grid-cols-1.md\:grid-cols-3 {
  gap: 1.5rem !important;
}

@media (max-width: 900px) {
  body:not(.sheba-ai-page) .grid.md\:grid-cols-3,
  body:not(.sheba-ai-page) .grid.grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  body:not(.sheba-ai-page) .flex.flex-row.space-between.center-text.items-center {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  body:not(.sheba-ai-page) .flex.flex-row.space-between.center-text.items-center > img {
    display: none; /* already hidden below lg in theme; reinforce no overlap */
  }
}

@media (max-width: 640px) {
  body:not(.sheba-ai-page) .grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.sheba-ai-page) .service-card {
    padding: var(--sp-4);
  }
}

/* =============================================================================
   7. HORIZONTAL SEPARATORS / SECTION BANDS
   ============================================================================= */

body:not(.sheba-ai-page) hr.horizontal-separator {
  height: 1px !important;
  width: 100%;
  border: 0;
  margin: 0;
  background: var(--gray-200);
  opacity: 1;
}

body:not(.sheba-ai-page) .container.mx-auto.items-center.flex.flex-col {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Closing CTA navy bands — polish copy density; never site footer */
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-quotes,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-quotesMobile {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-snug);
  line-height: 1.45 !important;
}

/* =============================================================================
   8. TESTIMONIALS
   ============================================================================= */

body:not(.sheba-ai-page) .border.rounded-2xl.border-secondary {
  border-color: var(--gray-200) !important;
  border-radius: var(--radius-xl) !important;
  background: #fff;
  box-shadow: var(--shadow-1);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem) !important;
}

body:not(.sheba-ai-page) .testimonial-body {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  color: var(--fg-2);
  text-align: left !important;
}

body:not(.sheba-ai-page) .testimonial-signature {
  font-family: var(--font-sans);
  color: var(--sheba-navy);
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}

/* =============================================================================
   9. TEXT SECONDARY / LINKS (avoid muddy DaisyUI)
   ============================================================================= */

/* Scope to page content — never header/footer chrome */
body:not(.sheba-ai-page) main .text-secondary,
body:not(.sheba-ai-page) .container .text-secondary {
  color: var(--sheba-navy) !important;
}

body:not(.sheba-ai-page) main a.text-secondary:hover,
body:not(.sheba-ai-page) .container a.text-secondary:hover,
body:not(.sheba-ai-page) main .hover\:text-secondary:hover,
body:not(.sheba-ai-page) .container .hover\:text-secondary:hover {
  color: var(--sheba-blue) !important;
}

body:not(.sheba-ai-page) .sheba-service-read-more {
  color: var(--sheba-blue) !important;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
}

/* =============================================================================
   10. IMAGES
   ============================================================================= */

body:not(.sheba-ai-page) .container img.rounded-2xl,
body:not(.sheba-ai-page) .service-card img,
body:not(.sheba-ai-page) img.scroll-anim.rounded-2xl {
  border-radius: var(--radius-xl);
}

/* =============================================================================
   11. MOBILE / TABLET SAFETY
   ============================================================================= */

@media (max-width: 900px) {
  body:not(.sheba-ai-page) .content-service-block-icons {
    width: 28px;
    height: 28px;
    top: -6px;
    left: -6px;
  }
}

@media (max-width: 640px) {
  body:not(.sheba-ai-page) .container.m-auto.flex.flex-col.w-100,
  body:not(.sheba-ai-page) .container.mx-auto.items-center.flex.flex-col {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body:not(.sheba-ai-page) li.yellow-triangle-bullet {
    font-size: 15px !important;
  }
}

/* =============================================================================
   12. GUARD — never style AI landing interior
   ============================================================================= */

body.sheba-ai-page .sheba-ai-landing {
  /* intentional no-op fence: v2 rules above are body:not(.sheba-ai-page) */
}

/* === CONTRAST SAFETY ======================================================
   Never let craft-layer navy/dark type sit on dark bands, or light type on
   white cards. Header (#mainHeader) and site footer (.font-footer) stay locked.
   ========================================================================== */

/* --- Dark surfaces: mid-page .bg-footer bands + sunburst Our Values -------- */
body:not(.sheba-ai-page) .bg-footer:not(.font-footer),
body:not(.sheba-ai-page) .lg\:sunburst-bg,
body:not(.sheba-ai-page) .sunburst-bg {
  color: #fff;
}

body:not(.sheba-ai-page) .bg-footer:not(.font-footer) h1,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) h2,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) h3,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) h4,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) p,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) div,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) span,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) strong,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) em,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) li,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .font-bullets,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-quotes,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-quotesMobile,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-standard,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-darkBlue,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-secondary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadliner,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadlinerMobile,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .md\:text-pageHeadliner,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadlinerSecondary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadlinerSecondaryMobile,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .md\:text-pageHeadlinerSecondary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadlinerTertiary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadlinerTertiaryMobile,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .md\:text-pageHeadlinerTertiary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadlinerMedium,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .lg\:text-pageHeadlinerMedium,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .text-pageHeadlinerSecondary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .lg\:text-pageHeadliner,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .lg\:text-pageHeadlinerSecondary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .lg\:text-pageHeadlinerTertiary,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .font-pageHeadliner,
body:not(.sheba-ai-page) .lg\:sunburst-bg h1,
body:not(.sheba-ai-page) .lg\:sunburst-bg h2,
body:not(.sheba-ai-page) .lg\:sunburst-bg h3,
body:not(.sheba-ai-page) .lg\:sunburst-bg h4,
body:not(.sheba-ai-page) .lg\:sunburst-bg p,
body:not(.sheba-ai-page) .lg\:sunburst-bg div,
body:not(.sheba-ai-page) .lg\:sunburst-bg span,
body:not(.sheba-ai-page) .lg\:sunburst-bg strong,
body:not(.sheba-ai-page) .lg\:sunburst-bg .text-secondary,
body:not(.sheba-ai-page) .lg\:sunburst-bg .text-darkBlue,
body:not(.sheba-ai-page) .lg\:sunburst-bg [class*="text-pageHeadliner"],
body:not(.sheba-ai-page) .sunburst-bg h1,
body:not(.sheba-ai-page) .sunburst-bg h2,
body:not(.sheba-ai-page) .sunburst-bg h3,
body:not(.sheba-ai-page) .sunburst-bg [class*="text-pageHeadliner"],
body:not(.sheba-ai-page) .sunburst-bg .text-secondary {
  color: #ffffff !important;
}

/* Yellow CTAs inside dark bands keep dark label text */
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) a.btn-header-menu,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .btn-header-menu,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) a.sheba-cta-yellow,
body:not(.sheba-ai-page) .bg-footer:not(.font-footer) .sheba-btn-yellow,
body:not(.sheba-ai-page) .lg\:sunburst-bg a.btn-header-menu,
body:not(.sheba-ai-page) .lg\:sunburst-bg .btn-header-menu {
  color: #231F20 !important;
}

/* --- Light cards / testimonials: never inherit white ------------------------ */
body:not(.sheba-ai-page) .border.rounded-2xl.border-secondary,
body:not(.sheba-ai-page) .border.rounded-xl.border-secondary {
  background: #ffffff !important;
  color: var(--fg-1, #231F20);
}

body:not(.sheba-ai-page) .border.rounded-2xl.border-secondary .testimonial-body,
body:not(.sheba-ai-page) .border.rounded-xl.border-secondary .testimonial-body,
body:not(.sheba-ai-page) .testimonial-body,
body:not(.sheba-ai-page) .border.rounded-2xl.border-secondary p,
body:not(.sheba-ai-page) .border.rounded-xl.border-secondary p,
body:not(.sheba-ai-page) .border.rounded-2xl.border-secondary div:not([class*="quote"]):not([class*=" Quotation"]),
body:not(.sheba-ai-page) .border.rounded-xl.border-secondary div:not([class*="quote"]) {
  color: var(--fg-2, #4B5563) !important;
}

body:not(.sheba-ai-page) .testimonial-signature,
body:not(.sheba-ai-page) .border.rounded-2xl.border-secondary .testimonial-signature,
body:not(.sheba-ai-page) .border.rounded-xl.border-secondary .testimonial-signature,
body:not(.sheba-ai-page) .border.rounded-2xl.border-secondary strong,
body:not(.sheba-ai-page) .border.rounded-xl.border-secondary strong {
  color: var(--sheba-navy, #323A6E) !important;
}

/* Service / white craft cards */
body:not(.sheba-ai-page) .services-block,
body:not(.sheba-ai-page) .service-card {
  color: var(--fg-1, #231F20);
}

body:not(.sheba-ai-page) .services-block p,
body:not(.sheba-ai-page) .service-card p,
body:not(.sheba-ai-page) .services-block li,
body:not(.sheba-ai-page) .service-card li {
  color: var(--fg-2, #4B5563) !important;
}

/* --- Card grids: last row always horizontally centred (odd counts look balanced) --- */
.sheba-services-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px !important;
}
.sheba-services-grid > * { flex: 0 0 100%; max-width: 100%; min-width: 0; }
/* equal heights per row: h-[100%] on the card blocks flex stretch, so reset it */
.sheba-services-grid > * { height: auto !important; align-self: stretch; }
@media (min-width: 768px) {
  .sheba-services-grid > * { flex: 0 0 calc((100% - 80px) / 3); max-width: calc((100% - 80px) / 3); }
  .sheba-services-grid--4 > * { flex: 0 0 calc((100% - 40px) / 2); max-width: calc((100% - 40px) / 2); }
}
@media (min-width: 1280px) {
  .sheba-services-grid--4 > * { flex: 0 0 calc((100% - 120px) / 4); max-width: calc((100% - 120px) / 4); }
}

/* --- Industry pages: "boast box + bullet list" block, tablet-safe ----------- */
.sheba-industry-split { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.sheba-industry-split .sheba-industry-boast-wrap,
.sheba-industry-split .sheba-industry-list { width: 100% !important; max-width: 760px; margin: 0 !important; }
body .sheba-industry-boast {
  width: 100% !important; max-width: 760px;
  padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 44px) !important;
  font-size: clamp(18px, 2.2vw, 22px) !important; line-height: 1.55 !important;
}
.sheba-industry-list { text-align: left !important; }
.sheba-industry-list > div:first-child { font-size: clamp(20px, 2.6vw, 26px) !important; line-height: 1.3 !important; margin-bottom: 20px !important; }
.sheba-industry-list li { font-size: clamp(16px, 1.9vw, 18px) !important; line-height: 1.6 !important; margin-bottom: 14px; text-align: left; }
.sheba-industry-list > div:nth-child(2) { margin-bottom: 36px !important; }
@media (max-width: 767px) {
  .sheba-industry-list { text-align: center !important; }
  .sheba-industry-list li { text-align: left; }
}
@media (min-width: 1100px) {
  .sheba-industry-split { flex-direction: row-reverse; align-items: center; gap: 56px; }
  .sheba-industry-split .sheba-industry-boast-wrap { flex: 0 0 38%; width: 38% !important; max-width: none; }
  .sheba-industry-split .sheba-industry-list { flex: 1 1 0; width: auto !important; max-width: none; }
  body .sheba-industry-boast { max-width: none; }
}

/* --- Industry pages: image + text rows get a real gutter -------------------- */
@media (min-width: 768px) {
  .sheba-industry-row { display: flex; align-items: center; gap: clamp(32px, 5vw, 64px); }
  .sheba-industry-row > img { flex: 0 0 calc(50% - clamp(16px, 2.5vw, 32px)); width: calc(50% - clamp(16px, 2.5vw, 32px)) !important; max-width: none; object-fit: cover; }
  .sheba-industry-row > .block { flex: 1 1 0; min-width: 0; }
  .sheba-industry-row > .block > div { padding-left: 0 !important; padding-right: 0 !important; }
}
.sheba-industry-row .text-bullets { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; }
@media (max-width: 767px) { .sheba-industry-row > .block { margin-top: 8px; } }
