/* To Ergastiri - desktop Services mega-menu content.
   All content is made from native Elementor containers and widgets. */

.te-native-mega-menu,
.te-native-mega-menu * {
  box-sizing: border-box;
}


.megamenu-template h2, 
.megamenu-template .title-h2, 
.megamenu-template h3.comment-reply-title, 
.megamenu-template .elementor-widget-heading h2.elementor-heading-title, 
.megamenu-template .elementor-widget-heading 
.megamenu-template .title-h2.elementor-heading-title {line-height: normal!important;}

.te-native-mega-menu {
  --te-menu-ink: #171410;
  --te-menu-cream: #f1eadf;
  --te-menu-paper: #fbf8f2;
  --te-menu-gold: #9d7446;
  --te-menu-copy: #6f665b;
  --te-menu-line: rgba(23, 20, 16, 0.15);
  width: 100% !important;
  min-height: 430px;
  display: grid !important;
  grid-template-columns: minmax(235px, 0.78fr) minmax(540px, 1.86fr) minmax(280px, 0.95fr);
  overflow: hidden !important;
  color: var(--te-menu-ink);
  background: var(--te-menu-paper);
  border-top: 1px solid rgba(23, 20, 16, 0.08);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.24);
  font-family: Manrope, Arial, sans-serif;
}

.te-native-mega-menu .elementor-widget {
  margin: 0;
}

.te-native-mega-intro {
  min-width: 0;
  min-height: 430px;
  padding: 42px clamp(26px, 2.3vw, 44px) 34px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: var(--te-menu-cream);
  border-right: 1px solid var(--te-menu-line);
}

.te-native-mega-intro-copy {
  display: block !important;
}

.te-native-mega-kicker .elementor-heading-title {
  color: var(--te-menu-gold);
  font-family: Manrope, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.19em;
}

.te-native-mega-heading .elementor-heading-title {
  max-width: 10ch;
  margin: 16px 0 14px;
  color: var(--te-menu-ink);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(29px, 2.25vw, 40px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.te-native-mega-intro-text .elementor-widget-container {
  max-width: 31ch;
  color: var(--te-menu-copy);
  font-size: 13px;
  line-height: 1.65;
}

.te-native-mega-intro-text p,
.te-native-mega-copy-text p {
  margin: 0;
}

.te-native-mega-all {
  padding-top: 19px;
  border-top: 1px solid var(--te-menu-line);
}

.te-native-mega-all .elementor-button {
  width: 100%;
  padding: 0;
  justify-content: space-between;
  color: var(--te-menu-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.te-native-mega-all .elementor-button:hover,
.te-native-mega-all .elementor-button:focus-visible {
  color: var(--te-menu-gold);
  background: transparent;
}

.te-native-mega-links {
  min-width: 0;
  padding: 22px 26px 26px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  background: var(--te-menu-paper);
}

.te-native-mega-link {
  position: relative;
  width: 100% !important;
  min-height: 96px;
  padding: 17px 14px !important;
  display: grid !important;
  grid-template-columns: 31px minmax(0, 1fr) 18px;
  gap: 10px !important;
  align-items: start;
  border-bottom: 1px solid var(--te-menu-line);
  color: var(--te-menu-ink);
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.te-native-mega-link:nth-child(odd) {
  border-right: 1px solid var(--te-menu-line);
}

.te-native-mega-link:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.te-native-mega-link:hover,
.te-native-mega-link:focus-visible,
.te-native-mega-link.is-current {
  color: var(--te-menu-ink);
  background: #eee3d2;
  outline: none;
}

.te-native-mega-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--te-menu-gold);
}

.te-native-mega-number,
.te-native-mega-arrow {
  width: auto !important;
}

.te-native-mega-number .elementor-heading-title {
  margin-top: 2px;
  color: var(--te-menu-gold);
  font-family: Manrope, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.te-native-mega-copy {
  min-width: 0;
  display: block !important;
}

.te-native-mega-copy-title .elementor-heading-title {
  color: var(--te-menu-ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.te-native-mega-copy-text .elementor-widget-container {
  margin-top: 7px;
  color: var(--te-menu-copy);
  font-family: Manrope, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.38;
}

.te-native-mega-arrow .elementor-heading-title {
  color: var(--te-menu-gold);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.te-native-mega-link:hover .te-native-mega-arrow .elementor-heading-title,
.te-native-mega-link:focus-visible .te-native-mega-arrow .elementor-heading-title,
.te-native-mega-link.is-current .te-native-mega-arrow .elementor-heading-title {
  opacity: 1;
  transform: translateX(0);
}

.te-native-mega-preview {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden !important;
  background: #b9afa3;
}

.te-native-mega-preview-slide {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100%;
  min-height: 430px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.te-native-mega-preview-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.te-native-mega-preview-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.te-native-mega-preview-image {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100%;
}

.te-native-mega-preview-image .elementor-widget-container,
.te-native-mega-preview-image img {
  width: 100%;
  height: 100%;
}

.te-native-mega-preview-image img {
  display: block;
  object-fit: cover;
}

.te-native-mega-preview-caption {
  position: absolute !important;
  z-index: 2;
  left: 27px;
  right: 27px;
  bottom: 27px;
  width: auto !important;
  display: block !important;
  color: #fff;
}

.te-native-mega-preview-label .elementor-heading-title {
  margin-bottom: 8px;
  color: #f3c88e;
  font-family: Manrope, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.te-native-mega-preview-title .elementor-heading-title {
  color: #fff;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(23px, 2vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .te-native-mega-menu {
    grid-template-columns: 220px minmax(510px, 1.7fr) minmax(240px, 0.8fr);
  }

  .te-native-mega-links {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Editing aid: all eight otherwise-overlapping previews remain selectable and visible in Elementor. */
body.elementor-editor-active .te-native-mega-preview,
.elementor-edit-area-active .te-native-mega-preview {
  height: auto;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: transparent;
}

body.elementor-editor-active .te-native-mega-preview-slide,
.elementor-edit-area-active .te-native-mega-preview-slide {
  position: relative !important;
  inset: auto;
  flex: none;
  min-height: 430px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* This package intentionally contains no tablet or mobile mega menu. */
/* Tablet layout: 768px–1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .te-native-mega-menu {
    display: grid !important;
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.6fr);
    width: 100% !important;
    min-height: 0;
    max-height: calc(100dvh - 80px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .te-native-mega-intro {
    min-height: 390px;
    padding: 30px 24px !important;
  }

  .te-native-mega-heading .elementor-heading-title {
    font-size: 30px;
  }

  .te-native-mega-links {
    min-height: 390px;
    padding: 16px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-native-mega-link {
    min-height: 86px;
    padding: 14px 10px !important;
    grid-template-columns: 26px minmax(0, 1fr) 14px;
    gap: 7px !important;
  }

  .te-native-mega-copy-title .elementor-heading-title {
    font-size: 11px;
  }

  .te-native-mega-copy-text .elementor-widget-container {
    font-size: 9px;
  }

  /* Preview becomes a full-width row underneath */
  .te-native-mega-preview {
    grid-column: 1 / -1;
    width: 100% !important;
    min-height: 260px;
  }

  .te-native-mega-preview-slide {
    min-height: 260px;
  }

  .te-native-mega-preview-caption {
    left: 24px;
    right: 24px;
    bottom: 22px; 
  }

  .te-native-mega-preview-title .elementor-heading-title {
    font-size: 27px;
  }
}

/* Phones continue using the normal mobile menu */
@media (max-width: 767px) {
  .te-native-mega-menu {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .te-native-mega-menu *,
  .te-native-mega-menu *::before,
  .te-native-mega-menu *::after {
    transition: none !important;
  }
}



/*
 * TheGem mega-menu fix:
 * prevent the invisible closed Services panel from receiving hover events.
 */
nav.desktop-view
.menu-item-30369.megamenu-template-enable
> .megamenu-template {
  pointer-events: none !important;
}

/*
 * Restore interaction only when Services is genuinely hovered
 * or receives keyboard focus.
 */
nav.desktop-view
.menu-item-30369.megamenu-template-enable:hover
> .megamenu-template,
nav.desktop-view
.menu-item-30369.megamenu-template-enable:focus-within
> .megamenu-template {
  pointer-events: auto !important;
}

/* Keep the menu editable inside Elementor. */
body.elementor-editor-active
nav.desktop-view
.menu-item-30369.megamenu-template-enable
> .megamenu-template {
  pointer-events: auto !important;
}