/* Sofia Spiritual static-site mobile navigation and language switcher overrides. */
/* SOFIA_HIDE_IMAGE_CAPTIONS_20260526 */
figure > figcaption,
.media-card figcaption,
.offering-card figcaption,
.video-card figcaption,
.wp-caption .wp-caption-text,
.gallery-caption {
  display: none !important;
}

.sofia-menu-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: #323232;
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.sofia-menu-toggle span,
.sofia-menu-toggle::before,
.sofia-menu-toggle::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  margin: 4px 0;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 25px;
}

.nav.sofia-menu-open .sofia-menu-toggle span {
  opacity: 0;
}

.nav.sofia-menu-open .sofia-menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.sofia-menu-open .sofia-menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.sofia-language-toggle,
.sofia-mobile-lang-switch {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sofia-language-toggle a,
.sofia-mobile-lang-switch a {
  border: 1px solid rgba(153, 136, 208, .45);
  color: #6f687a;
  display: inline-flex;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  justify-content: center;
  min-width: 38px;
  padding: 9px 10px;
  text-decoration: none;
}

.sofia-language-toggle a.is-active,
.sofia-mobile-lang-switch a.is-active {
  background: #9988d0;
  border-color: #9988d0;
  color: #fff;
}

.sofia-mobile-lang-switch {
  justify-content: center;
  margin: 22px auto 4px;
  width: 100%;
}

.sofia-home-lang-switch {
  justify-content: flex-start;
  margin: 0;
}

.menu_mobile .sofia-mobile-lang-switch a {
  border-color: rgba(255, 255, 255, .34);
  color: #f7f4fb;
}

.menu_mobile .sofia-mobile-lang-switch a.is-active {
  background: #9988d0;
  border-color: #9988d0;
}

@media (max-width: 767px) {
  body .top_panel section.elementor-element-20fac15f,
  body .top_panel .sc_layouts_hide_on_mobile,
  body .top_panel #menu_main,
  body .top_panel .menu_main_nav {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  body .top_panel section.elementor-element-700b146,
  body .top_panel .sc_layouts_menu_mobile_button {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body .top_panel .sc_layouts_menu_mobile_button {
    height: 44px !important;
    line-height: 44px !important;
    width: 44px !important;
  }

  body.menu_mobile_opened .menu_mobile.opened {
    background: #2f2f2f !important;
    height: 100dvh !important;
    inset: 0 !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    position: fixed !important;
    width: 100vw !important;
    z-index: 100002 !important;
  }

  body.menu_mobile_opened .menu_mobile.opened .menu_mobile_inner {
    background: #2f2f2f !important;
    min-height: 100dvh !important;
  }

  body:not(.menu_mobile_opened) .menu_mobile:not(.opened) {
    pointer-events: none !important;
  }

  body.home .top_panel section.elementor-element-116abf42 {
    background: #f0eef9 !important;
    color: #8a8394 !important;
    display: block !important;
  }

  body.home .top_panel section.elementor-element-116abf42 .elementor-container {
    align-items: center !important;
    display: flex !important;
    justify-content: flex-start !important;
    min-height: 45px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.home .top_panel section.elementor-element-116abf42 .elementor-column {
    display: contents !important;
  }

  body.home .top_panel .elementor-element-686c97ca,
  body.home .top_panel .elementor-element-5aa583d1 {
    display: inline-flex !important;
    height: auto !important;
    margin-right: 24px !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  body.home .top_panel .elementor-element-686c97ca .sc_layouts_iconed_text,
  body.home .top_panel .elementor-element-5aa583d1 .sc_layouts_iconed_text {
    color: #8a8394 !important;
    display: inline-flex !important;
    visibility: visible !important;
  }

  body.home .top_panel .elementor-element-686c97ca .sc_layouts_item_icon,
  body.home .top_panel .elementor-element-5aa583d1 .sc_layouts_item_icon,
  body.home .top_panel .elementor-element-741162ca {
    display: none !important;
  }

  body.home .top_panel section.elementor-element-700b146 .elementor-container {
    align-items: center !important;
    align-content: start !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 145px !important;
    padding: 18px 27px !important;
  }

  body.home .top_panel section.elementor-element-700b146 .elementor-column {
    width: auto !important;
  }

  body.home .top_panel section.elementor-element-700b146 .elementor-column:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  body.home .top_panel section.elementor-element-700b146 .elementor-column:first-child,
  body.home .top_panel section.elementor-element-700b146 .elementor-column:first-child .elementor-widget-wrap {
    align-items: flex-start !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.home .top_panel section.elementor-element-700b146 .elementor-column:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  body.home .top_panel .elementor-element-27970da2,
  body.home .top_panel .elementor-element-27970da2 .hide_on_mobile {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    width: auto !important;
  }

  body.home .top_panel .elementor-element-27970da2 .elementor-widget-container,
  body.home .top_panel .elementor-element-27970da2 a.sc_layouts_logo {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    width: min(235px, calc(100vw - 120px)) !important;
  }

  body.home .top_panel .elementor-element-27970da2 img.logo_image {
    height: auto !important;
    max-height: none !important;
    max-width: min(235px, calc(100vw - 120px)) !important;
    width: 235px !important;
  }

  body.home .top_panel .elementor-element-711f425f {
    display: none !important;
  }

  body.home .top_panel .sofia-home-lang-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
}

@media (min-width: 861px) {
  .nav .sofia-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 860px) {
  body .nav {
    align-items: center !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 0 !important;
    padding-bottom: 18px !important;
    padding-top: 18px !important;
  }

  body .nav .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  body .nav .logo img {
    max-width: min(260px, calc(100vw - 108px));
  }

  body .nav .sofia-language-toggle {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  body .nav .sofia-menu-toggle {
    align-items: center;
    display: inline-flex !important;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  body .nav > .menu {
    align-items: stretch !important;
    border-top: 1px solid var(--line, #e7e0ee);
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 12px 0 0 !important;
    width: 100%;
  }

  body .nav.sofia-menu-open > .menu {
    display: flex !important;
  }

  body .nav > .menu > li {
    padding: 0 !important;
    width: 100%;
  }

  body .nav .menu a {
    border-bottom: 0 !important;
    display: block !important;
    padding: 12px 0 !important;
    width: 100%;
  }

  body .nav .submenu {
    background: #faf8ff !important;
    box-shadow: none !important;
    display: none !important;
    left: auto !important;
    padding: 6px 0 !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  body .nav.sofia-menu-open .menu > li:hover > .submenu,
  body .nav.sofia-menu-open .menu > li:focus-within > .submenu,
  body .nav.sofia-menu-open .menu > li.sofia-submenu-open > .submenu {
    display: block !important;
  }

  body .nav .submenu a {
    padding-left: 18px !important;
  }

  .topbar {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
