.elementor-8 .elementor-element.elementor-element-5eea867{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-8 .elementor-element.elementor-element-b04d0b5{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}.elementor-8 .elementor-element.elementor-element-e191c2c{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-b04d0b5 *//* HERO WRAPPER */
.ei-hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

/* VIDEO */
.ei-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ei-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* OVERLAY */
.ei-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 28, 24, 0.35),
    rgba(18, 28, 24, 0.75)
  );
  z-index: 2;
}

/* CONTENT GRID */
.ei-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 64px;
  color: #fff;
}

/* PORTRAIT */
.ei-portrait {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ei-portrait img {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin-bottom: -30px;
  border-radius: 16px;
  box-shadow: 0 50px 120px rgba(0,0,0,0.55);
}

/* TEXT */
.ei-text {
  text-align: left;
  padding-bottom: 40px;
}

.ei-text h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* BUTTON — CENTERED UNDER TITLE */
.ei-btn {
  display: inline-block;
  margin: 0 auto 28px;
  padding: 14px 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f1e18;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ei-btn:hover {
  background: #cfded6;
  transform: translateY(-2px);
}

/* BODY COPY */
.ei-text p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
}

/* MOBILE */
@media (max-width: 900px) {
  .ei-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 40px;
  }

  .ei-text {
    padding-bottom: 0;
  }

  .ei-text h1 {
    font-size: 40px;
  }

  .ei-portrait img {
    max-width: 320px;
    margin-bottom: 0;
  }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-b9085d6 *//* =========================
   SERVICES SECTION
========================= */

.ei-services {
  padding: 100px 6%;
  background: linear-gradient(180deg, #4f6f61 0%, #f5f6f4 100%);
  font-family: 'Montserrat', sans-serif;
}

.ei-services h2 {
  text-align: center;
  color: #ffffff;
  font-size: 32px;
  letter-spacing: 0.25em;
  margin-bottom: 70px;
  text-transform: uppercase;
}

/* =========================
   GRID
========================= */

.ei-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 1024px) {
  .ei-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CARD
========================= */

.ei-card {
  height: 440px;
  perspective: 1600px;
}

.ei-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s ease;
}

.ei-card:hover .ei-card-inner {
  transform: rotateY(180deg);
}

/* =========================
   CARD SIDES
========================= */

.ei-card-front,
.ei-card-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
}

/* =========================
   VIDEO FIX (CRITICAL)
========================= */

.ei-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ei-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =========================
   OVERLAY + TITLE
========================= */

.ei-front-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15)
  );
  z-index: 2;
}

.ei-front-title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* =========================
   BACK SIDE
========================= */

.ei-card-back {
  background: linear-gradient(145deg, #2f3f38, #3e564c);
  transform: rotateY(180deg);
  padding: 36px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ei-card-back h3 {
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ei-card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ei-card-back li {
  margin-bottom: 14px;
}

.ei-card-back a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.ei-card-back a:hover {
  opacity: 0.7;
}

/* =========================
   LEARN MORE
========================= */

.ei-learn-more {
  margin-top: 26px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.6);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
}

.ei-learn-more:hover {
  background: #ffffff;
  color: #2f3f38;
}
/* Prevent mirrored/reversed text during 3D flips */
.elementor-widget-flip-box .elementor-flip-box__front,
.elementor-widget-flip-box .elementor-flip-box__back{
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
<style>
/* ================================
   EI SERVICES — MOBILE-OPTIMIZED FLIP CARDS
   - tap to flip / tap again to unflip
   - prevents mirrored/reversed text
   - keeps Vimeo background playing
================================ */

/* Layout basics (keep if you already have them elsewhere) */
.ei-services { font-family: 'Montserrat', sans-serif; }
.ei-card { perspective: 1200px; }
.ei-card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .5s ease;
}

/* front/back panels */
.ei-card-front,
.ei-card-back{
  position:absolute;
  inset:0;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
  transform: translateZ(0); /* helps iOS rendering */
}

/* BACK is rotated, not mirrored */
.ei-card-back{
  transform: rotateY(180deg) translateZ(0);
}

/* FLIPPED state */
.ei-card.is-flipped .ei-card-inner{
  transform: rotateY(180deg);
}

/* Video wrapper: make iframe cover */
.ei-video-wrap{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.ei-video-wrap iframe{
  position:absolute;
  top:50%;
  left:50%;
  width: max(100%, calc(100vh * 16/9));
  height: max(100%, calc(100vw * 9/16));
  transform: translate(-50%,-50%);
  border:0;
  pointer-events:none; /* important: card tap still works */
}

/* Your overlay/title can stay above video */
.ei-front-overlay{ position:absolute; inset:0; z-index:2; }
.ei-front-title{ position:absolute; left:18px; bottom:18px; z-index:3; }

/* Make back content clickable */
.ei-card-back{ z-index:4; }

/* Desktop hover flip (optional) */
@media (min-width: 1025px){
  .ei-card:hover .ei-card-inner{ transform: rotateY(180deg); }
  .ei-card{ cursor: pointer; }
}

/* Mobile/tablet: NO hover flip (prevents “stuck flipped”) */
@media (max-width: 1024px){
  .ei-card:hover .ei-card-inner{ transform: none; }
  .ei-card{ cursor: pointer; -webkit-tap-highlight-color: transparent; }
}
</style>

<script>
document.addEventListener("DOMContentLoaded", () => {
  const WRAP = document.querySelector(".ei-services");
  if (!WRAP) return;

  const cards = Array.from(WRAP.querySelectorAll(".ei-card"));
  const SERVICES_URL = "https://ericingulsrudmd.com/services/";

  // Only apply tap behavior on mobile/tablet widths
  const isMobile = window.matchMedia("(max-width: 1024px)").matches;

  if (isMobile) {
    cards.forEach(card => {
      if (card.dataset.bound === "1") return;
      card.dataset.bound = "1";

      card.addEventListener("click", (e) => {
        // Let real links/buttons work normally
        if (e.target.closest("a, button")) return;

        // Tap toggles flip
        card.classList.toggle("is-flipped");
      });
    });

    // Tap outside closes any flipped card
    document.addEventListener("click", (e) => {
      if (e.target.closest(".ei-services .ei-card")) return;
      cards.forEach(c => c.classList.remove("is-flipped"));
    }, { passive: true });
  }

  // ROUTING: Clicking FRONT should go to /services/
  // (but we keep mobile flip tap working; routing happens only on desktop, or if you long-press)
  // If you want routing on mobile too, see the toggle below.
  const ROUTE_ON_MOBILE_FRONT_TAP = false;

  cards.forEach(card => {
    const front = card.querySelector(".ei-card-front");
    if (!front) return;

    front.addEventListener("click", (e) => {
      if (e.target.closest("a, button")) return;

      if (isMobile && !ROUTE_ON_MOBILE_FRONT_TAP) {
        // mobile: front tap is used to flip, so do nothing here
        return;
      }
      window.location.href = SERVICES_URL;
    });
  });

  // ROUTING: Clicking BACK background (not links) goes to /services/
  cards.forEach(card => {
    const back = card.querySelector(".ei-card-back");
    if (!back) return;

    back.addEventListener("click", (e) => {
      if (e.target.closest("a, button")) return;
      window.location.href = SERVICES_URL;
    });
  });
});
</script>/* End custom CSS */
/* Start custom CSS for shortcode, class: .elementor-element-2c10807 *//* ===== REQUEST APPOINTMENT (FLUENT FORMS MATCH HERO) ===== */
.ei-form-section{
  padding: 90px 0 110px;
  background: linear-gradient(180deg, rgba(14,24,21,0.88) 0%, rgba(14,24,21,0.98) 100%);
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

.ei-form-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.ei-form-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 44px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}

/* Header */
.ei-form-title{
  margin:0;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.ei-form-sub{
  margin: 10px 0 18px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
}

/* Fluent spacing */
.ei-form-card .fluentform{
  margin-top: 10px;
}

/* Desktop: 2-column grid like your original */
@media (min-width: 901px){
  .ei-form-card .fluentform form.ff-form{
    display:grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .ei-form-card .fluentform .ff-el-group{
    margin: 0 !important;
  }

  /* Make textarea + submit row full width */
  .ei-form-card .fluentform .ff-el-group:has(textarea),
  .ei-form-card .fluentform .ff_submit_btn_wrapper{
    grid-column: 1 / -1 !important;
  }
}

/* Mobile */
@media (max-width: 900px){
  .ei-form-wrap{ padding: 0 22px; }
  .ei-form-card{ padding: 32px 22px; }

  .ei-form-card .fluentform form.ff-form{
    display:block !important;
  }

  .ei-form-card .fluentform .ff-el-group{
    margin-bottom: 16px !important;
  }
}

/* Labels */
.ei-form-card .fluentform .ff-el-input--label label{
  font-size: 11px !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.78) !important;
  margin-bottom: 6px !important;
}

/* Inputs */
.ei-form-card .fluentform :is(input, select, textarea){
  height: 46px;
  background: rgba(0,0,0,0.32) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 14px !important;
  color: #fff !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  outline: none !important;
  box-shadow: none !important;
}

.ei-form-card .fluentform textarea{
  height: 120px !important;
  min-height: 120px !important;
  padding-top: 12px !important;
  resize: vertical !important;
}

.ei-form-card .fluentform :is(input, textarea)::placeholder{
  color: rgba(255,255,255,0.45) !important;
}

/* Submit row */
.ei-form-card .fluentform .ff_submit_btn_wrapper{
  display:flex !important;
  gap: 14px !important;
  align-items:center !important;
  flex-wrap: wrap !important;
  margin-top: 6px !important;
}

/* Submit button */
.ei-form-card .fluentform .ff-btn-submit{
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 34px !important;
  background: #ffffff !important;
  color: #0e1815 !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: transform 160ms ease, opacity 160ms ease !important;
}

.ei-form-card .fluentform .ff-btn-submit:hover{
  transform: translateY(-1px) !important;
  opacity: 0.95 !important;
}

/* Success message styling */
.ei-form-card .fluentform .ff-message-success{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.95) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}/* End custom CSS */
/* Start custom CSS for container, class: .elementor-element-e191c2c *//* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
}

/* =========================
   SERVICES SECTION
========================= */

.ei-services {
  padding: 100px 6%;
  background: linear-gradient(180deg, #4f6f61 0%, #f5f6f4 100%);
}

.ei-services h2 {
  text-align: center;
  color: #fff;
  font-size: 32px;
  letter-spacing: 0.25em;
  margin-bottom: 70px;
  text-transform: uppercase;
}

/* =========================
   CARD GRID
========================= */

.ei-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 1024px) {
  .ei-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CARD BASE
========================= */

.ei-card {
  position: relative;
  height: 440px;
  perspective: 1400px;
}

/* =========================
   CARD INNER (FLIP)
========================= */

.ei-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ei-card:hover .ei-card-inner {
  transform: rotateY(180deg);
}

/* =========================
   CARD SIDES
========================= */

.ei-card-front,
.ei-card-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
}

/* =========================
   CARD FRONT (VIDEO)
========================= */

.ei-card-front {
  background: #000;
}

/* FORCE VIDEO TO FILL */
.ei-card-front iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

/* DARK OVERLAY */
.ei-front-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15)
  );
  z-index: 2;
}

/* FRONT TITLE */
.ei-front-title {
  position: absolute;
  bottom: 26px;
  left: 26px;
  z-index: 3;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* =========================
   CARD BACK
========================= */

.ei-card-back {
  background: linear-gradient(145deg, #2f3f38, #3e564c);
  transform: rotateY(180deg);
  padding: 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* BACK TITLE */
.ei-card-back h3 {
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* SERVICE LINKS */
.ei-card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ei-card-back li {
  margin-bottom: 14px;
}

.ei-card-back a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.ei-card-back a:hover {
  opacity: 0.7;
}

/* LEARN MORE BUTTON */
.ei-learn-more {
  margin-top: 26px;
  align-self: flex-start;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ei-learn-more:hover {
  background: #fff;
  color: #2f3f38;
}/* End custom CSS */
/* Start custom CSS */html{ scroll-behavior: smooth; }/* End custom CSS */