/* Etz Site Fixes — front-end CSS. Deactivate the plugin to remove. */

/* Allow pinch-zoom (theme sets maximum-scale=1 in markup; JS/output also strips it) */
/* Featured-in: white logos need a dark ground */
.cmsms_row:has(.featured-in),
.cmsms_row:has(.cmsms_clients_grid.featured-in) {
  background-color: #141b38 !important;
  background-image: none !important;
  color: #fff;
}
.cmsms_row:has(.featured-in) .cmsms_heading,
.cmsms_row:has(.featured-in) .cmsms_heading a {
  color: #fff !important;
}
.cmsms_row:has(.featured-in) .cmsms_heading_divider {
  border-color: rgba(255,255,255,0.45);
  background-color: rgba(255,255,255,0.45);
}
.featured-in,
.cmsms_clients_grid.featured-in {
  background-color: transparent;
  padding: 10px 8px 24px;
}
.featured-in .item,
.featured-in .cmsms_clients_item {
  background-color: transparent !important;
  filter: none;
}
.featured-in img {
  opacity: 1 !important;
  max-height: 42px;
  width: auto;
}

/* Fallback if :has() is unavailable: target the grid itself */
.cmsms_clients_grid.featured-in {
  background-color: #141b38;
  padding: 16px 12px;
}

/* YouTube embed: keep the 16:9 frame and stop mobile crop */
.cmsms_embed_wrap,
.etz-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  overflow: hidden;
}
.cmsms_embed_wrap iframe,
.etz-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

/* Mobile reviews: one full card, no clipped neighbors */
@media (max-width: 782px) {
  .ti-widget .ti-reviews-container-wrapper,
  .ti-widget .ti-inner,
  .ti-widget .ti-reviews-container {
    overflow: hidden;
  }
  .ti-widget .ti-review-item,
  .ti-widget .ti-widget-container .ti-review-item {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .ti-widget .ti-review-header,
  .ti-widget .ti-review-text,
  .ti-widget .ti-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* About David */
.etz-about {
  background: #fff;
  padding: 56px 20px 48px;
  color: #1a1a1a;
}
.etz-about__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}
.etz-about__photo {
  flex: 0 0 300px;
  max-width: 42%;
}
.etz-about__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.etz-about__copy h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #141b38;
  font-weight: 700;
  text-transform: none;
}
.etz-about__copy p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: #333;
}
.etz-about__copy p:last-child { margin-bottom: 0; }
@media (max-width: 782px) {
  .etz-about { padding: 40px 16px; }
  .etz-about__inner {
    flex-direction: column;
    gap: 24px;
  }
  .etz-about__photo { flex: none; max-width: 280px; margin: 0 auto; }
  .etz-about__copy h2 { font-size: 26px; text-align: center; }
}

/* Marketing plan / VIP Seller */
.etz-marketing {
  background: #141b38;
  color: #fff;
  padding: 56px 20px;
}
.etz-marketing__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}
.etz-marketing__copy { flex: 1 1 56%; }
.etz-marketing__copy h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
  text-transform: none;
}
.etz-marketing__copy .etz-kicker {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: #5ab0ff;
  margin-bottom: 8px;
  font-weight: 600;
}
.etz-marketing__copy p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: #e8eef7;
}
.etz-marketing__copy p:last-child { margin-bottom: 0; }
.etz-marketing__image {
  flex: 0 0 280px;
  max-width: 36%;
}
.etz-marketing__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
}
@media (max-width: 782px) {
  .etz-marketing { padding: 40px 16px; }
  .etz-marketing__inner { flex-direction: column; gap: 24px; }
  .etz-marketing__image { flex: none; max-width: 240px; margin: 0 auto; }
  .etz-marketing__copy h2 { font-size: 26px; text-align: center; }
  .etz-marketing__copy .etz-kicker,
  .etz-marketing__copy p { text-align: center; }
}

/* Footer privacy link */
.footer_copyright a.etz-privacy-link,
span.footer_copyright a {
  color: inherit;
  text-decoration: underline;
}

/* Mobile: the LayerSlider hook is cropped off the photo; show the same copy below it */
.etz-hero-hook { display: none; }
@media (max-width: 782px) {
  .etz-hero-hook {
    display: block;
    background: #141b38;
    color: #fff;
    padding: 20px 18px 22px;
    text-align: center;
  }
  .etz-hero-hook__inner { max-width: 520px; margin: 0 auto; }
  .etz-hero-hook__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.25;
  }
  .etz-hero-hook__body {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 6px;
    color: #e8eef7;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .etz-hero-hook__body:last-child { margin-bottom: 0; }
  /* Hide the cropped leftover sliver of LayerSlider text (banner below replaces it) */
  .ls-container .ls-text-layer,
  .ls-container .ls-wrapper.ls-in-out:has(.ls-text-layer) {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* Mobile reviews: stack three full cards instead of a clipped slider */
@media (max-width: 782px) {
  .ti-widget .ti-reviews-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
  }
  .ti-widget .ti-reviews-container-wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    overflow: visible !important;
  }
  .ti-widget .ti-review-item {
    display: none !important;
  }
  .ti-widget .ti-review-item:nth-child(-n+3) {
    display: block !important;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 12px 0 !important;
    left: auto !important;
  }
  .ti-widget .ti-controls {
    display: none !important;
  }
}
