/* ==========================================================================
   SEO Mystic: one consistent spacing scale for headings, subheadings and paragraphs (compact).
   Loaded last, so it wins over Elementor's own widget spacing (which was giving 0px on some pages
   and 20px on others). Change a value here and it changes on every page.

   Scale (desktop):
     hero:      label > heading 8 | heading > text 14 | text > text 10 | text > buttons 22
     titles:    title > intro 12 | title/intro > content 20 | intro > intro 12
     text:      paragraph > paragraph 12 | paragraph > list 10 | above a subheading 26 | subheading > text 8
     cards:     card title > card text 6
     articles:  heading above 24 / below 8 | paragraph 12 | list 10
   Phones use about 80% of these values.
   ========================================================================== */

:root{
  --sp-hero-label:8px;
  --sp-hero-h1:14px;
  --sp-hero-p:10px;
  --sp-hero-btn:12px;      /* + the paragraph's own 10px = 22px */
  --sp-title-text:12px;      /* title with no accent bar (lines style) */
  --sp-bar-text:6px;         /* title WITH the orange bar: the bar's own 10px padding is added */
  --sp-bar-content:12px;
  --sp-title-content:20px;
  --sp-p:12px;
  --sp-list:10px;
  --sp-sub-above:14px;     /* + the paragraph's own 12px = 26px */
  --sp-sub-below:8px;
  --sp-card-title:6px;
  --sp-art-above:24px;
  --sp-art-below:8px;
}
@media (max-width:575.98px){
  :root{--sp-hero-h1:11px;--sp-hero-p:8px;--sp-hero-btn:10px;--sp-title-text:10px;--sp-bar-text:5px;--sp-bar-content:10px;--sp-title-content:16px;--sp-p:10px;--sp-list:8px;--sp-sub-above:11px;--sp-sub-below:6px;--sp-card-title:5px;--sp-art-above:20px}
}

/* ---------- Hero ---------- */
.pk-hero .pk-eyebrow{margin-bottom:var(--sp-hero-label)}
.pk-hero .pk-h1,.smy-elementor .pk-hero .pk-h1.elementor-widget{margin-bottom:var(--sp-hero-h1)!important}
.pk-hero .pk-hero-lead{margin-bottom:var(--sp-hero-p)}
.pk-hero .pk-hero-p{margin-bottom:var(--sp-hero-p)}
.pk-hero .pk-hero-cta.mt-4,.pk-hero .d-flex.mt-4{margin-top:var(--sp-hero-btn)!important}

/* ---------- Section titles and intro lines ---------- */
.pk-title{padding-bottom:.65rem;margin-bottom:var(--sp-bar-text)}
.pk-title.pk-title-lines,.pk-title-lines{padding-bottom:0;margin-bottom:var(--sp-title-text)}
.smy-elementor .pk-title.elementor-widget{margin-block-end:var(--sp-bar-text)!important}
.smy-elementor .pk-title-lines.elementor-widget{margin-block-end:var(--sp-title-text)!important}
/* a title that is followed by blocks (cards, tables, steps, accordion) gets the larger gap */
.smy-elementor .pk-title.elementor-widget:has(+ .e-con),
.smy-elementor .pk-title.elementor-widget:has(+ .elementor-widget-accordion){margin-block-end:var(--sp-bar-content)!important}
.smy-elementor .pk-title-lines.elementor-widget:has(+ .e-con){margin-block-end:var(--sp-title-content)!important}
.pk-sub{margin-bottom:var(--sp-p)}
/* the last intro line before blocks */
.smy-elementor .elementor-widget-text-editor:has(> .elementor-widget-container > .pk-sub):has(+ .e-con){margin-block-end:calc(var(--sp-title-content) - var(--sp-p))!important}

/* ---------- Body text ---------- */
.pk-body{margin-bottom:var(--sp-p)}
.pk-sub-h,.smy-elementor .pk-sub-h.elementor-widget{margin-top:var(--sp-sub-above)!important;margin-bottom:var(--sp-sub-below)!important;margin-block-end:var(--sp-sub-below)!important}
.smy-elementor .pk-sub-h.elementor-widget:first-child{margin-top:0!important}
.pk-service-content .pk-bullets,.pk-service-content .pk-bullets.mb-4{margin-bottom:var(--sp-list)!important}
.pk-service-content .pk-block:first-child .pk-title-lines{margin-top:0}

/* ---------- Card titles ---------- */
.smy-elementor .pk-ci-title.elementor-widget,.smy-elementor .pk-hsvc-title.elementor-widget,.smy-elementor .pk-vis-title.elementor-widget,
.smy-elementor .pk-why-title.elementor-widget,.smy-elementor .pk-info-title.elementor-widget,.smy-elementor .pk-svc-title.elementor-widget{margin-block-end:var(--sp-card-title)!important}
.pk-ci-title,.pk-hsvc-title,.pk-vis-title,.pk-why-title,.pk-svc-title{margin-bottom:var(--sp-card-title)}

/* ---------- Blog posts and long text ---------- */
.pk-article h2{margin:var(--sp-art-above) 0 var(--sp-art-below)}
.pk-article h3{margin:calc(var(--sp-art-above) - 6px) 0 var(--sp-art-below)}
.pk-article p{margin-bottom:var(--sp-p)}
.pk-article ul,.pk-article ol{margin:var(--sp-list) 0}
.pk-article>.entry-content>*:first-child h2:first-child,.pk-article h2:first-child{margin-top:0}
