/* ==========================================================================
   HISOLIT UI/UX Enhancements — 2026-10-27
   Fixes: text overflow, alignment, spacing, typography, visual hierarchy,
   responsive design. Preserves all SEO markup.
   ========================================================================== */

/* --- 0. GLOBAL SPACING REDUCTION — all pages --- */
/* Override hisolit-clean.css and hisolit-spacing-optimization.min.css */
html body:not(#_) :is(.section, .platform-seo-playbook, .seo-v21-section, .page-section, .content-section):not(.hero):not(.page-hero):not(.platform-enquiry):not(.cta):not(.cta-band) {
  padding-top: 26px !important;
  padding-bottom: 26px !important;
}
html body:not(#_) .platform-enquiry {
  padding-top: 20px !important;
  padding-bottom: 24px !important;
}
html body:not(#_) .section-head {
  margin-bottom: 12px !important;
  gap: 6px 20px !important;
}
html body:not(#_) .section-head h2 {
  margin: 2px 0 0 !important;
}
/* Reduce hero padding */
html body:not(#_) .hero .heroin,
html body:not(#_) .page-hero .heroin {
  padding: 20px 0 20px !important;
  gap: 22px !important;
}
html body:not(#_) .heroin .eyebrow {
  margin: 0 0 4px !important;
}
html body:not(#_) .heroin h1 {
  margin: 0 0 6px !important;
}

/* --- 1. GLOBAL: Text visibility & overflow prevention --- */
/* Ensure no text is clipped in any card, box, or container */
.service,
.problem,
.why-card,
.path,
.case,
.review,
.cert,
.step,
.solution,
.team-main,
.team-side,
.seo-v21-card,
.command-card {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Prevent text overflow on all headings and paragraphs inside cards */
.service h3,
.problem h3,
.why-card h3,
.path strong,
.case-body h3,
.seo-v21-card h3,
.cert h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.25 !important;
}

.service p,
.problem p,
.why-card p,
.path small,
.case-body p,
.seo-v21-card p,
.review p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.6 !important;
}

/* Ensure chips/tags never overflow their container */
.chips {
  overflow: visible !important;
  max-width: 100%;
}

.chips span {
  white-space: nowrap;
  overflow: visible;
  max-width: 100%;
}

/* --- 2. SERVICE CARDS: Fix alignment and consistency --- */
.service-feature-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}

.service-feature {
  display: flex !important;
  flex-direction: column !important;
  padding: 32px 28px !important;
  gap: 0 !important;
}

.service-feature .service-number {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: var(--t-teal, #0f9d7a) !important;
  margin-bottom: 14px !important;
  display: block !important;
}

.service-feature .icon {
  margin-bottom: 18px !important;
}

.service-feature h3 {
  font-size: 20px !important;
  margin: 0 0 10px !important;
  line-height: 1.2 !important;
}

.service-feature p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: var(--t-muted, #4a566b) !important;
  margin: 0 0 12px !important;
  flex: 1 !important;
}

.service-feature > span {
  display: block;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--t-teal, #0f9d7a) !important;
  letter-spacing: 0.04em;
  margin-bottom: 14px !important;
}

.service-feature a {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--t-blue, #1560d4) !important;
  margin-top: auto !important;
  display: inline-block;
  transition: color 0.18s ease;
}

.service-feature a:hover {
  color: var(--t-teal, #0f9d7a) !important;
}

/* --- 3. PLATFORM CARDS: Fix grid alignment for 11 items --- */
#platforms .services {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

#platforms .services .service {
  display: flex !important;
  flex-direction: column !important;
  min-height: auto !important;
  height: auto !important;
  padding: 28px 24px !important;
}

#platforms .services .service h3 {
  font-size: 18px !important;
  line-height: 1.25 !important;
  margin: 0 0 8px !important;
}

#platforms .services .service p {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  flex: 1 !important;
}

/* --- 4. PROBLEM CARDS: Fix text visibility --- */
.problem-grid {
  gap: 14px !important;
}

.problem {
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
}

.problem b {
  margin-bottom: 8px !important;
}

.problem h3 {
  font-size: 18px !important;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
}

.problem p {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  flex: 1;
}

/* --- 5. WHY CARDS: Fix alignment --- */
.why-grid {
  gap: 14px !important;
}

.why-card {
  padding: 30px 24px !important;
  display: flex !important;
  flex-direction: column !important;
}

.why-card > span {
  font-size: 12px !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
}

.why-card h3 {
  font-size: 19px !important;
  line-height: 1.25 !important;
  margin: 16px 0 10px !important;
}

.why-card p {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  flex: 1;
}

/* --- 6. PATH CARDS: Fix text overflow --- */
.path-grid {
  gap: 14px !important;
}

.path {
  padding: 26px 22px !important;
  min-height: auto !important;
  height: auto !important;
}

.path span {
  font-size: 12px !important;
}

.path strong {
  font-size: 18px !important;
  line-height: 1.3 !important;
  margin-top: 16px !important;
}

.path small {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-top: 8px !important;
}

/* --- 7. CASE STUDY CARDS: Fix text overflow --- */
#work .cases {
  gap: 18px !important;
}

.case {
  min-height: auto !important;
  height: auto !important;
}

.case-body {
  padding: 26px !important;
}

.case-body h3 {
  font-size: 20px !important;
  line-height: 1.3 !important;
  margin: 0 0 10px !important;
}

.case-body p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 0 0 16px !important;
}

/* --- 8. CERTIFICATION CARDS: Fix text clipping and reduce internal spacing --- */
.cert-grid {
  gap: 12px !important;
}

.cert {
  min-height: auto !important;
  height: auto !important;
  padding: 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

.cert > div {
  margin: 0 !important;
  padding: 0 !important;
  gap: 2px !important;
}

.cert > div p {
  font-size: 11px !important;
  line-height: 1.25 !important;
  margin: 0 0 2px !important;
}

.cert > div h3 {
  font-size: 16px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  overflow-wrap: break-word;
}

.cert small {
  font-size: 11px !important;
  margin-top: 4px !important;
  line-height: 1.3 !important;
}

/* --- 9. REVIEW CARDS: Fix text visibility and reduce spacing --- */
.reviews {
  gap: 14px !important;
}

.review {
  min-height: auto !important;
  height: auto !important;
  padding: 24px 22px !important;
}

.review p {
  font-size: 16px !important;
  line-height: 1.45 !important;
  margin: 12px 0 !important;
}

/* --- 10. PROCESS STEPS: Fix tight 5-column layout and reduce spacing --- */
.process {
  gap: 10px !important;
}

.step {
  padding: 20px 18px !important;
}

.step b {
  font-size: 20px !important;
}

.step h3 {
  font-size: 15px !important;
  margin: 10px 0 5px !important;
  line-height: 1.2 !important;
}

.step p {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* --- 11. SOLUTION CARDS: Fix min-height overflow and reduce spacing --- */
.split {
  gap: 16px !important;
}

.solution {
  min-height: auto !important;
  height: auto !important;
  padding: 32px 28px !important;
}

.solution h3 {
  font-size: 28px !important;
  line-height: 1.12 !important;
  margin: 0 0 12px !important;
}

.solution p {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.solution ul {
  margin: 16px 0 0 !important;
  gap: 8px !important;
}

.solution li {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* --- 12. TEAM SECTION: Fix alignment and reduce spacing --- */
.team {
  gap: 16px !important;
}

.team-main,
.team-side {
  padding: 32px 28px !important;
  min-height: auto !important;
}

.team-main h3,
.team-side h3 {
  font-size: 26px !important;
  line-height: 1.12 !important;
  margin: 0 0 12px !important;
}

.team-main p,
.team-side p {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* --- 13. NUMBERS SECTION: Fix consistency and reduce spacing --- */
.numbers {
  gap: 12px !important;
}

.number {
  padding: 24px 20px !important;
  text-align: left;
}

.number strong {
  font-size: 36px !important;
  line-height: 1 !important;
}

.number span {
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin-top: 8px !important;
}

/* --- 14. FAQ SECTION: Fix alignment and reduce spacing --- */
.faq-grid {
  gap: 10px !important;
}

.faq {
  padding: 0 20px !important;
}

.faq summary {
  font-size: 14px !important;
  line-height: 1.35 !important;
  padding: 16px 0 !important;
}

.faq p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  padding: 0 0 16px !important;
}

/* --- 15. SERVICE TAXONOMY: Fix alignment and reduce spacing --- */
.service-taxonomy {
  gap: 10px !important;
  margin-top: 14px !important;
}

.service-taxonomy > div {
  padding: 14px 16px !important;
}

.service-taxonomy strong {
  font-size: 12px !important;
}

.service-taxonomy span {
  font-size: 11px !important;
  margin-top: 3px !important;
}

/* --- 16. VISUAL/HERO SECTION: Fix overflow --- */
.visual {
  min-height: 480px !important;
  height: auto !important;
}

.visual-title {
  font-size: 22px !important;
  max-width: 240px !important;
  line-height: 1.2 !important;
}

.stack {
  left: 24px !important;
  right: 24px !important;
  bottom: 24px !important;
  gap: 8px !important;
}

.panel {
  padding: 12px 14px !important;
  gap: 10px !important;
}

.panel small {
  font-size: 10px !important;
}

.panel b {
  font-size: 12px !important;
  white-space: nowrap;
}

/* --- 17. CTA SECTION: Fix alignment and reduce spacing --- */
.cta {
  padding: 44px 36px !important;
  border-radius: 28px !important;
}

.cta-inner {
  gap: 28px !important;
  align-items: center !important;
}

.cta h2 {
  font-size: clamp(26px, 3.4vw, 40px) !important;
  line-height: 1.08 !important;
}

.cta p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 14px 0 0 !important;
}

/* --- 18. CONTACT SECTION: Fix layout and reduce spacing --- */
.contact-layout {
  gap: 16px !important;
}

.contact-copy {
  padding: 36px 30px !important;
}

.contact-copy h2 {
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.1 !important;
}

.enquiry-card {
  padding: 28px 24px !important;
  border-radius: 26px !important;
}

.form-head h3 {
  font-size: 24px !important;
  line-height: 1.12 !important;
}

.form-head p {
  font-size: 13px !important;
  margin: 0 0 16px !important;
}

/* --- 19. SECTION HEADINGS: Improve hierarchy and reduce spacing --- */
.head {
  gap: 24px !important;
  margin-bottom: 28px !important;
}

.head h2 {
  font-size: clamp(28px, 3.8vw, 46px) !important;
  line-height: 1.06 !important;
  margin: 0 !important;
}

.head p {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.kicker {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 10px !important;
}

/* --- 20. SEO V21 INDUSTRY CARDS: Fix alignment and reduce spacing --- */
.seo-v21-grid {
  gap: 14px !important;
}

.seo-v21-card {
  padding: 24px 20px !important;
  min-height: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.seo-v21-card h3 {
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}

.seo-v21-card p {
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
  flex: 1;
}

.seo-v21-link {
  font-size: 12px !important;
  font-weight: 800 !important;
  margin-top: auto !important;
}

/* --- 21. COMMAND CENTER SECTION: Fix layout and reduce spacing --- */
.premium-command {
  padding: 60px 0 !important;
}

.command-grid {
  gap: 32px !important;
}

.command-card {
  min-height: auto !important;
  padding: 14px 14px !important;
}

.command-card small {
  font-size: 10px !important;
}

.command-card strong {
  font-size: 22px !important;
}

.command-card em {
  font-size: 11px !important;
}

/* --- 22. AUTHORITY LINKS SECTION --- */
.authority-links {
  gap: 10px !important;
}

.authority-link {
  font-size: 13px !important;
  padding: 10px 16px !important;
}

/* --- 23. PROOFBAR SECTION: Reduce spacing --- */
.proofbar {
  padding: 24px 0 !important;
}

.proofbar-in {
  gap: 18px !important;
}

.proofstat strong {
  font-size: 22px !important;
}

.proofstat span {
  font-size: 11px !important;
}

/* --- 24. IMPROVE BUTTON VISIBILITY --- */
.btn.primary {
  font-size: 14px !important;
  padding: 15px 22px !important;
  box-shadow: 0 8px 24px rgba(21, 96, 212, 0.18) !important;
}

.btn.primary:hover {
  box-shadow: 0 12px 32px rgba(21, 96, 212, 0.25) !important;
}

.btn.secondary {
  font-size: 14px !important;
  padding: 15px 22px !important;
}

/* --- 25. RESPONSIVE FIXES --- */

/* Tablet: 980px */
@media (max-width: 980px) {
  .service-feature-grid,
  #platforms .services {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .problem-grid,
  .why-grid,
  .path-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .process {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .numbers {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero .heroin {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 60px 0 50px !important;
  }

  .visual {
    min-height: 400px !important;
  }

  .cta-inner {
    grid-template-columns: 1fr !important;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .team {
    grid-template-columns: 1fr !important;
  }

  .split {
    grid-template-columns: 1fr !important;
  }

  .command-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile: 720px */
@media (max-width: 720px) {
  .service-feature-grid,
  #platforms .services,
  .problem-grid,
  .why-grid,
  .path-grid,
  .process,
  .numbers,
  .cert-grid,
  .faq-grid,
  .service-taxonomy,
  .seo-v21-grid {
    grid-template-columns: 1fr !important;
  }

  .head {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .hero h1 {
    font-size: 40px !important;
    line-height: 1.05 !important;
  }

  .lead {
    font-size: 16px !important;
  }

  .section {
    padding: 60px 0 !important;
  }

  .cta {
    padding: 36px 24px !important;
    border-radius: 24px !important;
  }

  .contact-copy {
    padding: 32px 24px !important;
  }

  .enquiry-card {
    padding: 24px 20px !important;
  }

  .visual {
    min-height: 360px !important;
  }

  .visual-title {
    font-size: 18px !important;
    max-width: 200px !important;
  }

  .solution {
    padding: 32px 24px !important;
  }

  .solution h3 {
    font-size: 26px !important;
  }

  .team-main,
  .team-side {
    padding: 32px 24px !important;
  }

  .team-main h3,
  .team-side h3 {
    font-size: 24px !important;
  }
}

/* Small mobile: 420px */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 34px !important;
  }

  .head h2 {
    font-size: 26px !important;
  }

  .number strong {
    font-size: 32px !important;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .actions {
    flex-direction: column;
  }
}

/* --- 26. IMPROVE CARD HOVER STATES --- */
.service-feature:hover,
.problem:hover,
.why-card:hover,
.path:hover,
.cert:hover,
.seo-v21-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 60px rgba(18, 55, 96, 0.10) !important;
  border-color: #f0c9a6 !important;
}

/* --- 27. IMPROVE FOCUS STATES FOR ACCESSIBILITY --- */
.service-feature:focus-visible,
.problem:focus-visible,
.why-card:focus-visible,
.path:focus-visible,
.cert:focus-visible,
.seo-v21-card:focus-visible,
.btn:focus-visible,
.faq summary:focus-visible {
  outline: 3px solid rgba(21, 96, 212, 0.45) !important;
  outline-offset: 3px !important;
}

/* --- 28. ENSURE CONSISTENT BORDER RADIUS --- */
.service-feature,
.problem,
.why-card,
.path,
.case,
.review,
.cert,
.step,
.seo-v21-card {
  border-radius: 22px !important;
}

/* --- 29. IMPROVE SPACING BETWEEN SECTIONS --- */
.section + .section,
.section + .seo-v21-section,
.seo-v21-section + .section {
  margin-top: 0 !important;
}

/* --- 30. BRAZE AUTHORITY LINKS --- */
#braze-authority .section-head {
  margin-bottom: 28px !important;
}

#braze-authority .section-head h2 {
  font-size: clamp(26px, 3.2vw, 40px) !important;
}

/* --- 31. FIX FORM ELEMENTS --- */
.enquiry-form input:not([type="checkbox"]),
.enquiry-form select,
.enquiry-form textarea {
  min-height: 48px !important;
  font-size: 14px !important;
  padding: 12px 14px !important;
}

.enquiry-form label {
  font-size: 12px !important;
  gap: 8px !important;
}

.form-submit {
  min-height: 50px !important;
  font-size: 15px !important;
  padding: 14px 24px !important;
}

/* --- 32. FIX MOBILE CTA BAR --- */
.mobile-cta a {
  font-size: 14px !important;
  padding: 16px !important;
}

/* --- 33. IMPROVE LOGO BAND: Reduce spacing --- */
.crm-logo-band .wrap {
  padding: 26px 0 28px !important;
}

.crm-logo-kicker {
  font-size: 11px !important;
  margin-bottom: 18px !important;
}

/* --- 34. FIX HERO SECTION: Reduce spacing --- */
.hero .heroin {
  padding: 50px 0 44px !important;
  gap: 32px !important;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px) !important;
  line-height: 0.98 !important;
  margin: 14px 0 14px !important;
}

.hero .lead {
  font-size: 17px !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* Hero visual container - reduce internal padding */
.visual {
  padding: 20px !important;
}

.visual .hero-dashboard-image {
  max-height: 380px !important;
  object-fit: contain !important;
}

/* Hero tags - increase spacing */
.hero-tags {
  gap: 10px !important;
  margin-top: 20px !important;
}

.hero-tags span {
  padding: 8px 14px !important;
  font-size: 12px !important;
}

/* Actions - better spacing from tags */
.actions {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

/* --- 35. FIX EYEBROW --- */
.eyebrow {
  font-size: 11px !important;
  padding: 8px 14px !important;
  gap: 8px !important;
}

/* --- 36. IMPROVE TEXT CONTRAST --- */
.service p,
.problem p,
.why-card p,
.path small,
.case-body p,
.review p,
.seo-v21-card p,
.faq p,
.cert small {
  color: var(--t-muted, #4a566b) !important;
}

/* Ensure dark text on light backgrounds has sufficient contrast */
.service h3,
.problem h3,
.why-card h3,
.case-body h3,
.seo-v21-card h3,
.cert h3,
.step h3 {
  color: var(--t-ink, #151d2e) !important;
}

/* --- 37. FIX HERO TAGS: Reduce spacing --- */
.hero-tags {
  gap: 7px !important;
  margin-top: 18px !important;
}

.hero-tags span {
  font-size: 11px !important;
  padding: 6px 10px !important;
}

/* --- 38. FIX ACTIONS: Reduce spacing --- */
.actions {
  gap: 10px !important;
  margin-top: 22px !important;
}

/* --- 39. FIX TRUST/PROOF SECTION: Reduce spacing --- */
.proofbar {
  padding: 24px 0 !important;
}

.proofbar-in {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

.proofintro {
  flex: 1 !important;
  min-width: 180px !important;
}

.proofstat {
  text-align: left !important;
}

.proofstat strong {
  display: block !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--t-ink, #151d2e) !important;
}

.proofstat span {
  display: block !important;
  font-size: 11px !important;
  color: var(--t-muted, #4a566b) !important;
  margin-top: 2px !important;
}

/* --- 40. FINAL POLISH: Smooth transitions --- */
.service-feature,
.problem,
.why-card,
.path,
.case,
.review,
.cert,
.step,
.seo-v21-card,
.solution,
.team-main,
.team-side,
.number,
.faq {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* --- 41. FOOTER BRAND SECTION: Reduce spacing --- */
.hsf-brand {
  margin-top: 28px !important;
  margin-bottom: 20px !important;
}

.hsf-brand strong {
  display: block !important;
  margin-bottom: 8px !important;
}

.hsf-brand p {
  margin: 0 0 8px !important;
  line-height: 1.5 !important;
}

.hsf-brand .hsf-note {
  margin-top: 8px !important;
}

/* --- 42. FOOTER: Better spacing and alignment --- */
footer {
  padding: 48px 0 32px !important;
}

.footer-grid {
  gap: 40px 48px !important;
}

.footer-grid h3 {
  margin-bottom: 16px !important;
  font-size: 15px !important;
}

.footer-grid ul {
  gap: 0 !important;
}

.footer-grid li {
  margin-bottom: 8px !important;
}

.footer-grid li a {
  padding: 4px 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Footer bottom section */
.footer-bottom {
  margin-top: 32px !important;
  padding-top: 24px !important;
  gap: 16px !important;
}

.footer-bottom a {
  margin-right: 20px !important;
}

/* Footer brand section */
.footerbrand {
  margin-top: 32px !important;
  margin-bottom: 24px !important;
}

.footerbrand strong {
  display: block !important;
  margin-bottom: 10px !important;
  font-size: 16px !important;
}

.footerbrand p {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* Footer legal */
.footerlegal {
  margin-top: 24px !important;
  padding-top: 20px !important;
  gap: 20px !important;
}

.footerlegal a {
  margin-right: 18px !important;
  font-size: 13px !important;
}

/* --- 43. CASE STUDY CARDS: Better spacing --- */
#work {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

#work .head {
  margin-bottom: 28px !important;
}

#work .cases {
  gap: 20px !important;
  margin-top: 0 !important;
}

.case-top {
  height: 140px !important;
  padding: 22px !important;
}

.case-body {
  padding: 24px !important;
}

.case-body h3 {
  font-size: 19px !important;
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
}

.case-body p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 0 0 16px !important;
}

.case-body .chips {
  margin-top: auto !important;
}

/* --- 44. SERVICE CARDS: Better internal spacing --- */
.service-feature {
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.service-feature .service-number {
  margin-bottom: 12px !important;
}

.service-feature .icon {
  margin-bottom: 16px !important;
}

.service-feature h3 {
  font-size: 19px !important;
  margin: 0 0 10px !important;
  line-height: 1.25 !important;
}

.service-feature p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 0 0 12px !important;
  flex: 1 !important;
}

.service-feature > span {
  margin-bottom: 14px !important;
}

.service-feature a {
  margin-top: auto !important;
  padding-top: 4px !important;
}

/* Service grid - consistent row spacing */
.service-feature-grid {
  row-gap: 18px !important;
  column-gap: 18px !important;
}

/* --- 45. PLATFORM CARDS: Reduce spacing --- */
#platforms .services .service {
  padding: 24px 20px !important;
}

#platforms .services .service h3 {
  font-size: 17px !important;
  margin: 0 0 6px !important;
}

#platforms .services .service p {
  font-size: 13px !important;
}

/* --- 46. PROBLEM CARDS: Reduce spacing --- */
.problem {
  padding: 24px 20px !important;
}

.problem h3 {
  font-size: 17px !important;
  margin: 0 0 10px !important;
}

.problem p {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* --- 47. WHY CARDS: Reduce spacing --- */
.why-card {
  padding: 26px 20px !important;
}

.why-card h3 {
  font-size: 18px !important;
  margin: 14px 0 8px !important;
}

.why-card p {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* --- 48. PATH CARDS: Reduce spacing --- */
.path {
  padding: 22px 18px !important;
}

.path strong {
  font-size: 17px !important;
  margin-top: 14px !important;
}

.path small {
  font-size: 11px !important;
  margin-top: 6px !important;
}

/* --- 49. TEAM SECTION: Better column spacing --- */
.team {
  gap: 24px !important;
}

.team-main,
.team-side {
  padding: 32px 28px !important;
}

.team-main .chips,
.team-side .chips {
  gap: 10px !important;
  margin-top: 20px !important;
}

.team-main .chips span,
.team-side .chips span {
  padding: 8px 12px !important;
}

/* --- 50. FAQ SECTION: Better accordion spacing --- */
.faq-grid {
  gap: 12px !important;
  margin-top: 0 !important;
}

.faq {
  padding: 0 22px !important;
  margin-bottom: 0 !important;
}

.faq summary {
  padding: 18px 0 !important;
  font-size: 15px !important;
}

.faq p {
  padding: 0 0 18px !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

/* --- 49. SECTION ALT SPACING: Consistent section padding --- */
.section.alt {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

/* Ensure all sections have consistent vertical rhythm */
section.section,
section.seo-v21-section,
section.premium-command {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

/* Section head spacing */
.head,
.section-head {
  margin-bottom: 32px !important;
}

.head h2,
.section-head h2 {
  margin-bottom: 12px !important;
}

.head p,
.section-head p {
  margin-top: 0 !important;
}

/* Grid sections - consistent spacing */
.services,
.problem-grid,
.why-grid,
.path-grid,
.numbers,
.cert-grid,
.reviews,
.process,
.faq-grid,
.service-taxonomy,
.seo-v21-grid {
  margin-top: 0 !important;
}

/* Split sections */
.split,
.team,
.contact-layout {
  margin-top: 0 !important;
}

/* --- 50. BRAZE AUTHORITY SECTION: Reduce spacing --- */
#braze-authority {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

#braze-authority .section-head {
  margin-bottom: 22px !important;
}

#braze-authority .section-head h2 {
  font-size: clamp(24px, 3vw, 36px) !important;
}

.authority-links {
  gap: 8px !important;
}

.authority-link {
  font-size: 12px !important;
  padding: 8px 14px !important;
}

/* --- 51. MOBILE SPACING REDUCTION --- */
@media (max-width: 720px) {
  .section {
    padding: 48px 0 !important;
  }

  .section.alt {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .hero .heroin {
    padding: 48px 0 40px !important;
    gap: 28px !important;
  }

  .head {
    margin-bottom: 22px !important;
    gap: 12px !important;
  }

  .cert-grid {
    gap: 10px !important;
  }

  .cert {
    padding: 14px 16px !important;
  }

  .reviews {
    gap: 12px !important;
  }

  .review {
    padding: 20px 18px !important;
  }

  .process {
    gap: 8px !important;
  }

  .step {
    padding: 18px 16px !important;
  }

  .numbers {
    gap: 10px !important;
  }

  .number {
    padding: 20px 18px !important;
  }

  .cta {
    padding: 32px 20px !important;
  }

  .contact-copy {
    padding: 28px 20px !important;
  }

  .enquiry-card {
    padding: 22px 18px !important;
  }

  .solution {
    padding: 28px 20px !important;
  }

  .team-main,
  .team-side {
    padding: 28px 20px !important;
  }

  .seo-v21-card {
    padding: 20px 18px !important;
  }

  .faq summary {
    padding: 14px 0 !important;
  }

  .faq p {
    padding: 0 0 14px !important;
  }

  html body footer.hsf .hsf-wrap {
    padding: 32px 0 16px !important;
  }

  html body footer.hsf .hsf-grid {
    gap: 22px 0 !important;
  }
}

/* --- 52. SMALL MOBILE SPACING --- */
@media (max-width: 420px) {
  .section {
    padding: 40px 0 !important;
  }

  .hero .heroin {
    padding: 40px 0 32px !important;
  }

  .head {
    margin-bottom: 18px !important;
  }

  .cert {
    padding: 12px 14px !important;
  }

  .review {
    padding: 18px 16px !important;
  }
}

/* ==========================================================================
   FINAL COMPACT SPACING LAYER — v2026-10-28
   Single consolidated layer that intentionally wins the cascade everywhere
   (html body:not(#_) = ID specificity, later = wins ties). All component
   spacing above is normalized to this scale; this layer also beats the
   per-page inline <style> blocks and the platforms/*.min.css components.
   DO NOT append further spacing layers — edit this one.
   ========================================================================== */

/* Section rhythm */
html body:not(#_) section.section:not(.platform-enquiry),
html body:not(#_) section.platform-seo-playbook,
html body:not(#_) section.seo-v21-section:not(.platform-enquiry),
html body:not(#_) section.page-section,
html body:not(#_) section.content-section {
  padding-top: 26px !important;
  padding-bottom: 26px !important;
}
html body:not(#_) .platform-enquiry { padding-top: 18px !important; padding-bottom: 22px !important; }
html body:not(#_) #partner-evaluation { padding-top: 26px !important; padding-bottom: 26px !important; }
html body:not(#_) .hero .heroin,
html body:not(#_) .page-hero .heroin {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  gap: 22px !important;
}
html body:not(#_) .head,
html body:not(#_) .section-head {
  margin-bottom: 12px !important;
}
html body:not(#_) .head { gap: 12px !important; }
html body:not(#_) .head h2,
html body:not(#_) .section-head h2 { margin: 0 0 6px !important; }
html body:not(#_) .head p,
html body:not(#_) .section-head p { margin-top: 0 !important; }
html body:not(#_) .kicker { margin-bottom: 6px !important; }

/* Grid gaps — one consistent scale */
html body:not(#_) .service-feature-grid,
html body:not(#_) #platforms .services,
html body:not(#_) .problem-grid,
html body:not(#_) .why-grid,
html body:not(#_) .path-grid,
html body:not(#_) .cases,
html body:not(#_) .cert-grid,
html body:not(#_) .reviews,
html body:not(#_) .numbers,
html body:not(#_) .seo-v21-grid { gap: 12px !important; }
html body:not(#_) .process,
html body:not(#_) .faq-grid,
html body:not(#_) .service-taxonomy,
html body:not(#_) .authority-links { gap: 8px !important; }
html body:not(#_) .split,
html body:not(#_) .contact-layout { gap: 12px !important; }
html body:not(#_) .team { gap: 14px !important; }

/* Card padding — compact scale */
html body:not(#_) .service-feature,
html body:not(#_) #platforms .services .service,
html body:not(#_) .problem,
html body:not(#_) .why-card { padding: 16px 14px !important; }
html body:not(#_) .path { padding: 14px 12px !important; }
html body:not(#_) .cert { padding: 11px 12px !important; }
html body:not(#_) .review { padding: 15px 14px !important; }
html body:not(#_) .step {
  padding: 13px 12px !important;
  min-height: 0 !important;
}
html body:not(#_) .number { padding: 15px 14px !important; }
html body:not(#_) .solution { padding: 18px 16px !important; }
html body:not(#_) .team-main,
html body:not(#_) .team-side { padding: 18px 16px !important; }
html body:not(#_) .seo-v21-card { padding: 16px 14px !important; }
html body:not(#_) .command-card { padding: 12px 12px !important; }

/* Card internals */
html body:not(#_) .service-feature .service-number { margin-bottom: 6px !important; }
html body:not(#_) .service-feature .icon { margin-bottom: 8px !important; }
html body:not(#_) .service-feature h3,
html body:not(#_) .problem h3,
html body:not(#_) .why-card h3,
html body:not(#_) .path strong { margin-top: 0 !important; }
html body:not(#_) .service-feature h3:not([class]),
html body:not(#_) .problem h3 { margin: 0 0 5px !important; }
html body:not(#_) .why-card h3 { margin: 6px 0 4px !important; }
html body:not(#_) .path strong { margin-top: 8px !important; }
html body:not(#_) .path small { margin-top: 4px !important; }
html body:not(#_) .service-feature p { margin: 0 0 6px !important; }
html body:not(#_) .service-feature > span { margin-bottom: 6px !important; }
html body:not(#_) .service-feature a { padding-top: 2px !important; }
html body:not(#_) .number strong { font-size: 30px !important; }
html body:not(#_) .number span { margin-top: 5px !important; }
html body:not(#_) .review p { margin: 8px 0 !important; font-size: 14px !important; }
html body:not(#_) .cert small { margin-top: 2px !important; }
html body:not(#_) .step h3 { margin: 6px 0 3px !important; }
html body:not(#_) .solution h3 { margin: 0 0 6px !important; }
html body:not(#_) .solution ul { margin: 10px 0 0 !important; gap: 6px !important; }
html body:not(#_) .team-main .chips,
html body:not(#_) .team-side .chips { gap: 8px !important; margin-top: 10px !important; }
html body:not(#_) .team-main .chips span,
html body:not(#_) .team-side .chips span { padding: 6px 10px !important; }
html body:not(#_) .service-taxonomy > div { padding: 10px 12px !important; }
html body:not(#_) .service-taxonomy { margin-top: 8px !important; }
html body:not(#_) .seo-v21-card h3 { margin: 0 0 5px !important; }
html body:not(#_) .seo-v21-card p { margin: 0 0 8px !important; }

/* Case studies */
html body:not(#_) #work .head { margin-bottom: 12px !important; }
html body:not(#_) .case-top { height: 112px !important; padding: 16px !important; }
html body:not(#_) .case-body { padding: 18px !important; }
html body:not(#_) .case-body h3 { margin: 0 0 5px !important; }
html body:not(#_) .case-body p { margin: 0 0 8px !important; }

/* FAQ accordion */
html body:not(#_) .faq { padding: 0 14px !important; }
html body:not(#_) .faq summary { padding-top: 12px !important; padding-bottom: 12px !important; }
html body:not(#_) .faq p { padding: 0 0 12px !important; }

/* CTA / contact / enquiry */
html body:not(#_) .cta:not(.contact-copy) { padding: 26px 20px !important; }
html body:not(#_) .cta-inner { gap: 16px !important; }
html body:not(#_) .cta p { margin: 8px 0 0 !important; }
html body:not(#_) .contact-copy { padding: 22px 18px !important; }
html body:not(#_) .enquiry-card { padding: 18px 16px !important; }
html body:not(#_) .form-head p { margin: 0 0 10px !important; }
html body:not(#_) .cta-band { padding: 18px 20px !important; }
html body:not(#_) .platform-form-copy { gap: 12px !important; }
html body:not(#_) .platform-enquiry-card { padding: 20px 18px !important; }
html body:not(#_) .platform-form-grid { gap: 10px !important; }
html body:not(#_) label:not(:has(input[type="checkbox"])) { gap: 5px !important; }

/* Command center + proof bands */
html body:not(#_) .premium-command { padding: 42px 0 !important; }
html body:not(#_) .command-grid { gap: 16px !important; }
html body:not(#_) .proofbar { padding: 14px 0 !important; }
html body:not(#_) .proofbar-in { gap: 12px !important; }
html body:not(#_) .crm-logo-band .wrap { padding: 16px 0 18px !important; }
html body:not(#_) .crm-logo-kicker { margin-bottom: 8px !important; }

/* Platform-page components (platforms/*.php) — must match the
   html body.platform-page:not(#_) prefix used in hisolit-clean.css */
html body.platform-page:not(#_) .feature-card,
html body.platform-page:not(#_) .psp-card,
html body.platform-page:not(#_) .fit-card,
html body.platform-page:not(#_) .seo-ref,
html body.platform-page:not(#_) .psp-check,
html body.platform-page:not(#_) .info-card,
html body.platform-page:not(#_) .service-detail {
  padding: 15px 16px !important;
}
html body:not(#_) .feature-grid,
html body:not(#_) .psp-grid,
html body:not(#_) .fit-grid,
html body:not(#_) .seo-ref-grid { gap: 12px !important; }
html body:not(#_) .psp-intro { margin-bottom: 12px !important; }
html body:not(#_) .psp-links { margin-top: 12px !important; gap: 8px !important; }
html body:not(#_) .authority-link { padding: 8px 12px !important; }
html body:not(#_) #partner-evaluation { padding: 26px 0 !important; }

/* Hero internals */
html body:not(#_) .hero .lead { margin-bottom: 0 !important; }
html body:not(#_) .hero-tags { gap: 8px !important; margin-top: 10px !important; }
html body:not(#_) .actions { margin-top: 14px !important; }
html body:not(#_) .stats { margin-top: 14px !important; gap: 12px 18px !important; }
html body:not(#_) .visual { padding: 14px !important; min-height: 420px !important; }
html body:not(#_) .hero-dashboard-image { max-height: 320px !important; }

/* Footer (footer-pro-v2 + legacy footer) */
html body:not(#_) footer { padding: 26px 0 16px !important; }
html body:not(#_) footer.hsf .hsf-wrap { padding: 28px 0 14px !important; }
html body:not(#_) footer.hsf .hsf-top { margin-bottom: 18px !important; }
html body:not(#_) footer.hsf .hsf-grid { gap: 18px 20px !important; }
html body:not(#_) footer.hsf .hsf-col h3 { margin-bottom: 8px !important; }
html body:not(#_) footer.hsf .hsf-col a,
html body:not(#_) footer.hsf .hsf-col li { margin-bottom: 4px !important; }
html body:not(#_) footer.hsf .hsf-bottom { margin-top: 18px !important; padding-top: 14px !important; }
html body:not(#_) .footer-grid { gap: 20px 24px !important; }
html body:not(#_) .footer-grid h3 { margin-bottom: 8px !important; }
html body:not(#_) .footer-grid li { margin-bottom: 3px !important; }
html body:not(#_) .footer-grid li a { padding: 2px 0 !important; }
html body:not(#_) .footer-bottom { margin-top: 16px !important; padding-top: 12px !important; }
html body:not(#_) .footerbrand { margin-top: 16px !important; margin-bottom: 10px !important; }
html body:not(#_) .footerlegal { margin-top: 12px !important; padding-top: 10px !important; }
html body:not(#_) .hsf-brand { margin-top: 16px !important; margin-bottom: 10px !important; }

/* Responsive — these must carry the same prefix to actually win */
@media (max-width: 720px) {
  html body:not(#_) :is(.section, .platform-seo-playbook, .seo-v21-section, .page-section, .content-section):not(.hero):not(.page-hero):not(.platform-enquiry):not(.cta):not(.cta-band),
  html body:not(#_) section.premium-command {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  html body:not(#_) .hero .heroin,
  html body:not(#_) .page-hero .heroin {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    gap: 16px !important;
  }
  html body:not(#_) .head,
  html body:not(#_) .section-head { margin-bottom: 10px !important; }
  html body:not(#_) .cta:not(.contact-copy) { padding: 20px 16px !important; }
  html body:not(#_) .contact-copy { padding: 18px 14px !important; }
  html body:not(#_) .enquiry-card,
  html body:not(#_) .platform-enquiry-card { padding: 16px 14px !important; margin-bottom: 14px; }
  html body:not(#_) .premium-command { padding: 30px 0 !important; }
  html body:not(#_) #partner-evaluation,
  html body:not(#_) .platform-enquiry { padding-top: 16px !important; padding-bottom: 18px !important; }
}
@media (max-width: 420px) {
  html body:not(#_) :is(.section, .platform-seo-playbook, .seo-v21-section, .page-section, .content-section):not(.hero):not(.page-hero):not(.platform-enquiry),
  html body:not(#_) section.premium-command,
  html body:not(#_) #partner-evaluation {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  html body:not(#_) .hero .heroin,
  html body:not(#_) .page-hero .heroin {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}
/* ===================== END FINAL COMPACT SPACING LAYER ===================== */
