/*
 * Theme Name:  Ultra Diesel Services Child
 * Template:    Avada
 * Version:     1.0.0
 * Text Domain: avada-child
 */

/* Propagate --awb-text-color to content paragraphs inside Avada elements.
 * Avada only wires this to .fusion-title-heading, not body p tags. */

.fusion-title p,
.fusion-column-wrapper p,
.fusion-builder-row p {
  color: var(--awb-text-color);
}

/* Heading visual overrides — apply semantic heading-N appearance to any element.
 * Class can be placed on the element directly or on a .fusion-title wrapper div.
 * !important overrides Avada's inline styles on .fusion-title-heading elements. */

.sd-fusion-title-h1 .fusion-title-heading,
.sd-fusion-title-h1 p.title-heading-tag,
.sd-fusion-title-h1 {
  font-family: var(--h1_typography-font-family) !important;
  font-weight: var(--h1_typography-font-weight) !important;
  line-height: var(--h1_typography-line-height) !important;
  letter-spacing: var(--h1_typography-letter-spacing) !important;
  text-transform: var(--h1_typography-text-transform) !important;
  font-style: var(--h1_typography-font-style, normal) !important;
}

.sd-fusion-title-h2 .fusion-title-heading,
.sd-fusion-title-h2 p.title-heading-tag,
.sd-fusion-title-h2 {
  font-family: var(--h2_typography-font-family) !important;
  font-weight: var(--h2_typography-font-weight) !important;
  line-height: var(--h2_typography-line-height) !important;
  letter-spacing: var(--h2_typography-letter-spacing) !important;
  text-transform: var(--h2_typography-text-transform) !important;
  font-style: var(--h2_typography-font-style, normal) !important;
}

.sd-fusion-title-h3 .fusion-title-heading,
.sd-fusion-title-h3 p.title-heading-tag,
.sd-fusion-title-h3 {
  font-family: var(--h3_typography-font-family) !important;
  font-weight: var(--h3_typography-font-weight) !important;
  line-height: var(--h3_typography-line-height) !important;
  letter-spacing: var(--h3_typography-letter-spacing) !important;
  text-transform: var(--h3_typography-text-transform) !important;
  font-style: var(--h3_typography-font-style, normal) !important;
}

.sd-fusion-title-h4 .fusion-title-heading,
.sd-fusion-title-h4 p.title-heading-tag,
.sd-fusion-title-h4 {
  font-family: var(--h4_typography-font-family) !important;
  font-weight: var(--h4_typography-font-weight) !important;
  line-height: var(--h4_typography-line-height) !important;
  letter-spacing: var(--h4_typography-letter-spacing) !important;
  text-transform: var(--h4_typography-text-transform) !important;
  font-style: var(--h4_typography-font-style, normal) !important;
}

.sd-fusion-title-h5 .fusion-title-heading,
.sd-fusion-title-h5 p.title-heading-tag,
.sd-fusion-title-h5 {
  font-family: var(--h5_typography-font-family) !important;
  font-weight: var(--h5_typography-font-weight) !important;
  line-height: var(--h5_typography-line-height) !important;
  letter-spacing: var(--h5_typography-letter-spacing) !important;
  text-transform: var(--h5_typography-text-transform) !important;
  font-style: var(--h5_typography-font-style, normal) !important;
}

.sd-fusion-title-h6 .fusion-title-heading,
.sd-fusion-title-h6 p.title-heading-tag,
.sd-fusion-title-h6 {
  font-family: var(--h6_typography-font-family) !important;
  font-weight: var(--h6_typography-font-weight) !important;
  line-height: var(--h6_typography-line-height) !important;
  letter-spacing: var(--h6_typography-letter-spacing) !important;
  text-transform: var(--h6_typography-text-transform) !important;
  font-style: var(--h6_typography-font-style, normal) !important;
}

/* Override Avada's --awb-font-size and --awb-text-color on the wrapper.
 * Matches Avada's specificity (0,3,0) so child theme source order wins. */

.fusion-body .fusion-title.sd-fusion-title-h1 {
  --awb-font-size: var(--h1_typography-font-size) !important;
  /* --awb-text-color: var(--h1_typography-color) !important; */
}

.fusion-body .fusion-title.sd-fusion-title-h2 {
  --awb-font-size: var(--h2_typography-font-size) !important;
  /* --awb-text-color: var(--h2_typography-color) !important; */
}

.fusion-body .fusion-title.sd-fusion-title-h3 {
  --awb-font-size: var(--h3_typography-font-size) !important;
  /* --awb-text-color: var(--h3_typography-color) !important; */
}

.fusion-body .fusion-title.sd-fusion-title-h4 {
  --awb-font-size: var(--h4_typography-font-size) !important;
  /* --awb-text-color: var(--h4_typography-color) !important; */
}

.fusion-body .fusion-title.sd-fusion-title-h5 {
  --awb-font-size: var(--h5_typography-font-size) !important;
  /* --awb-text-color: var(--h5_typography-color) !important; */
}

.fusion-body .fusion-title.sd-fusion-title-h6 {
  --awb-font-size: var(--h6_typography-font-size) !important;
  /* --awb-text-color: var(--h6_typography-color) !important; */
}

/* add spacing for career buttons */

.stdy-gap .fusion-column-wrapper {
  gap: 16px;
}
