/* Final launch polish. Loaded last on the public site. */

.mevoot-inline-link {
  margin-top: 0.9rem;
  margin-bottom: 1.4rem;
}

.mevoot-inline-link a {
  color: var(--wp--preset--color--action);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.mevoot-inline-link a::after {
  content: " ←";
}

.mevoot-footer a,
.mevoot-footer .wp-block-navigation-item__content {
  color: var(--wp--preset--color--paper) !important;
  text-decoration-color: color-mix(in srgb, var(--wp--preset--color--paper) 42%, transparent);
}

.mevoot-footer a:hover,
.mevoot-footer .wp-block-navigation-item__content:hover {
  text-decoration-color: var(--wp--preset--color--paper);
}

.mevoot-footer-legal {
  min-width: 10.5rem;
  color: var(--wp--preset--color--paper);
}

.mevoot-footer-heading {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--wp--preset--color--paper);
  font-size: var(--wp--preset--font-size--small);
}

.mevoot-footer-legal ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mevoot-footer-legal li {
  margin: 0;
}

.mevoot-footer-legal a {
  font-size: var(--wp--preset--font-size--small);
  text-decoration: none;
}

.mevoot-footer-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Keep physical header placement deterministic even when the document itself is RTL. */
.mevoot-header__inner {
  direction: ltr;
}

.mevoot-header__nav,
.mevoot-header__cta {
  direction: rtl;
}

@media (min-width: 48.0625rem) {
  .mevoot-header {
    padding-block: 0.7rem !important;
  }

  .mevoot-header__inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: clamp(0.55rem, 1.2vw, 1.15rem) !important;
  }

  .mevoot-header .wp-block-site-logo {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  .mevoot-header .wp-block-site-logo img {
    width: 112px !important;
    max-width: 112px !important;
    height: auto !important;
  }

  .mevoot-header__nav {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    align-self: center !important;
  }

  .mevoot-header__nav .wp-block-navigation__container {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    column-gap: clamp(0.35rem, 0.75vw, 0.75rem) !important;
    row-gap: 0 !important;
  }

  .mevoot-header__nav .wp-block-navigation-item__content {
    white-space: nowrap !important;
    padding-block: 0.42rem !important;
  }

  .mevoot-header__cta {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  .mevoot-header__cta .wp-block-button__link {
    min-height: 44px !important;
    padding: 0.64rem 1rem !important;
    white-space: nowrap !important;
    font-size: 0.9rem !important;
  }
}

@media (min-width: 60.0625rem) and (max-width: 68rem) {
  .mevoot-header .wp-block-site-logo img {
    width: 94px !important;
    max-width: 94px !important;
  }

  .mevoot-header__nav {
    font-size: 0.86rem !important;
  }

  .mevoot-header__nav .wp-block-navigation__container {
    column-gap: 0.4rem !important;
  }

  .mevoot-header__cta .wp-block-button__link {
    padding-inline: 0.85rem !important;
    font-size: 0.86rem !important;
  }
}

/* Tablet: keep the primary CTA but collapse ten navigation items into the WordPress overlay trigger. */
@media (min-width: 48.0625rem) and (max-width: 60rem) {
  .mevoot-header .wp-block-site-logo img {
    width: 100px !important;
    max-width: 100px !important;
  }

  .mevoot-header__nav {
    width: auto !important;
    justify-self: center !important;
    font-size: 1rem !important;
  }

  .mevoot-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }

  .mevoot-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .mevoot-header__nav .wp-block-navigation__responsive-container-open {
    margin: 0 !important;
  }

  .mevoot-header__cta .wp-block-button__link {
    padding-inline: 0.9rem !important;
    font-size: 0.86rem !important;
  }
}

@media (max-width: 48rem) {
  .mevoot-header__inner {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto !important;
  }

  .mevoot-header .wp-block-site-logo {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .mevoot-header__nav {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .mevoot-header__cta {
    display: none !important;
  }
}


/* RTL alignment for the lead form and footer */
.mevoot-lead-form {
  direction: rtl;
  text-align: right;
}

.mevoot-lead-form label,
.mevoot-lead-form input:not([type="hidden"]),
.mevoot-lead-form select,
.mevoot-lead-form textarea,
.mevoot-lead-form__privacy-note,
.mevoot-lead-form__status {
  text-align: right !important;
}

.mevoot-footer {
  direction: rtl;
  text-align: right;
}

.mevoot-footer > .wp-block-group.alignwide {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: clamp(2.5rem, 6vw, 5rem) !important;
}

.mevoot-footer > .wp-block-group.alignwide > .wp-block-group,
.mevoot-footer p,
.mevoot-footer .wp-block-navigation,
.mevoot-footer .wp-block-navigation__container,
.mevoot-footer .wp-block-navigation-item {
  text-align: right !important;
}

.mevoot-footer .wp-block-navigation,
.mevoot-footer .wp-block-navigation__container {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.mevoot-footer > p.has-text-align-center {
  text-align: right !important;
}