/*
  Elementor renders this site using "Container" layouts whose actual
  flex-direction/display/gap/width values live in page-specific CSS
  (wp-content/uploads/elementor/css/post-*.css) that was never archived
  anywhere and can't be recovered. Elementor's own base CSS falls back to
  `display: var(--display)` / `flex-direction: var(--flex-direction)`,
  which both resolve to nothing without that file, and separately sets
  `width: 100%` on every container by default - so every container
  collapses to full-width, block-level vertical stacking (icon above its
  own text, logo above the nav, etc).

  This gives Elementor's ".e-con-inner" wrappers a sane default: a
  horizontal, wrapping flex row, with each child sized to its own content
  instead of forced full-width. That matches the vast majority of this
  theme's actual layouts (header bar, icon+label pairs, logo+nav,
  feature/service columns) well enough to look intentional again.
*/
.e-con {
  display: flex !important;
}
.e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px 28px !important;
}

/* kill Elementor's "width: 100%" default on every direct child so flex
   can size each one to its content instead of stacking full-width */
.e-con-inner > .e-con.e-child {
  width: auto !important;
  flex: 0 1 auto !important;
}

/* icon+label pairs (contact bar, feature items) shouldn't stack their own
   icon above the text either */
.e-con-inner .elementor-widget-icon,
.e-con-inner .elementor-widget-heading {
  display: flex;
  align-items: center;
}

/* the nav row specifically: logo and menu pinned to opposite ends, and
   the menu itself should still be free to grow/wrap on its own */
.e-con-inner:has(.elementor-widget-ekit-nav-menu) {
  justify-content: space-between !important;
}
.e-con-inner:has(.elementor-widget-ekit-nav-menu) > .e-con.e-child:has(.elementor-widget-ekit-nav-menu) {
  flex: 1 1 auto !important;
}

/* top contact bar: icon+label pairs use oversized default heading type,
   since the per-page CSS that would normally shrink them is missing */
.e-con-inner:has(.elementor-widget-icon):not(:has(.elementor-widget-ekit-nav-menu)) .elementor-heading-title {
  font-size: 15px;
  margin: 0;
}
.e-con-inner:has(.elementor-widget-icon):not(:has(.elementor-widget-ekit-nav-menu)) svg,
.e-con-inner:has(.elementor-widget-icon):not(:has(.elementor-widget-ekit-nav-menu)) .elementor-icon i {
  width: 20px;
  height: 20px;
}

/* content/feature columns (not the header) should still share the row
   evenly rather than only being as wide as their own content */
.e-con-inner:not(:has(.elementor-widget-ekit-nav-menu)):not(:has(.elementor-widget-icon)) > .e-con.e-child {
  flex: 1 1 260px !important;
  width: 0 !important;
}
