/*
 * FMBC Modern Luxe 1.0.3 — Home Hero Value Block Hard Override
 * Loaded at very late wp_enqueue_scripts priority so it follows Elementor page CSS.
 * This intentionally targets only the three hero value blocks on the front page.
 */

@media (min-width: 782px) {
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-copy .fmbc-hero-icons,
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-copy .fmbc-hero-icons > .e-con-inner {
    --display: grid !important;
    --width: 100% !important;
    width: 100% !important;
    max-width: 700px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 34px !important;
    row-gap: 0 !important;
    align-items: start !important;
    justify-items: stretch !important;
    margin-top: 20px !important;
    padding: 0 !important;
  }

  /* Elementor writes --width:33.333% into each generated child container.
     Override both the CSS variable and the resolved width/flex properties. */
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons > .fmbc-mini-feature,
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons > .e-con-inner > .fmbc-mini-feature,
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-mini-feature {
    --width: 100% !important;
    --min-height: 0px !important;
    --flex-grow: 1 !important;
    --flex-shrink: 1 !important;
    --flex-basis: 0% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 6px 0 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-mini-feature > .e-con-inner {
    --width: 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* GOLD ICONS — target the widget, span and SVG separately so Elementor
     widget typography cannot recolor or shrink the symbol. */
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-hero-symbol,
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-hero-symbol > .elementor-widget-container {
    --width: 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #e6a528 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-hero-symbol .fmbc-icon-svg {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #e6a528 !important;
    font-size: 42px !important;
    line-height: 1 !important;
  }

  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-hero-symbol .fmbc-icon-svg svg {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: block !important;
    fill: none !important;
    stroke: #e6a528 !important;
    color: #e6a528 !important;
    stroke-width: 1.75 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  /* BRIGHT, WIDER CAPTIONS */
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-copy-light,
  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-copy-light > .elementor-widget-container {
    --width: 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.32 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
  }

  body.home.fmbc-modern-luxe .fmbc-hero .fmbc-hero-icons .fmbc-copy-light p {
    width: 100% !important;
    max-width: 205px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #ffffff !important;
    font: inherit !important;
    line-height: 1.32 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
  }
}

/* Keep the prior mobile/tablet engine untouched below WordPress's desktop
   admin-bar breakpoint. */
