/**
 * Layout fixes — footer, social, service photos, split panels.
 */

/* ── Header nav — keep Services dropdown from being clipped ── */

.jem-rebrand .elementor-location-header .rkit-menu-container,
.jem-rebrand .elementor-location-header .rkit-navmenu-container,
.jem-rebrand .elementor-location-header .rkit-navmenu,
.jem-rebrand .elementor-location-header .elementor-element-fa06190,
.jem-rebrand .elementor-location-header .elementor-element-fa06190 > .elementor-widget-wrap,
.jem-rebrand .elementor-location-header .elementor-element-74b241be,
.jem-rebrand .elementor-location-header .elementor-element-7abae939 {
  overflow: visible !important;
}

.jem-rebrand .elementor-location-header .rkit-navmenu-dropdown {
  z-index: 1101 !important;
}

/* ── Services section: lavender band + photo cards (prototype) ── */

.jem-rebrand .jem-services-section,
.jem-rebrand .jem-services-section.elementor-element-4d75692,
.jem-rebrand .elementor-833 .elementor-element-4d75692.jem-services-section {
  background: var(--jem-lavender) !important;
  padding-block: clamp(4rem, 9vw, 6rem) !important;
}

.jem-rebrand .jem-services-section .elementor-element-298ddb6 > .elementor-widget-wrap {
  background: transparent !important;
}

.jem-rebrand .jem-services-section .jem-section-heading .elementor-heading-title {
  color: var(--jem-navy) !important;
}

.jem-rebrand .jem-services-unified > .elementor-column > .elementor-widget-wrap.jem-service-card-inner {
  padding: 0 !important;
  overflow: hidden;
  border-top: none !important;
}

.jem-rebrand .jem-services-unified > .elementor-column > .elementor-widget-wrap.jem-service-card-inner::before {
  display: none !important;
}

.jem-rebrand .jem-service-photo {
  height: 180px;
  overflow: hidden;
  background: var(--jem-mint);
}

.jem-rebrand .jem-services-unified .jem-service-featured .jem-service-photo {
  height: 220px;
}

.jem-rebrand .jem-service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.jem-rebrand .jem-services-unified > .elementor-column:hover .jem-service-photo img {
  transform: scale(1.04);
}

.jem-rebrand .jem-service-card-inner .elementor-widget-image-box,
.jem-rebrand .jem-service-card-inner .elementor-widget-button {
  padding-inline: 1.5rem;
}

.jem-rebrand .jem-service-card-inner .elementor-widget-image-box {
  padding-top: 1.25rem;
  flex: 1;
}

.jem-rebrand .jem-service-card-inner .elementor-widget-button {
  padding-bottom: 1.5rem;
  margin-top: auto;
}

.jem-rebrand .jem-services-unified .elementor-image-box-title {
  color: var(--jem-purple) !important;
}

.jem-rebrand .jem-services-unified .jem-service-featured .elementor-image-box-title {
  color: var(--jem-navy) !important;
  font-size: 1.2rem !important;
}

.jem-rebrand .jem-services-unified .elementor-image-box-description,
.jem-rebrand .jem-services-section .elementor-image-box-description {
  color: var(--jem-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jem-rebrand .jem-services-unified .jem-service-featured .elementor-image-box-description {
  color: var(--jem-muted) !important;
  -webkit-line-clamp: 4;
}

/* ── Goals / objectives split — full image visible ── */

.jem-rebrand .jem-split-panel-fixed.jem-goals-panel > .e-con-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(min(100%, 360px), 0.95fr) !important;
  align-items: stretch !important;
  gap: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.jem-rebrand .jem-split-panel-fixed .elementor-element-06e7b5b,
.jem-rebrand .jem-split-panel-fixed .elementor-element-1849c91 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}

.jem-rebrand .jem-split-panel-fixed .elementor-element-1849c91,
.jem-rebrand .jem-split-panel-fixed .elementor-element-065b0d4 {
  display: flex !important;
  align-items: stretch;
}

.jem-rebrand .jem-split-panel-fixed .elementor-element-1849c91 .elementor-widget-wrap,
.jem-rebrand .jem-split-panel-fixed .elementor-element-065b0d4 .elementor-widget-wrap,
.jem-rebrand .jem-split-panel-fixed .elementor-element-065b0d4 .elementor-widget-container {
  width: 100% !important;
  height: 100%;
}

.jem-rebrand .jem-split-panel-fixed .elementor-element-065b0d4 {
  width: 100% !important;
  flex: 1 1 auto !important;
}

.jem-rebrand .jem-split-panel-fixed .elementor-widget-image {
  width: 100% !important;
  height: 100%;
}

.jem-rebrand .jem-split-panel-fixed .elementor-widget-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(280px, 42vw, 480px);
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: var(--jem-radius-xl) !important;
  display: block;
}

.jem-rebrand .jem-stats-split > .elementor-container {
  align-items: stretch !important;
}

.jem-rebrand .jem-stats-split .elementor-element-f7c90b9 img,
.jem-rebrand .jem-stats-split .elementor-element-d7e663a img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px;
  object-fit: cover !important;
  border-radius: var(--jem-radius-xl) !important;
}

/* ── Header top bar — hidden; address/email live in footer + contact page ── */

.jem-rebrand .elementor-location-header .elementor-element-bbb5052,
.jem-rebrand .jem-header-top-bar-hidden {
  display: none !important;
}

/* ── Header shell — logo left, menu control pinned right ── */

.jem-rebrand .jem-header-shell > .elementor-container,
.jem-rebrand .elementor-location-header .elementor-element-74b241be > .elementor-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem 1rem !important;
  width: 100% !important;
}

.jem-rebrand .jem-header-logo-col,
.jem-rebrand .elementor-location-header .elementor-element-14fbf9d3 {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: clamp(110px, 32vw, 150px) !important;
}

.jem-rebrand .jem-header-nav-col,
.jem-rebrand .elementor-location-header .elementor-element-fa06190 {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.jem-rebrand .elementor-location-header .elementor-element-fa06190 > .elementor-widget-wrap,
.jem-rebrand .elementor-location-header .elementor-element-fa06190 .elementor-widget-container {
  width: 100% !important;
}

.jem-rebrand .elementor-location-header .rkit-navmenu-container {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.jem-rebrand .elementor-location-header .rkit-hamburger {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  order: 99 !important;
}

.jem-rebrand .elementor-location-header .rkit-navmenu.rkit-responsive-menu {
  flex: 0 0 auto !important;
}

/* No Instagram in the header */
.jem-rebrand .elementor-location-header .jem-header-instagram,
.jem-rebrand .elementor-location-header .jem-header-instagram-mobile {
  display: none !important;
}

/* ── Header Instagram (legacy — kept for footer/social references) ── */

.jem-rebrand .jem-header-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  background: var(--jem-lavender);
  color: var(--jem-purple);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jem-rebrand .jem-header-instagram:hover {
  background: var(--jem-purple);
  color: #fff;
  transform: translateY(-1px);
}

.jem-rebrand .jem-header-instagram svg {
  flex-shrink: 0;
}

.jem-rebrand .elementor-location-header .jem-header-social-bar .elementor-social-icon {
  width: 2.25rem !important;
  height: 2.25rem !important;
  font-size: 1.1rem !important;
}

.jem-rebrand .elementor-location-header .jem-header-social-bar .elementor-social-icon svg {
  width: 1.1rem !important;
  height: 1.1rem !important;
}

.jem-rebrand .jem-header-top-social .elementor-social-icon {
  width: 2.35rem !important;
  height: 2.35rem !important;
  font-size: 1.15rem !important;
  background: rgb(255 255 255 / 14%) !important;
}

.jem-rebrand .jem-header-top-social .elementor-social-icon svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
}

.jem-rebrand .elementor-location-header .elementor-element-5d20ded0 > .elementor-widget-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap;
  gap: 0;
}

.jem-rebrand .elementor-location-header .elementor-element-5d20ded0 .elementor-button-wrapper {
  flex: 0 0 auto;
}

.jem-rebrand .elementor-location-header .jem-nav-tail {
  display: flex;
  flex: 0 0 auto;
  list-style: none;
  margin-left: 0.15rem;
}

.jem-rebrand .elementor-location-header .jem-nav-tail-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.jem-rebrand .elementor-location-header .jem-nav-tail-group > .rkit-nav-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.jem-rebrand .elementor-location-header .jem-nav-tail-group > .rkit-nav-link + .rkit-nav-link {
  margin-left: 0.1rem;
}

@media (min-width: 1025px) {
  .jem-rebrand .elementor-location-header .rkit-menu-container {
    flex-wrap: nowrap !important;
  }

  .jem-rebrand .elementor-location-header .elementor-element-fa06190 {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 18rem);
  }

  .jem-rebrand .elementor-location-header .rkit-nav-link {
    padding-inline: 0.65rem !important;
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 1024px) {
  .jem-rebrand .elementor-location-header .rkit-menu-container {
    flex-wrap: wrap;
  }
}

/* ── Footer — remove empty gap, enlarge social ── */

.jem-rebrand .jem-footer-fixed .jem-footer-top > .elementor-container {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--jem-max, 72rem);
  margin-inline: auto;
  padding-inline: var(--jem-gutter, clamp(1.25rem, 4vw, 2.5rem));
}

.jem-rebrand .jem-footer-fixed .jem-footer-top .elementor-element-119401ae {
  display: none !important;
}

.jem-rebrand .jem-footer-fixed .jem-footer-tagline-col > .elementor-widget-wrap {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  padding-block: 0.5rem !important;
}

.jem-rebrand .jem-footer-fixed .jem-footer-top {
  padding-block: clamp(1.25rem, 3vw, 2rem) !important;
}

.jem-rebrand .jem-footer-tagline {
  text-align: center;
  width: 100%;
}

.jem-rebrand .jem-footer-tagline-text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 82%);
}

.jem-rebrand .jem-footer-address {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.jem-rebrand .jem-footer-address a {
  color: rgb(255 255 255 / 88%);
  text-decoration: none;
}

.jem-rebrand .jem-footer-address a:hover {
  color: var(--jem-sun);
}

.jem-rebrand .jem-footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  color: var(--jem-sun);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jem-rebrand .jem-footer-instagram-link span {
  white-space: nowrap;
}

.jem-rebrand .jem-footer-instagram-link:hover {
  background: rgb(255 255 255 / 16%);
  transform: translateY(-1px);
  color: #fff;
}

.jem-rebrand .jem-footer-social .elementor-icon-list-icon {
  width: 2.5rem !important;
  height: 2.5rem !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(255 255 255 / 10%);
}

.jem-rebrand .jem-footer-social .elementor-icon-list-icon svg {
  width: 1.35rem !important;
  height: 1.35rem !important;
}

.jem-rebrand .jem-footer-social .elementor-icon-list-text {
  font-size: 0.9375rem !important;
  font-weight: 600;
  color: var(--jem-sun) !important;
  margin-left: 0.35rem;
}

.jem-rebrand .jem-footer-social .elementor-icon-list-item a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 8%);
  transition: background 0.2s ease;
}

.jem-rebrand .jem-footer-social .elementor-icon-list-item a:hover {
  background: rgb(255 255 255 / 14%);
}

.jem-rebrand .jem-footer-fixed .elementor-element-305b8ec7 img {
  max-height: 88px;
  width: auto;
}

/* ── Homepage follow-us band ── */

.jem-rebrand .jem-follow-us-band {
  background: var(--jem-mint) !important;
  padding-block: 2.5rem !important;
}

.jem-rebrand .jem-follow-us-band .elementor-icon-list-icon svg {
  width: 1.75rem !important;
  height: 1.75rem !important;
}

.jem-rebrand .jem-follow-us-band .elementor-icon-list-text {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--jem-purple) !important;
}

/* ── Contact page / section — address + email details ── */

.jem-rebrand .jem-contact-address-item a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.jem-rebrand .jem-contact-address-item a:hover {
  color: var(--jem-purple);
}

.jem-rebrand .jem-contact-quick-details {
  margin: 0 0 1.25rem;
}

.jem-rebrand .jem-contact-quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.jem-rebrand .jem-contact-quick-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.jem-rebrand .jem-contact-quick-list a:hover {
  color: var(--jem-purple);
}

.jem-rebrand .jem-contact-quick-icon {
  flex: 0 0 auto;
  width: 1.1rem;
  margin-top: 0.15rem;
}

.jem-rebrand .jem-contact-quick-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

@media (max-width: 900px) {
  .jem-rebrand .jem-footer-fixed .jem-footer-top > .elementor-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .jem-rebrand .jem-footer-fixed .elementor-element-119401ae .elementor-widget-wrap {
    justify-content: center !important;
  }

  .jem-rebrand .jem-split-panel-fixed.jem-goals-panel > .e-con-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .jem-rebrand .jem-services-unified .jem-service-featured {
    grid-column: span 1;
  }
}

/* ═══ About — Vision / Mission cards (prevent shrink-wrapped columns) ═══ */

.jem-rebrand .jem-layout-dual-cards-wrap > .elementor-container,
.elementor-121 .jem-layout-dual-cards-wrap > .elementor-container {
  display: flex !important;
  grid-template-columns: unset !important;
  width: 100% !important;
  max-width: min(72rem, 100%) !important;
}

.elementor-121 .elementor-element-54f49a75 .elementor-element-35d2c60d,
.elementor-121 .elementor-element-54f49a75 .elementor-element-35d2c60d > .elementor-widget-wrap,
.elementor-121 .elementor-element-19fcc0fb,
.elementor-121 .jem-vision-mission-grid {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.elementor-121 .elementor-element-19fcc0fb > .elementor-container,
.elementor-121 .jem-vision-mission-grid > .elementor-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)) !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  width: 100% !important;
  max-width: min(72rem, 100%) !important;
  margin-inline: auto !important;
  align-items: stretch !important;
}

.elementor-121 .elementor-element-19fcc0fb > .elementor-container > .elementor-column,
.elementor-121 .elementor-element-19fcc0fb > .elementor-container > .elementor-inner-column,
.elementor-121 .jem-vision-mission-grid > .elementor-container > .elementor-column,
.elementor-121 .jem-vision-mission-grid > .elementor-container > .elementor-inner-column {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: unset !important;
  --width: auto !important;
  --flex-shrink: 1 !important;
}

.elementor-121 .elementor-element-7fbcd03f,
.elementor-121 .elementor-element-61d3da06 {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.elementor-121 .elementor-element-7fbcd03f > .elementor-widget-wrap,
.elementor-121 .elementor-element-61d3da06 > .elementor-widget-wrap {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.elementor-121 .elementor-element-1d72502,
.elementor-121 .elementor-element-3a632ac,
.elementor-121 .elementor-element-1d72502 > .elementor-widget-container,
.elementor-121 .elementor-element-3a632ac > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  --flex-shrink: 1 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.75 !important;
}

.elementor-121 .elementor-element-1d72502 p,
.elementor-121 .elementor-element-3a632ac p {
  white-space: normal !important;
  max-width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 1024px) {
  .elementor-121 .elementor-element-19fcc0fb > .elementor-container,
  .elementor-121 .jem-vision-mission-grid > .elementor-container {
    grid-template-columns: 1fr !important;
  }
}
