/* Start custom CSS *//* ===== Bronn - Home "What we build" cards (Multi-wavelength / High optical power / Built to scale) =====
   One card is the white card: the first one by default, or the one under the mouse; the others are glass.
   Built so it can't flicker:
   - the white card follows real mouse movement (motion script), so cards growing / shrinking can't flip it;
     without the script the cards keep a fixed height (button space reserved) so nothing can move under the mouse;
   - no backdrop blur on these cards (the glow behind them is already soft), and the white fades in on the
     card's own background colour instead of an extra layer, so the browser has very little to redraw.
   With the motion script the active card follows real mouse movement (.is-on); without it, :hover. */
.elementor .b-feat-cards > .b-feat-card {
  background-color: var(--bronn-glass) !important;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.03) 75%, rgba(255,255,255,0.10) 100%) !important;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.55);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.elementor .b-feat-cards > .b-feat-card :is(h2, h3, h4, p) { color: var(--bronn-white) !important; transition: color 0.45s ease; }

.elementor .b-feat-cards.js-feat:not(:has(> .b-feat-card.is-on)) > .b-feat-card:first-child,
.elementor .b-feat-cards.js-feat > .b-feat-card.is-on,
.elementor .b-feat-cards:not(.js-feat):not(:has(> .b-feat-card:hover)) > .b-feat-card:first-child,
.elementor .b-feat-cards:not(.js-feat) > .b-feat-card:hover {
  background-color: var(--bronn-white) !important;
  border-color: transparent;
  box-shadow: none;
}
.elementor .b-feat-cards.js-feat:not(:has(> .b-feat-card.is-on)) > .b-feat-card:first-child :is(h2, h3, h4, p),
.elementor .b-feat-cards.js-feat > .b-feat-card.is-on :is(h2, h3, h4, p),
.elementor .b-feat-cards:not(.js-feat):not(:has(> .b-feat-card:hover)) > .b-feat-card:first-child :is(h2, h3, h4, p),
.elementor .b-feat-cards:not(.js-feat) > .b-feat-card:hover :is(h2, h3, h4, p) { color: var(--bronn-ash-grey) !important; }

/* the button (fallback without the motion script): always takes its space (no height change), only fades / slides in on the white card */
.elementor .b-feat-cards > .b-feat-card > .b-btn {
  padding-block: 15px !important;   /* same size as before */
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity 0.3s ease, translate 0.4s ease, visibility 0s linear 0.4s, scale 0.35s ease !important;
}
.elementor .b-feat-cards.js-feat:not(:has(> .b-feat-card.is-on)) > .b-feat-card:first-child > .b-btn,
.elementor .b-feat-cards.js-feat > .b-feat-card.is-on > .b-btn,
.elementor .b-feat-cards:not(.js-feat):not(:has(> .b-feat-card:hover)) > .b-feat-card:first-child > .b-btn,
.elementor .b-feat-cards:not(.js-feat) > .b-feat-card:hover > .b-btn {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 0.35s ease 0.1s, translate 0.4s ease 0.1s, visibility 0s, scale 0.35s ease !important;
}

/* With the motion script: the button folds open / closed again, so each card is only as tall as it needs.
   Safe because the active card is only chosen by real mouse movement: a card growing or shrinking
   under a still mouse can't change which card is white (that is what caused the flipping). */
.elementor .b-feat-cards.js-feat > .b-feat-card > .b-btn {
  max-height: 0;
  margin-block-start: -20px;            /* cancels the card's 20px gap while folded */
  padding-block: 0 !important;
  translate: 0 0;
  transition: max-height 0.5s cubic-bezier(0.65, 0, 0.25, 1) 0.1s, margin 0.5s cubic-bezier(0.65, 0, 0.25, 1) 0.1s,
              padding 0.5s cubic-bezier(0.65, 0, 0.25, 1) 0.1s, opacity 0.25s ease, visibility 0s linear 0.6s, scale 0.35s ease !important;
}
.elementor .b-feat-cards.js-feat:not(:has(> .b-feat-card.is-on)) > .b-feat-card:first-child > .b-btn,
.elementor .b-feat-cards.js-feat > .b-feat-card.is-on > .b-btn {
  max-height: 80px;
  margin-block-start: 0;
  padding-block: 15px !important;
  transition: max-height 0.5s cubic-bezier(0.65, 0, 0.25, 1), margin 0.5s cubic-bezier(0.65, 0, 0.25, 1),
              padding 0.5s cubic-bezier(0.65, 0, 0.25, 1), opacity 0.35s ease 0.2s, visibility 0s, scale 0.35s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  .elementor .b-feat-cards > .b-feat-card, .elementor .b-feat-cards > .b-feat-card > .b-btn,
  .elementor .b-feat-cards > .b-feat-card :is(h2, h3, h4, p) { transition: none !important; }
}/* End custom CSS */