/*
 * Small fixes layered on top of main.min.css (the theme ships compiled CSS only, no SCSS source).
 * Theme palette: #23a9e1 blue, #0d3a4d navy, #2a4a9d link navy, #2c2c2c text.
 */

/* Phones: off-screen slider slides (Testimonials) and third-party iframes (Privacy)
   must not widen the page and cause sideways scrolling. */
.l-wrapper {
  overflow-x: clip;
}

/* Long page titles wrap instead of running off a phone screen; the Contact title
   ("Contact – support@optixeq.com", page 14) holds an unbreakable email, so it also steps down a size. */
.b-bannerTop__title {
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .page-id-14 .b-bannerTop__title {
    font-size: clamp(24px, 7.2vw, 36px);
  }
}

/* Homepage "Social Media": links out to X and YouTube (embedded X timelines no longer load). */
.b-socialMedia__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.b-socialMedia__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  font: 900 14px Lato, sans-serif;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  transition: background-color .3s cubic-bezier(.16, 1, .3, 1), color .3s cubic-bezier(.16, 1, .3, 1);
}
.b-socialMedia__link:hover,
.b-socialMedia__link:focus-visible {
  background: #fff;
  color: #0d3a4d;
}
.b-socialMedia__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* About Us and other old page content: text hand-coloured pure blue (#0000ff) gets the theme's link navy. */
.l-content span[style*="#0000ff"],
.l-content span[style*="#0000FF"] {
  color: #2a4a9d !important;
}

/* Log In page (User Registration plugin): theme blue instead of the plugin's indigo,
   and a readable "Sign Up" (it was indigo text on a blue fill). */
.user-registration .ur-submit-button.user-registration-Button {
  background: #23a9e1 !important;
  border-color: #23a9e1 !important;
  font-weight: 900;
}
.user-registration .ur-submit-button.user-registration-Button:hover {
  background: #50bbe7 !important;
  border-color: #50bbe7 !important;
}
.user-registration .user-registration-register a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px !important;
  background: transparent !important;
  border: 1px solid #23a9e1;
  color: #0d3a4d !important;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .3s cubic-bezier(.16, 1, .3, 1), color .3s cubic-bezier(.16, 1, .3, 1);
}
.user-registration .user-registration-register a:hover,
.user-registration .user-registration-register a:focus-visible {
  background: #23a9e1 !important;
  color: #fff !important;
}

/* My Account: the "Open Optix" button above the account menu (signed-in only). */
.b-accountAppLink {
  margin: 0 0 24px;
}
