/* Kadence GKM — custom CSS file
   --------------------------------
   Edit this file freely in BBEdit.
   It is automatically cache-busted on save.
*/

/* Example: adjust container max-widths
.kb-row-layout-wrap { max-width: 1200px; margin-inline: auto; }
*/
.site-main-header-wrap {
    box-shadow: #00000017 0px 0px 10px;
}
.entry-content-wrap {
padding-bottom: 0;
}

.kt-inside-inner-col p, .kt-inside-inner-col h2, .kt-inside-inner-col h1 {
margin-bottom: 0.5em;
}
.entry-content-wrap {
    padding-top: 0;
}

.single-content h4.wp-block-heading {
margin-top: 0.5em;
}

.single-content p {
margin-bottom: 0.5em;
}

.thin-text {
font-weight: 100 !important;
}
/* 1) Let Kadence SVG figures size to content (remove 100% flex-basis) */
figure.wp-block-kadence-image.image-is-svg {
  flex: 0 0 auto !important;
  height: auto !important;
}

/* 2) Make the inline SVG itself scale to the figure width */
figure.wp-block-kadence-image.image-is-svg svg.replaced-svg, .wp-block-kadence-image svg {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.unmounted {
position: absolute !important;
}

.case-description {
border-left: 3px solid var(--global-palette2);
}

.single-case-study div#primary {
    margin-top: 0;
}

.duo-image-stack:has(:nth-child(2)),
.after-image-stack:has(:nth-child(2)),
.before-image-stack:has(:nth-child(2)) {
  display: block !important;
  column-count: 2;
}


/* =========================
   SERVICE LIST  (Kadence colors)
   ========================= */
ul.service-list{
  list-style:none;
  margin:0;
  padding:0;
}
.service-list li {
    position: relative;
    padding-left: 2.75em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Blue circular badge with the heart SVG inside */
.service-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.4em;
  width:30px;
  height:30px;
  border-radius:50%;
  background:
    var(--global-palette4, #1e73be)
    url("http://lifetime-kadance.local/wp-content/uploads/2025/09/lifetime-hearts.svg")
    center / 62% no-repeat;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.service-list li>strong{
  display:block;
  font-family:var(--heading-font);
  font-size:1.1rem;
  font-weight:600;
  margin-bottom:.25rem;
}
.service-list .meta{
  display:block;
  margin-top:.5rem;
  font-size:.9rem;
  font-weight:400;
  font-family:inherit;
}
.service-list .meta strong{
  display:inline;
  font-weight:600;
  font-size:inherit;
  font-family:inherit;
}

/* =========================
   TECH LIST  (Kadence colors)
   ========================= */
.tech-list{
  list-style:none;
  margin:0;
  padding:0;
}
.tech-list li{
  position:relative;
  padding-left:46px;
  margin-bottom:1.25rem;
  line-height:1.5;
}

/* Smaller white disc with the same heart SVG (no tint) */
.tech-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:-.075em;
  width:28px;
  height:28px;
  border-radius:50%;
  background:
    #fff
    url("/wp-content/uploads/2025/10/cropped-dss-favicon.png")
    center / 70% no-repeat;
  border:1px solid var(--border, #ececec);
}

.two-columns { columns: 2; gap: 1em; }

/* ============ Mobile tweaks ============ */
@media (max-width:768px){
  .service-list li{ padding-left:55px; margin-bottom:1rem; }
  .service-list li::before{ width:40px; height:40px; top:.5em; background-size:68%; }

  .tech-list li{ padding-left:40px; }
  .tech-list li::before{ width:22px; height:22px; background-size:70%; }

  .two-columns { columns: 1; }
}

/* ===========================================
   Animation System – Variables & Keyframes
   =========================================== */
:root{
  --ani-in-duration: 1s;
  --ani-out-duration: .5s;
  --ani-loop-duration: 20s;

  --ani-distance: 30px;
  --ani-loop-distance: 10px;
  --ani-zoom-from: 120%;
  --ani-zoom-from-scale: 1.2;

  --ani-delay: 0s;
  --ani-stagger-step: .3s;

  --ani-hover-flip-duration: .6s;
  --ani-hover-flip-scale: 0;
  --underline-height: 2px;
  --underline-gap:0.4em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ani, [class*="ani-"]{
    animation: none !important;
    transition: none !important;
  }
}

/* =====================
   Keyframes
   ===================== */
@keyframes aniInUp{
  from{ opacity:0; transform:translateY(var(--ani-distance)); }
  to  { opacity:1; transform:translateY(0); }
}
@keyframes aniZoomElement{
  from{ transform:scale(var(--ani-zoom-from-scale)); }
  to  { transform:scale(1); }
}
@keyframes aniBgZoom{
  from{ background-size:var(--ani-zoom-from) auto; }
  to  { background-size:100% auto; }
}
/* Vertical float */
@keyframes aniLoopVert{
  0%,100%{ transform:translateY(0); }
  50%    { transform:translateY(calc(var(--ani-loop-distance) * -1)); }
}
/* Horizontal float */
@keyframes aniLoopHoriz{
  0%,100%{ transform:translateX(0); }
  50%    { transform:translateX(var(--ani-loop-distance)); }
}
/* Random drift */
@keyframes aniLoopRandom{
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--ani-loop-distance), calc(var(--ani-loop-distance) * -1)); }
  50%  { transform: translate(calc(var(--ani-loop-distance) * -1), var(--ani-loop-distance)); }
  75%  { transform: translate(var(--ani-loop-distance), var(--ani-loop-distance)); }
  100% { transform: translate(0, 0); }
}
@keyframes aniHoverFlip {
  0%   { transform: scaleX(1); }
  50%  { transform: scaleX(var(--ani-hover-flip-scale)); }
  100% { transform: scaleX(1); }
}

/* =====================
   Base helpers
   ===================== */
.ani{
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-delay: var(--ani-delay);
  will-change: transform, opacity, background-size;
}
.is-inview{ animation-play-state: running; }

/* =====================
   Ready-made classes
   ===================== */
   
.ani-in-up{
  animation-name: aniInUp;
  animation-duration: var(--ani-in-duration);
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-delay: var(--ani-delay);
  opacity: 0;
  transform: translateY(var(--ani-distance));
}
.ani-in-zoom{
  animation-name: aniZoomElement;
  animation-duration: var(--ani-in-duration);
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-delay: var(--ani-delay);
  transform-origin: center center;
}
.ani-bg-zoom{
  animation-name: aniBgZoom;
  animation-duration: 2s, var(--ani-in-duration);
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-delay: var(--ani-delay);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

/* New loop classes */
.ani-loop-vert{
  animation-name: aniLoopVert;
  animation-duration: var(--ani-loop-duration);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  animation-delay: var(--ani-delay);
}
.ani-loop-horiz{
  animation-name: aniLoopHoriz;
  animation-duration: var(--ani-loop-duration);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  animation-delay: var(--ani-delay);
}
.ani-loop-random{
  animation-name: aniLoopRandom;
  animation-duration: var(--ani-loop-duration);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  animation-delay: var(--ani-delay);
}

.is-inview.ani-in-up,
.is-inview.ani-in-zoom,
.is-inview.ani-bg-zoom,
.is-inview.ani-loop-vert,
.is-inview.ani-loop-horiz,
.is-inview.ani-loop-random{
  animation-play-state: running;
}

.ani-hover-flip svg,
.ani-hover-flip img {
  display: inline-block;
  transform-origin: center;
  transition: transform var(--ani-hover-flip-duration) ease-in-out;
}
.ani-hover-flip:hover svg,
.ani-hover-flip:hover img {
  animation: aniHoverFlip var(--ani-hover-flip-duration) ease-in-out forwards;
}

.ani-immediate{ animation-play-state: running !important; opacity: initial; transform: none; }

/* =========================
   Animated Underline (Kadence)
   ========================= */
   
.ani-underline {
  position: relative;
  display: inline-block;
    margin-bottom: 0.4em; /* adds extra space under the underline */

}

.ani-underline::after {
  content: "";
  display: block;
  width: 0;
  height: var(--underline-height, 3px);
  background: var(--underline-color, var(--global-palette2, currentColor));
  margin-top: var(--underline-gap, 6px);
  transition: width var(--underline-duration, 1s) ease-out;
  will-change: width;
}

.ani-underline.u-underline-ready::after {
  width: var(--underline-target, 50%);
}

@media (prefers-reduced-motion: reduce) {
  .ani-underline::after {
    transition: none;
  }
}

/* Center the underline only when the text is centered */
.ani-underline.has-text-align-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* (Optional) Right-align the underline when text is right aligned */
.ani-underline.has-text-align-right::after {
  margin-left: auto;
  margin-right: 0;
}
/* Centered headline underline fix */
.has-text-align-center.ani-underline {
  display: inline-block;      /* shrink-wrap around the text */
  width: fit-content;         /* only as wide as the text */
  margin: 0.4em auto;         /* keep your bottom gap and center horizontally */
}


/* =====================
   Stagger utilities
   ===================== */
.ani-stagger-0 { --ani-delay: calc(var(--ani-stagger-step) * 0); }
.ani-stagger-1 { --ani-delay: calc(var(--ani-stagger-step) * 1); }
.ani-stagger-2 { --ani-delay: calc(var(--ani-stagger-step) * 2); }
.ani-stagger-3 { --ani-delay: calc(var(--ani-stagger-step) * 3); }
.ani-stagger-4 { --ani-delay: calc(var(--ani-stagger-step) * 4); }
.ani-stagger-5 { --ani-delay: calc(var(--ani-stagger-step) * 5); }
.ani-stagger-6 { --ani-delay: calc(var(--ani-stagger-step) * 6); }
.ani-stagger-7 { --ani-delay: calc(var(--ani-stagger-step) * 7); }
.ani-stagger-8 { --ani-delay: calc(var(--ani-stagger-step) * 8); }
.ani-stagger-9 { --ani-delay: calc(var(--ani-stagger-step) * 9); }
.ani-stagger-10{ --ani-delay: calc(var(--ani-stagger-step) * 10); }

/* Auto-stagger for Kadence columns (trimmed for brevity) */
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1)  { --ani-delay: calc(var(--ani-stagger-step) * 0); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(2)  { --ani-delay: calc(var(--ani-stagger-step) * 1); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(3)  { --ani-delay: calc(var(--ani-stagger-step) * 2); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(4)  { --ani-delay: calc(var(--ani-stagger-step) * 3); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(5)  { --ani-delay: calc(var(--ani-stagger-step) * 4); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(6)  { --ani-delay: calc(var(--ani-stagger-step) * 5); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(7)  { --ani-delay: calc(var(--ani-stagger-step) * 6); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(8)  { --ani-delay: calc(var(--ani-stagger-step) * 7); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(9)  { --ani-delay: calc(var(--ani-stagger-step) * 8); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(10) { --ani-delay: calc(var(--ani-stagger-step) * 9); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(11) { --ani-delay: calc(var(--ani-stagger-step) * 10); }
.ani-stagger-auto > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(12) { --ani-delay: calc(var(--ani-stagger-step) * 11); }

/* …continue as needed… */
