/*
 * Alfa Core 0.21.24 - Master Gold section rhythm; Geo Navigation visuals are standalone.
 * Reference: Kezdolap V2 (13154), "TENYLEGES 35PX BLOKKRITMUS".
 * Visible service-module whitespace is owned by one 35px outer rhythm; legacy
 * module-root vertical padding/margins cannot add hidden extra distance.
 */

body.alfa-master-spacing {
  --alfa-section-gap: 35px;
}

/*
 * One outer spacing owner for the modular service recipe. The Elementor
 * top-level section wrapper, not each legacy module, owns inter-block space.
 */
body.alfa-master-spacing .alfa-lp > .elementor > .elementor-section.elementor-top-section {
  margin-top: 0 !important;
  margin-bottom: var(--alfa-section-gap, 35px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/*
 * These historical service-root paddings acted as external whitespace and
 * were stacking with wrapper spacing. Neutralize only the module root; card,
 * grid, heading and component-internal spacing remains untouched.
 */
body.alfa-master-spacing .alfa-lp :is(
  .lp-quick,
  .lp-services,
  .lp-situations,
  .lp-factors,
  .lp-take,
  .lp-process,
  .lp-pricing,
  .lp-results,
  .lp-team,
  .lp-coverage,
  .lp-faq
) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Lower CTA keeps its own internal visual composition, never extra root margin. */
body.alfa-master-spacing .alfa-lp .lp-cta {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/*
 * The lower CTA is the last service block and touches the shared Master Footer.
 * Keep this transition at exactly 0px, matching the Master Gold reference.
 */
body.alfa-master-spacing .alfa-lp > .elementor > .elementor-section.elementor-top-section:last-child,
body.alfa-master-spacing .alfa-lp > .elementor > .elementor-section.elementor-top-section:has(.lp-cta) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.alfa-master-spacing main.alfa-page-shell__content:has(> .alfa-lp),
body.alfa-master-spacing main.alfa-page-shell__content > .alfa-lp {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.alfa-master-spacing main.alfa-page-shell__content:has(> .alfa-lp) + .alfa-v2.alfa-master-shell[data-alfa-module="global_footer"] {
  margin-top: 0 !important;
}


/*
 * Master Gold section heading row.
 * The service-page H2 and its introductory copy share one horizontal row on
 * wide layouts, matching Kezdolap V2. This is internal component rhythm and
 * does not change the 35px inter-section contract above.
 */
body.alfa-master-spacing .alfa-lp .lp-section-heading {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

body.alfa-master-spacing .alfa-lp .lp-section-heading > h2 {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.alfa-master-spacing .alfa-lp .lp-section-heading > p.lp-sub {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Match the Master Gold narrow-layout behavior: stack safely when horizontal
 * room is no longer sufficient, while keeping the same semantic pairing. */
@media (max-width: 900px) {
  body.alfa-master-spacing .alfa-lp .lp-section-heading {
    display: block !important;
    margin-bottom: 14px !important;
  }

  body.alfa-master-spacing .alfa-lp .lp-section-heading > h2 {
    white-space: normal !important;
  }

  body.alfa-master-spacing .alfa-lp .lp-section-heading > p.lp-sub {
    margin-top: 6px !important;
  }
}

/*
 * Service internal spacing refinements requested for the Master Gold service
 * composition. These are deliberate internal paddings/margins and therefore
 * do not replace the 35px top-level Elementor section gap contract above.
 */
body.alfa-master-spacing .alfa-lp .lp-situations {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

body.alfa-master-spacing .alfa-lp .lp-info-band {
  margin-top: 35px !important;
}

/* Alfa Core 0.21.15 requested service refinements. */
body.alfa-master-spacing .alfa-lp .lp-coverage {
  padding-bottom: 30px !important;
}

body.alfa-master-spacing .alfa-lp .lp-coverage .lp-section-heading {
  display: block !important;
}

body.alfa-master-spacing .alfa-lp .lp-coverage .lp-section-heading > p.lp-sub {
  margin-top: 6px !important;
}

body.alfa-master-spacing .alfa-lp .lp-cta {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

body.alfa-master-spacing .alfa-lp .lp-cta .lp-cta-copy h2 {
  margin: 0 !important;
  padding: 0 !important;
}

/* A2.45: pricing-specific heading rhythm moved to assets/master-pricing.css. */

/* A2.43: lp-team geometry moved to assets/master-trust.css. */

/* Alfa Core 0.21.19 - Lomtalanitas V2 info-band typography override requested explicitly for page 13181. */
.page-id-13181 .alfa-lp .lp-info-band-left {
  font-size: 16px !important;
  padding: 10px 0;
}

.page-id-13181 .alfa-lp .lp-info-band-right {
  font-size: 16px !important;
}

/* Alfa Core 0.21.24: geo navigation visuals moved to the standalone geo-navigation.css component. */
