/*
 * Site-wide styles and runtime helpers. Component/library styles live in vendor.css.
 */

html {
  scroll-behavior: smooth;
}

/* Responsive images */
img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}
img.wp-smiley,
img.emoji {
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

/* Reading progress bar colour */
#eael-reading-progress-7 .eael-reading-progress .eael-reading-progress-fill {
  background-color: #2e97b8;
}

/* ===== Custom styles ===== */
/* START Title animation */
.titlebell {
  background: -moz-linear-gradient(left, #4d4d4d, 0.4, #4d4d4d, 0.5, white, 0.6, #4d4d4d, #4d4d4d);
  background: -webkit-gradient(linear, left top, right top, color-stop(0, #4d4d4d), color-stop(0.35, #4d4d4d), color-stop(0.5, white), color-stop(0.65, #4d4d4d), color-stop(1, #4d4d4d));
  -moz-background-clip: text;
  -webkit-background-clip: text;
  -moz-text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  animation: request 5s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
}
@keyframes request {
  0% {
    background-position: -300px 0;
  }
  10% {
    background-position: -300px 0;
  }
  50% {
    background-position: 300px 0;
  }
  100% {
    background-position: 300px 0;
  }
}

#logo {
  animation: glitch-animation 4s infinite;
}

@keyframes glitch-animation {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1.5px, 1.5px);
  }
  40% {
    transform: translate(1.5px, -1px);
  }
  60% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -1.5px);
  }
  100% {
    transform: translate(0);
  }
}
/* END Title animation */

/* START highlight text */
.cool-split h2 {
  width: 85%;
  color: rgba(255, 255, 255, 0.125);
  transition: color 0.3s;
}
/* END highlight text */

/* START Button */
:root {
  --gradient-shadow: linear-gradient(45deg, #3a3a3b, #0d0d0f, #3a3a3b, #0d0d0f, #3a3a3b, #0d0d0f, #3a3a3b, #0d0d0f, #3a3a3b, #0d0d0f);
}

.elementor-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 10px;
}
.elementor-button:before,
.elementor-button:after {
  content: "";
  position: absolute;
  background: var(--gradient-shadow);
  background-size: 400%;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: -1;
  animation: animate 20s linear infinite;
  border-radius: 10px;
}

.elementor-button:after {
  filter: blur(20px);
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}
/* END Button */

/* START Bubble */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bubble-circle {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle at 55% 40%, #0d0d0f 35%, #444 100%);
  animation: morph 3s infinite ease-in-out;
  position: relative;
}

@keyframes morph {
  0% {
    border-radius: 350px 400px 375px 390px;
  }
  25% {
    border-radius: 370px 360px 410px 390px;
  }
  50% {
    border-radius: 400px 375px 360px 410px;
  }
  75% {
    border-radius: 360px 390px 370px 380px;
  }
  100% {
    border-radius: 350px 400px 375px 390px;
  }
}
/* END Bubble */

/* ===== Our Clients page: auto changing heading text ===== */
.mdw-changing-texts {
  position: relative;
  margin-left: 0.2em;
}
.mdw-changing-texts span {
  position: absolute;
  opacity: 0;
  transform: scaleY(0) skew(-30deg);
  transition: all 0.5s ease-in-out;
}
.mdw-changing-texts span.showing {
  opacity: 1;
  transform: scaleY(1);
}
@media (max-width: 767px) {
  .mdw-changing-texts {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    height: 1em;
  }
  .mdw-changing-texts + br {
    display: none;
  }
}

/* ===== Site overrides ===== */
/* Header: a slim bar pinned to the top,
   logo and menu icon vertically centred, soft blur behind. */
.elementor-1686 .elementor-element.elementor-element-cddc312 {
  top: 0;
  --padding-top: 0px;
  --padding-bottom: 0px;
  --min-height: 110px;
  --align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.elementor-1686 .elementor-element.elementor-element-cddc312 > .e-con-inner {
  align-items: center;
}
/* Logo: shown large, cropped to the artwork
   (the image file carries transparent margins) so the bar stays slim. */
.elementor-1686 .elementor-element.elementor-element-cc69e98 img {
  width: 176px;
  max-width: none;
  height: 98px;
  object-fit: cover;
  object-position: 50% 45%;
  display: block;
}
@media (max-width: 767px) {
  .elementor-1686 .elementor-element.elementor-element-cddc312 {
    --min-height: 84px;
  }
  .elementor-1686 .elementor-element.elementor-element-cc69e98 img {
    width: 132px;
    height: 74px;
  }
}

/* ===== Contact forms: sending state + result message ===== */
.pulse-form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.elementor-form .elementor-button.is-sending {
  cursor: progress;
  opacity: 0.85;
}
.elementor-form .elementor-button.is-sending .elementor-button-text {
  font-size: 0;
}
.elementor-form .elementor-button.is-sending .elementor-button-text::after {
  content: "Sending…";
  font-size: var(--pulse-sending-size, 18px);
}
.elementor-form .elementor-button.is-sending .elementor-button-content-wrapper::before {
  content: "";
  width: 1em;
  height: 1em;
  margin-inline-end: 0.6em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pulse-form-spin 0.7s linear infinite;
  align-self: center;
  flex-shrink: 0;
}
.elementor-element-804b9c6 {
  --pulse-sending-size: 25px;
}
@keyframes pulse-form-spin {
  to {
    transform: rotate(360deg);
  }
}
.pulse-form-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 14px 14px 16px;
  border-radius: 10px;
  border: 1px solid;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-align: start;
  animation: pulse-form-in 0.35s ease-out;
}
.pulse-form-message--success {
  background: rgba(46, 151, 184, 0.1);
  border-color: rgba(46, 151, 184, 0.45);
  color: #1d6f88;
}
.pulse-form-message--danger {
  background: rgba(217, 83, 79, 0.08);
  border-color: rgba(217, 83, 79, 0.45);
  color: #b3322e;
}
.pulse-form-message__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
}
.pulse-form-message--success .pulse-form-message__icon {
  background: #2e97b8;
}
.pulse-form-message--danger .pulse-form-message__icon {
  background: #d9534f;
}
.pulse-form-message__text {
  flex: 1;
  padding-top: 3px;
}
.pulse-form-message .pulse-form-message__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.pulse-form-message .pulse-form-message__close:hover,
.pulse-form-message .pulse-form-message__close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  opacity: 1;
}
@keyframes pulse-form-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-form-message,
  .elementor-form .elementor-button.is-sending .elementor-button-content-wrapper::before {
    animation-duration: 0s;
  }
}
