/*
Theme Name: Divi Lab Child
Template: Divi
Version: 1.0
*/

/* VARIABLES */

:root {
  --font-lab: 'Inter', sans-serif;

  --color-text: #3f3f3f;
  --color-muted: #666666;
  --color-border: #9a9a9a;
  --color-border-light: #cfcfcf;
  --color-bg: #ffffff;
  --color-bg-soft: #fafbfb;
  --color-card: #ffffff;
  --color-workflow: #e9e9e9;

  --container-wide: 1120px;
  --container-main: 920px;
  --container-text: 640px;
  --container-hero: 720px;

  --refinement-left-width: 680px;
}

/* TYPOGRAPHY */

.lab-page {
  font-family: var(--font-lab);
  color: var(--color-text);
}

.lab-page h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.lab-page h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.lab-page h3 {
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 500;
}

.lab-page p {
  font-size: .95rem;
  line-height: 1.42;
}

/* CONTAINERS */

.sb-container-wide {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
}

.sb-container-main {
  max-width: var(--container-main);
  margin-left: auto;
  margin-right: auto;
}

.sb-container-text {
  max-width: var(--container-text);
  margin-left: auto;
  margin-right: auto;
}

.sb-container-hero {
  max-width: var(--container-hero);
}

/* SECTIONS */

.sb-section {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.sb-section-soft {
  background: var(--color-bg-soft);
}

/* BUTTONS */

.lab-page .sb-button,
.lab-page .et_pb_button {
  border: 1px solid var(--color-border);
  background: #f7f7f7;
  color: var(--color-text);
  padding: .85rem 1.8rem;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 0;
}

.lab-page .sb-button:hover,
.lab-page .et_pb_button:hover {
  background: #e9e9e9;
  border-color: #555;
}

/* WORKFLOW */

.sb-workflow-item {
  border: 1px solid var(--color-border-light);
  background: var(--color-workflow);
  padding: 1rem;
}

/* HERO */

.lab-page .sb-hero-title {
  max-width: var(--container-hero);
}

.lab-page .sb-hero-title h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.035em !important;
  font-weight: 500 !important;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

/* SECTION HEADING */

.sb-section-heading h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 1.2rem 0;
  padding: 0;
}


/* Focus Areas: tighten heading-to-card spacing */

.et_pb_section_1 .et_pb_row_1 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.et_pb_section_1 .et_pb_row_2 {
  padding-top: 0 !important;
  margin-top: -2rem !important;
}

/* FOCUS CARDS → LEAD TEXT GAP */

.et_pb_section_1 .et_pb_row_4 {
  padding-top: 0 !important;
  margin-top: -2rem !important;
}

/* LEAD TEXT */

.sb-lead-text {
  max-width: var(--container-text);
}

.sb-lead-text p {
  font-size: 1.1rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 1.25rem 0;
  padding: 0;
}

/* BODY TEXT */

.sb-body-text {
  max-width: var(--container-text);
}

.sb-body-text p {
  font-size: 0.95rem;
  line-height: 1.42;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 1rem 0;
  padding: 0;
}

/* CAPTION TEXT */

.sb-caption p {
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--color-muted);
  margin: 0;
  padding: 0;
}

/* PRIMARY BUTTON */

.sb-button .et_pb_button,
.et_pb_button.sb-button {
  display: inline-block;
  border: 1px solid var(--color-border);
  background: #f7f7f7;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border-radius: 0;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

/* PRIMARY HOVER */

.sb-button .et_pb_button:hover,
.et_pb_button.sb-button:hover {
  background: #ececec;
  color: #222;
  border-color: #777;
}

/* SECONDARY BUTTON */

.sb-button-secondary .et_pb_button,
.et_pb_button.sb-button-secondary {
  display: inline-block;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border-radius: 0;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

/* SECONDARY HOVER */

.sb-button-secondary .et_pb_button:hover,
.et_pb_button.sb-button-secondary:hover {
  background: #f4f5f5;
  color: var(--color-text);
  border-color: #888;
}

/* HERO BUTTONS */

.sb-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: flex-start;
}

.sb-hero-buttons .sb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  min-height: 2.7rem;
  border: 1px solid var(--color-border);
  background: #f7f7f7;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sb-hero-buttons .sb-button:hover {
  background: #ececec;
  color: #222;
  border-color: #777;
}

.sb-hero-buttons .sb-button {
  margin-right: 0.5rem !important;
}

.sb-hero-buttons .sb-button:last-child {
  margin-right: 0 !important;
}

/* remove other button styling */

.et_pb_button,
.et_pb_button:hover {
  transform: none !important;
  box-shadow: none !important;
}

.et_pb_button:before,
.et_pb_button:after {
  display: none !important;
  content: none !important;
}

/* DIVI BUTTON RESET */

a.et_pb_button.sb-button,
a.et_pb_button.sb-button:hover,
a.et_pb_button.sb-button-secondary,
a.et_pb_button.sb-button-secondary:hover {
  transform: none !important;
  box-shadow: none !important;
  padding: 0.9rem 1.8rem !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  border-width: 1px !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

a.et_pb_button.sb-button:before,
a.et_pb_button.sb-button:after,
a.et_pb_button.sb-button-secondary:before,
a.et_pb_button.sb-button-secondary:after {
  display: none !important;
  content: none !important;
}

/* PRIMARY */

a.et_pb_button.sb-button {
  background: #f7f7f7 !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
}

a.et_pb_button.sb-button:hover {
  background: #ececec !important;
  color: #222 !important;
  border-color: #777 !important;
}

/* SECONDARY */

a.et_pb_button.sb-button-secondary {
  background: transparent !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
}

a.et_pb_button.sb-button-secondary:hover {
  background: #f4f5f5 !important;
  color: var(--color-text) !important;
  border-color: #888 !important;
}

/* DIVI 5 BUTTON HARD RESET */

.et_pb_button_module_wrapper > a.et_pb_button.sb-button,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button:hover,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary:hover {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  min-height: 2.7rem !important;

  padding-top: 0 !important;
  padding-right: 1.8rem !important;
  padding-bottom: 0 !important;
  padding-left: 1.8rem !important;

  font-size: 0.75rem !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 0 !important;

  transform: none !important;
  box-shadow: none !important;
}

/* Remove Divi icon/arrow */

.et_pb_button_module_wrapper > a.et_pb_button.sb-button:before,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button:after,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary:before,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary:after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  width: 0 !important;
  margin: 0 !important;
}

/* Primary */

.et_pb_button_module_wrapper > a.et_pb_button.sb-button {
  background-color: #f7f7f7 !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

.et_pb_button_module_wrapper > a.et_pb_button.sb-button:hover {
  background-color: #ececec !important;
  color: #222 !important;
  border-color: #777 !important;
}

/* Secondary */

.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary {
  background-color: transparent !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary:hover {
  background-color: #f4f5f5 !important;
  color: var(--color-text) !important;
  border-color: #888 !important;
}

/* Lock button width */

.et_pb_button_module_wrapper > a.et_pb_button.sb-button,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button:hover,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary,
.et_pb_button_module_wrapper > a.et_pb_button.sb-button-secondary:hover {
  min-width: 8.5rem !important;
  width: 8.5rem !important;
  max-width: 8.5rem !important;
}

/* CARDS */

.sb-card {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 0.9rem;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.sb-card h3 {
  font-size: 1.35rem;
  line-height: 1.05;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.sb-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

.sb-focus-card h3 {
  margin: 0 !important;
}

/* FOCUS CARD ROW SPACING */

.sb-card-row {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.sb-card-row-top {
  margin-bottom: 1rem !important;
}

.sb-card-row-bottom {
  margin-top: 0 !important;
}

.sb-card-row + .sb-card-row {
  margin-top: -3rem !important;
}


/*
.sb-card {
  transition: border-color 0.15s ease;
}

.sb-card:hover {
  border-color: #777;
}
*/


/* COMPACT PROCESS STRIP */

.sb-process-strip {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  width: 100% !important;
  margin-top: 2rem !important;
  overflow: visible !important;
}

.sb-process-step {
  position: relative !important;
  overflow: visible !important;

  border: 1px solid var(--color-border) !important;
  background: var(--color-card) !important;
  padding: 0.75rem 0.85rem !important;
  box-sizing: border-box !important;

  font-size: 0.85rem !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
}

/* PROCESS CONNECTORS */

.sb-process-step:not(:last-child)::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 52% !important;
  right: -0.8rem !important;
  width: 0.8rem !important;
  height: 2px !important;
  background: #777 !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  pointer-events: none !important;
}


/* MOBILE */

@media (max-width: 640px) {
  .sb-process-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {
  .sb-process-strip {
    grid-template-columns: 1fr !important;
  }
}

/* REFINEMENT WORKFLOW SECTION */

.sb-refinement-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 2rem;
  align-items: start;
}

.sb-refinement-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-width: 660px;
}

/* REFINEMENT STEP */

.sb-refinement-step {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.75rem;
  align-items: center;

  border: 1px solid var(--color-border-light);
  background: #f1f1f1;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  min-height: 3.75rem;
}

.sb-refinement-number {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.78rem;
  line-height: 1;
  color: var(--color-muted);
}

.sb-refinement-step h3 {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
}

.sb-refinement-step p {
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 400;
  margin: 0.05rem 0 0 0;
  color: var(--color-text);
}

/* RIGHT PARAGRAPH */

.sb-refinement-layout .sb-body-text p {
  font-size: 1rem;
  line-height: 1.32;
  margin-top: 0;
}

/* RESPONSIVE */

@media (max-width: 780px) {
  .sb-refinement-layout {
    grid-template-columns: 1fr;
  }

  .sb-refinement-list {
    max-width: none;
  }
}

/* REFINEMENT STEP TEXT SPACING OVERRIDE */

.sb-refinement-step h3,
.sb-refinement-step p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.sb-refinement-step h3 {
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  margin-bottom: 0.15rem !important;
}

.sb-refinement-step p {
  line-height: 1.15 !important;
}

.sb-refinement-step div:last-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.3rem !important;
}

/* IMAGES */
.sb-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* SECTION WRAPPER SYSTEM */
.sb-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.sb-section-alt {
    background: var(--color-bg-soft);
}

/* CONTACT FORM */

.sb-contact-form input,
.sb-contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border) !important;
  background: #ffffff;
  color: var(--color-text);
  font-family: var(--font-lab);
  font-size: 0.9rem;
  line-height: 1.3;
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.sb-contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.sb-contact-form input:focus,
.sb-contact-form textarea:focus {
  outline: none;
  border-color: #555;
  background: #ffffff;
}

.sb-contact-form label {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  display: block;
}

.sb-contact-form .et_pb_contact_field {
  margin-bottom: 0.75rem;
}

.sb-contact-form .et_contact_bottom_container {
  float: none;
  justify-content: flex-end;
  margin-top: -1rem !important;
}

.sb-contact-form .et_pb_contact_submit {
  border: 1px solid var(--color-border) !important;
  background: #f7f7f7 !important;
  color: var(--color-text) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 0.85rem 1.8rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sb-contact-form .et_pb_contact_submit:hover {
  background: #ececec !important;
  color: #222 !important;
  border-color: #777 !important;
}

/* Hide duplicated Contact Form placeholders */

.sb-contact-form input::placeholder,
.sb-contact-form textarea::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

/* CONTACT FORM LABELS */

.sb-contact-form label {
  font-size: 0.85rem !important;
  line-height: 1.1 !important;
  color: var(--color-text) !important;
  margin-bottom: 0.15rem !important;
  display: block !important;
}

/* CONTACT FORM: REMOVE DIVI FLEX MODULE GAP */

.sb-contact-form .et_flex_module {
  gap: 0.8rem !important;
  row-gap: 0.8rem !important;
}

.sb-contact-form .et_pb_contact_form_label {
  margin: 0 0 0.2rem 0 !important;
  padding: 0 !important;
}

/* CONTACT FORM: SUBMIT BUTTON */

.sb-contact-form .et_pb_contact_submit {
  padding: 0.7rem 1.5rem !important;
  font-size: 0.75rem !important;
}

/* REFINEMENT IMAGE AND WORKFLOW WIDTH*/


.sb-refinement-list {
  max-width: var(--refinement-left-width) !important;
  width: 100% !important;
}

.sb-refinement-image,
.sb-refinement-image .et_pb_image_wrap,
.sb-refinement-image img {
  max-width: var(--refinement-left-width) !important;
  width: 100% !important;
  height: auto !important;
}

.sb-refinement-image {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* REFINEMENT WORKFLOW → IMAGE */

.sb-refinement-image {
  margin-top: 2rem !important;
  margin-bottom: 0rem !important;
}

/* IMAGE → CAPTION GAP */

.sb-caption {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.sb-caption .et_pb_text_inner,
.sb-caption p {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* METHODOLOGY SECTION SPACING */

/* Heading → cards */
.et_pb_section_3 .et_pb_row_6 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.et_pb_section_3 .et_pb_row_7 {
  padding-top: 0 !important;
  margin-top: -2rem !important;
}

/* Card row spacing */
.et_pb_section_3 .et_pb_row_8 {
  margin-top: -3rem !important;
}

/* Cards → text */
.et_pb_section_3 .et_pb_row_9 {
  padding-top: 0 !important;
  margin-top: -2rem !important;
}

/* Text width */
.et_pb_section_3 .et_pb_row_9 .sb-body-text {
  max-width: 540px !important;
}

/* Text → process strip */
.et_pb_section_3 .et_pb_row_10 {
  padding-top: 0 !important;
  margin-top: -4rem !important;
}

/* FINAL SECTION: heading spacing */

.et_pb_section_4 .et_pb_row_11,
.et_pb_section_4 .et_pb_row_14 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.et_pb_section_4 .et_pb_row_12,
.et_pb_section_4 .et_pb_row_15 {
  padding-top: 0 !important;
  margin-top: -3rem !important;
}

/* FINAL SECTION: buttons layout */

/* INLINE BUTTON ROWS */

.sb-inline-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
}

.sb-inline-buttons .sb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  min-height: 3.2rem;
  padding: 0.65rem 0.75rem;
  box-sizing: border-box;

  border: 1px solid var(--color-border);
  background: #f7f7f7;
  color: var(--color-text);

  font-size: 0.75rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 0;

  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.sb-inline-buttons .sb-button:hover {
  background: #ececec;
  color: #222;
  border-color: #777;
}

/* PRACTICE TEXT → BUTTONS */

.et_pb_section_4 .et_pb_row_13 {
  padding-top: 0 !important;
  margin-top: -2rem !important;
}

/* CONTACT HEADING → BUTTONS */

.et_pb_section_4 .et_pb_row_15 {
  padding-top: 0 !important;
  margin-top: -1rem !important;
}

/* CONTACT BUTTONS → FORM */

.et_pb_section_4 .et_pb_row_16 {
  margin-top: -1rem !important;
}

/* FOOTER LINKS */

.sb-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;

  font-size: 0.8rem;
  line-height: 1.2;
}

.sb-footer-links a {
  color: inherit;
  text-decoration: none;
}

.sb-footer-links a:hover {
  text-decoration: underline;
}

.sb-footer-links span {
  opacity: 0.7;
}

/* ==================================
   TABLET SPACING ADJUSTMENTS
   ================================== */

@media (max-width: 980px) {

  /* Focus Areas */

  .et_pb_section_1 .et_pb_row_2 {
    margin-top: -3.5rem !important;
  }

  .et_pb_section_1 .et_pb_row_4 {
    margin-top: -3rem !important;
  }

  .sb-hero-buttons {
    gap: 1.5rem;
  }

.sb-container-wide,
  .sb-container-main,
  .sb-container-text {
    width: 90%;
  }

 .sb-process-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .sb-process-step:not(:last-child)::after {
    display: none !important;
  }

  .sb-card-row + .sb-card-row {
    margin-top: -4rem !important;
  }

 /* Refinement workflow: heading to workflow */
  .et_pb_section_2 .et_pb_row_5 .sb-section-heading {
    margin-bottom: -1.5rem !important;
  }

  /* Refinement workflow: workflow to image */
  .sb-refinement-image {
    margin-top: 1.25rem !important;
  }

  /* Methodology heading → cards */
  .et_pb_section_3 .et_pb_row_7 {
    margin-top: -3.5rem !important;
  }

  /* Cards → methodology text */
  .et_pb_section_3 .et_pb_row_9 {
    margin-top: -3rem !important;
  }

  /* Text → process strip */
  .et_pb_section_3 .et_pb_row_10 {
    margin-top: -4rem !important;
  }

 /* Practice and contact sections */
  .et_pb_section_4 .et_pb_row_12 {
    margin-top: -3.5rem !important;
  }

  .et_pb_section_4 .et_pb_row_13 {
    margin-top: -3rem !important;
  }

  .et_pb_section_4 .et_pb_row_15 {
    margin-top: -2rem !important;
  }

  .et_pb_section_4 .et_pb_row_16 {
    margin-top: -2rem !important;
  }

}

/* ==================================
   MOBILE SPACING ADJUSTMENTS
   ================================== */

@media (max-width: 640px) {

  .sb-hero-buttons {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }

  .sb-hero-buttons .sb-button {
    width: 5.8rem !important;
    min-height: 2.2rem !important;
    font-size: 0.68rem !important;
  }

 /* Focus Areas mobile spacing */

  .et_pb_section_1 .et_pb_row_2 {
    margin-top: -3rem !important;
  }

  .et_pb_section_1 .et_pb_row_3 {
    margin-top: -3.75rem !important;
  }

  .et_pb_section_1 .et_pb_row_4 {
    margin-top: -3.75rem !important;
  }

  .sb-card {
    padding: 0.75rem 0.85rem !important;
  }

  .sb-card h3 {
    font-size: 1.15rem !important;
    line-height: 1.1 !important;
  }

 /* Focus Areas mobile card spacing */

   /* Focus Areas: mobile card stack gap */

  .et_pb_section_1 .et_pb_row_2,
  .et_pb_section_1 .et_pb_row_3 {
    gap: 0.75rem !important;
    row-gap: 0.75rem !important;
  }

  .et_pb_section_1 .et_pb_row_2 .et_pb_column,
  .et_pb_section_1 .et_pb_row_3 .et_pb_column {
    margin: 0 !important;
    padding: 0 !important;
  }

  .sb-card-row-top {
    margin-bottom: 0 !important;
  }

  .sb-card-row + .sb-card-row {
    margin-top: -3rem !important;
  }

  .et_pb_section_1 .et_pb_row_4 {
    margin-top: -2.5rem !important;
  }

  /* Refinement workflow: mobile card text alignment */

  .sb-refinement-step {
    grid-template-columns: 1.45rem 1fr !important;
    gap: 0.55rem !important;
    padding-left: 0.65rem !important;
    padding-right: 0.9rem !important;
  }

  .sb-refinement-number {
    width: 1.05rem !important;
    height: 1.05rem !important;
    font-size: 0.7rem !important;
  }

/* Workflow block → image */

  .sb-refinement-image {
    margin-top: -1.5rem !important;
  }

  /* Image → caption */

  .sb-caption {
    margin-top: -0.75rem !important;
  }

  /* Methodology: mobile card spacing */

  .et_pb_section_3 .et_pb_row_7,
  .et_pb_section_3 .et_pb_row_8 {
    gap: 0.75rem !important;
    row-gap: 0.75rem !important;
  }

  .et_pb_section_3 .et_pb_row_7 .et_pb_column,
  .et_pb_section_3 .et_pb_row_8 .et_pb_column {
    margin: 0 !important;
    padding: 0 !important;
  }

  .et_pb_section_3 .sb-card-row-top {
    margin-bottom: 0 !important;
  }

  .et_pb_section_3 .sb-card-row + .sb-card-row {
    margin-top: -3rem !important;
  }

  /* Methodology: cards → text */

  .et_pb_section_3 .et_pb_row_9 {
    margin-top: -1.75rem !important;
  }

/* Overview and contact buttons spacing */

 .sb-inline-buttons {
    gap: 1rem !important;
  }

}



