/* NYOMIC 1.8 WordPress/Elementor layout correction.
 * Elementor boxed containers apply their padding to .e-con-inner, not only to
 * the outer element. The prior CSS only reset the parent, causing a 390px
 * three-row header and doubled section spacing on real WordPress pages.
 * Keep this file last in the enqueue order so the already seeded Elementor
 * templates are repaired without replacing user-owned page content. */

.nyomic-theme .nyomic-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
}

.nyomic-theme .nyomic-header .nyomic-elementor-global-head {
  width: min(100%, 1320px);
  max-width: 1320px;
  min-height: 82px;
  padding: 0 28px !important;
  margin: 0 auto !important;
}

.nyomic-theme .nyomic-header .nyomic-elementor-global-head > .e-con-inner {
  width: 100% !important;
  max-width: 1260px !important;
  min-height: 82px;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  align-items: center !important;
  justify-items: stretch;
  column-gap: clamp(12px, 2vw, 24px);
  flex-direction: row !important;
}

.nyomic-theme .nyomic-elementor-global-head > .e-con-inner > .elementor-widget {
  margin: 0 !important;
  min-width: 0;
  align-self: center;
}

.nyomic-theme .nyomic-elementor-global-head .elementor-widget-image {
  width: 155px;
  max-width: 155px;
  justify-self: start;
}

.nyomic-theme .nyomic-elementor-global-head .elementor-widget-image img {
  display: block;
  width: 155px;
  height: 61px;
  max-height: 61px;
  object-fit: contain;
  object-position: left center;
}

.nyomic-theme .nyomic-elementor-global-head .elementor-widget-text-editor {
  min-width: 0;
  width: auto;
  justify-self: end;
}

.nyomic-theme .nyomic-elementor-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  min-width: 0;
}

.nyomic-theme .nyomic-elementor-menu a {
  color: #273640;
  font: 700 11px/1.2 Roboto, Arial, sans-serif;
  white-space: nowrap;
}

.nyomic-theme .nyomic-elementor-global-head .elementor-widget-shortcode {
  width: auto;
  justify-self: end;
}

.nyomic-theme .nyomic-elementor-global-head .nyomic-action {
  padding: 13px 16px;
  border-radius: 4px;
  white-space: nowrap;
}

/* The same Elementor padding issue affected all boxed sections, multiplying
 * the 60px seed padding with the site's section-level padding. */
.nyomic-theme .nyomic-site-main :is(
  .nyomic-hero,
  .nyomic-content,
  .nyomic-feature-band,
  .nyomic-image-showcase,
  .nyomic-visual-card,
  .nyomic-conversion-hero,
  .nyomic-conversion-section,
  .nyomic-hero-actions
) > .e-con-inner {
  padding: 0 !important;
}

.nyomic-theme .nyomic-site-main .nyomic-hero > .e-con-inner {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
}

.nyomic-theme .nyomic-site-main .nyomic-content > .e-con-inner {
  width: 100% !important;
  max-width: 1190px !important;
  margin: 0 auto !important;
}

.nyomic-theme .nyomic-footer .nyomic-elementor-global-foot {
  max-width: 1260px;
  margin: 0 auto !important;
}

.nyomic-theme .nyomic-footer .nyomic-elementor-global-foot > .e-con-inner {
  padding: 0 !important;
  gap: 8px;
}

.nyomic-theme .nyomic-footer .nyomic-elementor-global-foot .elementor-widget {
  margin-bottom: 0 !important;
}

@media (max-width: 1150px) {
  .nyomic-theme .nyomic-elementor-menu {display: none !important;}
  .nyomic-theme .nyomic-elementor-menu-mobile {display: block !important;}
  .nyomic-theme .nyomic-elementor-global-head .elementor-widget-text-editor {justify-self: end;}
  .nyomic-theme .nyomic-header .nyomic-elementor-global-head > .e-con-inner {
    grid-template-columns: 155px minmax(0, 1fr) auto;
  }
  .nyomic-theme .nyomic-elementor-global-head .nyomic-action {padding: 12px 14px;}
}

@media (max-width: 750px) {
  .nyomic-theme .nyomic-header .nyomic-elementor-global-head {
    min-height: 67px;
    padding: 0 18px !important;
  }
  .nyomic-theme .nyomic-header .nyomic-elementor-global-head > .e-con-inner {
    min-height: 67px;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 8px;
  }
  .nyomic-theme .nyomic-elementor-global-head .elementor-widget-image {width: 132px;max-width: 132px;}
  .nyomic-theme .nyomic-elementor-global-head .elementor-widget-image img {width: 132px;height: 54px;}
  .nyomic-theme .nyomic-elementor-global-head .elementor-widget-shortcode {display: none !important;}
  .nyomic-theme .nyomic-elementor-menu-mobile summary {
    border: 1px solid #dae6e9;
    border-radius: 5px;
    padding: 10px 13px;
  }
  .nyomic-theme .nyomic-elementor-menu-mobile[open] {
    z-index: 150;
    position: absolute;
    top: 13px;
    right: 18px;
    min-width: min(270px, calc(100vw - 36px));
    border: 1px solid #e0e9ec;
    border-radius: 7px;
    box-shadow: 0 16px 35px #123d5329;
    background: #fff;
  }
  .nyomic-theme .nyomic-elementor-menu-mobile[open] a {
    box-shadow: none;
    min-width: 0;
  }
  .nyomic-theme .nyomic-site-main .nyomic-content {padding: 54px 18px !important;}
}
