/* Rodent Expertz - modern motion & polish layer (self-contained, no external deps)
   Only opacity/transform animations: no layout shift, PSI-safe. */

@media (prefers-reduced-motion: no-preference) {
  .rz-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--rz-delay, 0ms);
    will-change: opacity, transform;
  }
  .rz-reveal.rz-in {
    opacity: 1;
    transform: none;
  }

  /* card + button micro-interactions */
  .elementor-widget-button .elementor-button,
  .rz-btn-google {
    transition: transform .25s ease, box-shadow .25s ease !important;
  }
  .elementor-widget-button .elementor-button:hover,
  .rz-btn-google:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(40, 20, 5, .28) !important;
  }
  .elementor-column:has(.elementor-widget-image) .elementor-widget-image img {
    transition: transform .5s ease;
  }
  .elementor-widget-image img:hover {
    transform: scale(1.025);
  }
}

/* injected blog post H1 */
.rz-post-title {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  color: var(--e-global-color-primary, #472d1e);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 .8em;
  font-weight: 700;
}

/* ---------- static Google reviews section ---------- */
.rz-reviews {
  background: #472d1e;
  padding: 64px 6vw 72px;
  text-align: center;
  overflow: hidden;
}
.rz-reviews-heading {
  color: #ffcf3f;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 800;
}
.rz-reviews-sub {
  color: #f2e6d8;
  opacity: .85;
  margin-bottom: 36px;
  font-size: 1rem;
}
.rz-reviews-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 22px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.rz-reviews-track::-webkit-scrollbar { display: none; }
.rz-review-card {
  flex: 0 0 320px;
  max-width: 86vw;
  scroll-snap-align: center;
  background: #fffdf7;
  border-radius: 18px;
  padding: 26px 24px 20px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.rz-review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.rz-stars {
  color: #f5a623;
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}
.rz-review-text {
  color: #3c2c20;
  font-size: .95rem;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rz-review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee2cf;
  padding-top: 12px;
}
.rz-review-name {
  font-weight: 700;
  color: #472d1e;
  font-size: .92rem;
}
.rz-review-src {
  font-size: .75rem;
  color: #8a7a68;
}
.rz-reviews-cta { margin-top: 26px; }
.rz-btn-google {
  display: inline-block;
  background: #ffcf3f;
  color: #472d1e;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* CYT-668: keep the article hero background predictable at narrow widths and
   prevent the same image from tiling at wider desktop widths. */
.elementor-4788 .elementor-element.elementor-element-f74d011,
.elementor-4788 .elementor-element.elementor-element-f74d011 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* ---------- hero background video ---------- */
.elementor-element-14707a8 { position: relative; overflow: hidden; }
.elementor-element-14707a8 > .e-con-inner { position: relative; z-index: 1; }
.rz-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.rz-hero-video.is-playing { opacity: 1; }

/* hero video is desktop-only: on phones the cover-crop magnifies the mouse behind the text */
@media (max-width: 880px) {
  .rz-hero-video { display: none !important; }
}
/* Keep content visible while the scroll-reveal layer is disabled. */
@media (prefers-reduced-motion: no-preference) {
  .rz-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Content-first safety: reveal motion must never hide site content. */
.rz-reveal,
.rz-reveal.rz-in {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* CYT-209: quote-section alignment and accessible form helpers. */
.rz-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rz-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#contact-footer,
#contact-footer .elementor-heading-title,
#contact-footer ~ .elementor-widget-text-editor,
#contact-footer ~ .elementor-widget-text-editor p {
  text-align: left !important;
}

@media (max-width: 767px) {
  #contact-footer,
  #contact-footer ~ .elementor-widget-text-editor {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
  form.metform-form-content .elementor-column > .elementor-widget-wrap {
    padding-right: 4px !important;
    padding-left: 0 !important;
  }
  form.metform-form-content .elementor-column > .elementor-widget-wrap > .elementor-widget {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}
