/* =========================================================
   Kadence GKM — custom CSS (consolidated)
   ---------------------------------------------------------
   • Base & layout
   • Components (buttons, lists, hero, FAQ, dividers, etc.)
   • Media helpers
   • Decorative accents (marble, borders, lines)
   • Utilities
   • Animation system (vars, keyframes, helpers)
   • Responsive (<=768px)
   • Reduced motion
   ========================================================= */



:root {
  /* Brand & palette */
  --surface: var(--global-palette9);
  --surface-light: var(--global-palette7);
  --brand-accent: var(--global-palette1);
  --brand-accent-dark: var(--global-palette1); /* same as accent */
  --brand-accent-light: var(--global-palette2);
  --global-palette1: #4E939B;         /* colour used for lines/underline */
  --global-palette4: #225783;         /* blue used in service-list badges */
  --border: E0F6F0;


	
  /* Typography */
  --heading-font: var(--global-heading-font-family);
  --text-body: var(--global-palette5);
  --text-strong: var(--global-palette5);
  
  /* Buttons / gradients */
--orange-gradient: linear-gradient(180deg, var(--global-palette3) 0%, var(--global-palette5) 100%);
  --orange-gradient-reverse: linear-gradient(0deg, var(--global-palette3) 0%, var(--global-palette5) 100%);

  /* Underline controls */
  --underline-height: 2px;
  --underline-gap: 0.4em;
  --underline-duration: 3s;
  --underline-target: 20%;

  /* Animation system */
  --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 Update
   ========================= */

/* Kadence Advanced Heading: animated underline support */
.ani-underline-target .kadence-advanced-heading-text,
.ani-underline-target .kb-advanced-heading-text {
    display: inline-block;
    position: relative;
}

/* underline animation */
.ani-underline-target .kadence-advanced-heading-text::after,
.ani-underline-target .kb-advanced-heading-text::after {
    content: "";
    display: block;
    width: 0;
    height: var(--underline-height, 2px);
    background: var(--global-palette1);
    margin-top: var(--underline-gap, 6px);
    transition: width var(--underline-duration, 1s) ease-out;
}

/* activate animation */
.ani-underline-target.u-underline-ready .kadence-advanced-heading-text::after,
.ani-underline-target.u-underline-ready .kb-advanced-heading-text::after {
    width: var(--underline-target, 20%);
}




#zdoc-widget-root {z-index:999999;}

.bsr-inner-notice-container .updated, .updated.bsr-updated {
    display: block !important;
}

/* =========================
   Base & Layout
   ========================= */

/* drawer menu two columns */
.drawer-content {
    column-count: 2;
}

.drawer-content .widget_nav_menu {
	  /* keep the whole block (heading + list) in the same column */
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 2rem;
}



.service-template-default #masthead {
	background:transparent;
}

.service-template-default .content-area {
	margin-top: 0;
	margin-bottom: 0;
}

.find-us-block {
position:relative;
}

.find-us-block::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: #152C45 url(/wp-content/uploads/2025/10/icon-asset.png) no-repeat center center;
  background-size: 180px;
  z-index: 5000;
  pointer-events: none;
  left:-90px;
  top: 60px;
  border: 2px solid var(--brand-accent);
  box-shadow: 0px 0px 30px -5px rgba(0,0,0,0.25);

  animation: fadeInScale 0.7s ease forwards; /* runs on load */
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

a.wp-block-social-link-anchor {
 color: white !important;
}

.max-divider .kt-block-spacer { height: 100%; }

.entry-content-wrap { padding-top: 0; padding-bottom: 0}


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

.masonry-gallery { max-width: 1000px; float: right; }

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

/* SVG sizing inside Kadence images */
figure.wp-block-kadence-image.image-is-svg { flex: 0 0 auto !important; height: auto !important; }
figure.wp-block-kadence-image.image-is-svg svg.replaced-svg,
.wp-block-kadence-image svg { display: block; width: 100% !important; height: auto !important; }

.gkm-inlined-svg { 
  display:block;
  max-width:100%;
  height:auto;
}



/* Two-column content helpers for stacks */
.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;
}

/* Base: keep strokes hidden until JS measures lengths */
.kb-vector-container svg .st4 {
  /* your stroke styles already exist; we add dash props */
  stroke-dasharray: var(--len, 1);
  stroke-dashoffset: var(--len, 1);
  opacity: 1; /* ensure visible once drawing starts */
}

/* When we trigger the animation */
.kb-vector-container.is-drawing svg .st4 {
  animation: svg-write 1.25s ease-out forwards;
}

/* Optional: subtle fade while drawing */
.kb-vector-container.is-drawing svg .st4 {
  filter: drop-shadow(0 0 0 rgba(0,0,0,0)); /* noop—keeps specificity low */
}

@keyframes svg-write {
  to { stroke-dashoffset: 0; }
}

/* Accessibility: if the user prefers reduced motion, show strokes immediately */
@media (prefers-reduced-motion: reduce) {
  .kb-vector-container svg .st4 {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none !important;
  }
}


/* =========================
   Components
   ========================= */
/* Global filled button */
.kb-btn-global-fill, .header-button {
  border-radius: 8px !important;  
  background-size: 600px auto !important;
}

/* =========================
   Video Rounded Corners
   ========================= */
.rounded-video video,
.rounded-video iframe {
  border-radius: 20px;
  overflow: hidden;
}

/* Section shell (pre-fold) */
section.section-gk {
  background: var(--surface);
  padding: 3em;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 60px;
  border-bottom: 6px solid var(--brand-accent);
  position: relative;
  z-index: 4;
  border-radius: 20px; /* 👈 Rounded corners */
  overflow: hidden;    /* 👈 Keeps inner elements from bleeding past corners */
}


section.section-gk-alt {
  background-image:url('/wp-content/uploads/2025/10/marble-pg-lite-hires.webp');
  background-repeat: repeat;
  background-size: 1200px;
  padding: 2em;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
margin-top: 40px;
  margin-bottom: 60px;
  border-bottom: 6px solid var(--brand-accent);
}

.section-gk h3 {
		    margin-top: 0.5em;
    margin-bottom: 0.2em;
	  font-size: 50px;
  letter-spacing: 0px;
	  margin-bottom: 1rem;
}
.service-hero{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}
.service-hero h6.eyebrow{
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: 3px;
  color: var(--brand-accent);
  margin-bottom: 1.5rem;
}
.service-hero h1{
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 65px;
  margin: .5rem 0 1rem;
  position: relative;
  display: inline-block;
	line-height: 1.1em;
}

/* H2 on service pages (copies your H1 styling structure) */
body[class*="service"] h2{
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 38px;        /* ← adjust as needed */
  line-height: 1.2;
  margin: 1rem 0 0.7rem;
  letter-spacing: 0;
}


/* H3 on service pages */
body[class*="service"] h3{
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 32px;        /* ← adjust as needed */
  line-height: 1.3;
  margin: 1rem 0 1rem;
  letter-spacing: 0;
}

.service-hero h4{
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 140%;

}
.service-hero p{
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Alias: make underline-animate use your existing underline system */
.underline-animate { position: relative; display: inline-block; }
.underline-animate::after { content:""; display:block; width:0; height:var(--underline-height,3px); background:var(--global-palette1); margin-top:var(--underline-gap,6px); transition:width var(--underline-duration,1s) ease-out; }
.underline-animate.u-underline-ready::after { width:var(--underline-target,50%); }

/* Auto-animate underline-animate on load */
.underline-animate::after{
  animation: underline-grow var(--underline-duration, 1s) ease-out forwards;
}

@keyframes underline-grow{
  from { width: 0; }
  to   { width: var(--underline-target, 50%); }
}


/* Divider */
hr.section-divider{
  border: 0;
  border-top: 1px solid var(--surface-light);
  margin: 35px 0;
}

/* CTA button */
.cta-btn{
  display: inline-block;
  background: var(--orange-gradient);
  color: var(--surface) !important;
  padding: .9rem 1.8rem;
  border-radius: 8px 0 8px 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: all .3s ease;
  font-family: var(--heading-font);
}
.cta-btn:hover{
  background: var(--orange-gradient-reverse);
  transform: translateY(-2px);
}
.cta-btn:active{ transform: translateY(0); }

/* Service list */
ul.service-list{ list-style: none; margin: 0em; padding: 0; }
.service-list li{
  position: relative;
  padding-left: 4em; padding-top: .5em;
	
  margin-bottom: 1.1rem;
  line-height: 1.4;
}
.service-list li::before{
  content: "";
  position: absolute;
  left: -.5em;
  top: .3em;
  width: 68px;
  height: 68px;
  background:
    white
    url('/wp-content/uploads/2025/12/service_icon.png')
    center / 62% no-repeat;
  border: 0px solid var(--brand-accent);
}
.service-list li > strong{
  display: block;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
	letter-spacing: 0px; /* adjust this value as needed */
}
.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 */
ul.tech-list{ list-style: none; margin: 0; padding-left: 0; }
.tech-list li{
  position: relative;
  padding-left: 2.2em;
  margin-bottom: 1.25rem;
  line-height: 1.5;
	padding-top: .5em;
}
.tech-list li::before{
  content: "";
  position: absolute;
  left: -.3em;
  top: 0.1em;
  width: 35px;
  height: 35px;
  background:
    #fff
    url("/wp-content/uploads/2025/11/arrow_serviceicon.png")
    center / 70% no-repeat;
}

/* Kadence Advanced Heading version */
.service-template-default section.section-gk .wp-block-kadence-advancedheading:first-of-type{
  background: #F7F4EA !important;
  border-radius: 20px 20px 0 0 !important;
  padding: 40px 40px 0 40px !important;   /* TOP + SIDES */
  margin-bottom: 0 !important;
  display: block !important;
}

.service-template-default section.section-gk .wp-block-kadence-advancedheading:first-of-type + p{
  background: #F7F4EA !important;
  border-radius: 0 0 20px 20px !important;
  padding: 0 40px 40px 40px !important;   /* BOTTOM + SIDES */
  margin-top: 0 !important;
  margin-bottom: 25px !important;
  display: block !important;
}


/* FAQ component (dl/dt/dd) */
.gkfaq{
  --faq-left-gap: 64px;
  --faq-icon-size: 40px;
  margin: 2.5rem 0 0;
  background: transparent;
  border: none;
  padding: 0;
}
.gkfaq dt,
.gkfaq dd{ margin: 0; }
.gkfaq dt{ margin-top: 12px; border: 0; }
.gkfaq dt:first-of-type{ margin-top: 0; }

.gkfaq .gkfaq-toggle{
  appearance: none;
  background: white;
  color: black;
  border-bottom: 1px solid var(--brand-accent);
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 10px -5px;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 26px 24px 26px var(--faq-left-gap);
  line-height: 1.5;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 1.5px;
  position: relative;
  transition: background-color .25s ease, color .25s ease;
  font-family: var(--global-heading-font-family);
}
.gkfaq .gkfaq-toggle::before{
  content: "+";
  position: absolute;
  left: calc((var(--faq-left-gap) - var(--faq-icon-size)) / 2);
  top: 50%;
  transform: translateY(-50%);
  width: var(--faq-icon-size);
  height: var(--faq-icon-size);
  border: 2px solid var(--brand-accent, #E7DB73);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-accent, #E7DB73);
  background: #fff;
  box-sizing: border-box;
  transition: all .25s ease;
}
.gkfaq .gkfaq-toggle::after{ content: none !important; }

.gkfaq .gkfaq-toggle:hover{
  background: var( --surface-light);
}
.gkfaq .gkfaq-toggle:hover::before{
  border-color: #000; color: #000;
}
.gkfaq .gkfaq-toggle[aria-expanded="true"]{
  background: var( --surface-light);
  color: var(--text-strong, #222);
}
.gkfaq .gkfaq-toggle[aria-expanded="true"]::before{
  content: "–";
  background: var(--surface);
  color: black;
}
.gkfaq dd{
  padding: 20px var(--faq-left-gap) 24px;
  color: var(--text-body, #555);
  line-height: 1.65;
  border: 0;
}
.gkfaq.is-enhanced dd{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  padding: 0 var(--faq-left-gap) 0;
  border: 0;
  transition: max-height .34s ease, padding .34s ease, opacity .24s ease, transform .34s ease;
}
.gkfaq.is-enhanced dt.is-open + dd{
  opacity: 1;
  transform: translateY(0);
  padding: 20px var(--faq-left-gap) 85px;
}


/* =========================
   Media Helpers
   ========================= */

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


/* =========================
   Decorative Accents
   ========================= */

/* Gold inset borders */
.gold-bordered,
.gold-bordered-circle {
  position: relative;
  border-radius: 8px; /* ensures the container corners match */
}

.gold-bordered::before,
.gold-bordered-circle::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--brand-accent);
  border-radius: 18px; /* rounds the inset border corners */
  pointer-events: none;
  z-index: 3;
  display: inline-block;
}

.gold-bordered-circle::before { border-radius: 50%; }

/* Outer white lines (left/right) */
.outer-lined::before,
.outer-lined::after{
  content: "";
  display: inline-block;
  height: 2px;
  width: 70px;
  background: #fff;
  position: relative;
  top: -9px;
}
.outer-lined::before{ left: -10px; }
.outer-lined::after{ right: -10px; }

/* ======================================
   Marble Squares (All Corners + Full Drop)
   Clean + Correct Layering + Behind Content
   ====================================== */

/* Base container for all marble accents */
.marble-bottom-left,
.marble-bottom-right,
.marble-top-left,
.marble-top-right,
.marble-full-drop {
  position: relative;
  z-index: 0; /* keep container behind content */
  overflow: visible;
}

/* Main marble pseudo-elements */
.marble-bottom-right::after,
.marble-bottom-left::after,
.marble-top-left::after,
.marble-top-right::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;

  /* Your texture image */
  background-image: url("https://darkgrey-trout-482689.hostingersite.com/wp-content/uploads/2025/11/bg_texture_port.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;

  pointer-events: none;
  z-index: -1; /* ALWAYS behind the images/content */
}

/* Keep top-left/top-right images above the marble */
.marble-top-left img,
.marble-top-right img {
  position: relative;
  z-index: 1;
}



.marble-full-drop::after{
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('/wp-content/uploads/2025/10/marble-pg-lores.webp') no-repeat center center;
  background-size: 800px;
  z-index: -3;
    bottom: -45px;
    right: 45px;
  pointer-events: none;
}


.marble-top-left::after{ top: -40px; left: -40px; }
.marble-bottom-left::after{ bottom: -40px; left: -40px; }
.marble-top-right::after{ top: -40px; right: -40px; }
.marble-bottom-right::after{ bottom: -40px; right: -40px; }

/* Case-study grid image width */
.case-study-grid figure.wp-block-kadence-image.kb-image786_a0b78b-fd.size-full.kb-image-is-ratio-size {
  width: 65%;
  margin-left: auto;
  margin-right: auto;
}

/* Misc accents */
.case-description { border-left: 3px solid var(--global-palette1); }
.thin-text { font-weight: 100 !important; }
.unmounted { position: absolute !important; }



/* =========================
   Write-on SVG animation
   ========================= */

@keyframes gkm-draw {
  to { stroke-dashoffset: 0; }
}

/* Default timing; JS only sets delays */
.kb-vector-container.is-drawing svg path,
.kb-vector-container.is-drawing svg polyline,
.kb-vector-container.is-drawing svg line,
.kb-vector-container.is-drawing svg circle,
.kb-vector-container.is-drawing svg ellipse {
  animation-name: gkm-draw;
  animation-duration: 1.4s; /* tweak */
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}


/* =========================
   Animated Underline (Kadence)
   ========================= */

.ani-underline{
  position: relative;
  display: inline-block;
  margin-bottom: 0.4em;
}
.ani-underline::after{
  content: "";
  display: block;
  width: 0;
  height: var(--underline-height, 3px);
  background: var(--global-palette4, #225783);
  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%); }

/* Alignment helpers (deduped) */
.has-text-align-center.ani-underline{
  display: inline-block;
  width: fit-content;
  margin: 0.4em auto;
}
.ani-underline.has-text-align-center::after{
  margin-left: auto; margin-right: auto;
}
.ani-underline.has-text-align-right::after{
  margin-left: auto; margin-right: 0;
}


/* =========================
   Animation System
   ========================= */

/* Vars */
: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: .2s;

  --ani-hover-flip-duration: .6s;
  --ani-hover-flip-scale: 0;

  --underline-height: 2px;
  --underline-gap: 0.4em;
}

/* 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; }
}
@keyframes aniLoopVert{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(calc(var(--ani-loop-distance) * -1)); }
}
@keyframes aniLoopHoriz{
  0%,100%{ transform: translateX(0); }
  50%    { transform: translateX(var(--ani-loop-distance)); }
}
@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 animation 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;
}

.ani-loop-vert,
.ani-loop-horiz,
.ani-loop-random{
  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-vert{   animation-name: aniLoopVert; }
.ani-loop-horiz{  animation-name: aniLoopHoriz; }
.ani-loop-random{ animation-name: aniLoopRandom; }

/* Activate on in-view */
.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;
}

/* Hover flip for images/SVGs */
.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;
}

/* Immediate-run helper */
.ani-immediate{ animation-play-state: running !important; opacity: initial; transform: none; }

/* 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 (extend as needed) */
.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); }


/* =========================
   Responsive (<= 768px)
   ========================= */

@media (max-width: 768px){

	.drawer-content {
    column-count: 1;
}

	
  .pre-fold-container { display: none; }

  section.section-gk{
    background: transparent;
    box-shadow: none;
    padding: 1em;
    margin-bottom: 40px;
    border-bottom: none;
  }

  .service-hero h1{ font-size: 40px; }
  .service-hero h6.eyebrow{ text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2em;}
  .service-hero h4{ font-size: 1.2rem; }

  .service-list li{ padding-left: 55px; margin-bottom: 1rem; }
  .service-list li::before{ left: -.7em; top: 1em; width: 60px; height: 60px; }

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

  h2.gkctabox { font-size: 32px; }

  .gkfaq{ --faq-left-gap: 52px; --faq-icon-size: 34px; }
  .gkfaq .gkfaq-toggle{
    padding: 18px 16px 18px var(--faq-left-gap);
    font-size: 1rem;
    min-height: 44px;
  }
  .gkfaq dd{ padding: 14px var(--faq-left-gap) 18px; }

  .two-columns { columns: 1; }

  /* Marble squares smaller on mobile */
  .marble-top-left::after{
    top: -40px; left: -40px; width: 80px; height: 80px;
  }
  .marble-top-right::after{
    top: -40px; right: -40px; width: 80px; height: 80px;
  }
}

/* =========================
   h2 and h3 mobile added
   ========================= */
@media (max-width: 768px){
  body[class*="service"] h2{ font-size: 32px; }
  body[class*="service"] h3{ font-size: 28px; }
}


/* =========================
   Texture Background Left Aligned
   ========================= */
.texture-bg-75 {
  position: relative;
  overflow: hidden;
  background-color: #ffffff; /* fallback solid color */
}

/* crisp texture overlay */
.texture-bg-75::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 75%; /* texture covers left 3/4 */
  height: 100%;
  background-image: url("https://lightblue-deer-780815.hostingersite.com/wp-content/uploads/2025/10/slate-bg-semi-contrast.webp");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;        /* keeps image sharp */
  image-rendering: crisp-edges;  /* hint for sharpness */
  z-index: 0;
}

/* ensure content sits above */
.texture-bg-75 > * {
  position: relative;
  z-index: 1;
}

/* =========================
   Floating Icon
   ========================= */
/* positions icon absolutely inside the section */
.floating-icon {
  position: absolute;
  right: 50%;
  bottom: 18%;
  width: 200px; /* adjust icon size */
  height: auto;
  z-index: 2;
}

/* ensures the Row Layout acts as the positioning container */
.texture-bg-75 {
  position: relative;
}




/* =========================
   Reduced Motion (global)
   ========================= */

@media (prefers-reduced-motion: reduce){
  .ani, [class*="ani-"]{ animation: none !important; transition: none !important; }
  .ani-underline::after{ transition: none; }
  .gkfaq.is-enhanced dd,
  .gkfaq .gkfaq-toggle,
  .gkfaq .gkfaq-toggle::before{ transition: none; }
}

/* =========================
   Map (Google) – default + mobile overrides
   ========================= */
#dental-map {
  height: 720px; /* desktop/tablet default */
}

@media (max-width: 768px){
  #dental-map { height: 380px !important; }
}

@media (max-width: 480px){
  #dental-map { height: 320px !important; }
}

/* =============================================
   Animated Dividers (Teal, Thin, Fade-In + Grow)
   ============================================= */

/* Shared animation for both center + left versions */
@keyframes gk-divider-grow {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ======= CENTER VERSION ======= */
.wp-block-kadence-spacer.ani-divider-center {
  padding-top: 20px;
  padding-bottom: 20px;
}

.wp-block-kadence-spacer.ani-divider-center .kt-block-spacer {
  height: 1px !important;
  background: var(--global-palette4) !important; /* teal */
  width: 120px;                /* center width */
  margin-left: auto;
  margin-right: auto;          /* center */

  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;

  transition:
    transform var(--ani-in-duration, 1s) ease-out,
    opacity var(--ani-in-duration, 1s) ease-out;
}

.wp-block-kadence-spacer.ani-divider-center.is-inview .kt-block-spacer {
  transform: scaleX(1);
  opacity: 1;
}


/* ======= LEFT VERSION ======= */
.wp-block-kadence-spacer.ani-divider-left {
  padding-top: 20px;
  padding-bottom: 20px;
}

.wp-block-kadence-spacer.ani-divider-left .kt-block-spacer {
  height: 1px !important;
  background: var(--global-palette4) !important; /* teal */
  width: 120px;                /* left width */
  margin-left: 0;
  margin-right: 0;             /* left aligned */

  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;

  transition:
    transform var(--ani-in-duration, 1s) ease-out,
    opacity var(--ani-in-duration, 1s) ease-out;
}

.wp-block-kadence-spacer.ani-divider-left.is-inview .kt-block-spacer {
  transform: scaleX(1);
  opacity: 1;
}

/* =========================
   Service Section 2 – Beige Intro Box (clean version)
   ========================= */

/* Full beige box wrapper for first heading + paragraph */
.service-template-default section.section-gk h2:first-of-type,
.service-template-default section.section-gk h2:first-of-type + p{
    background: #E8EFF4 !important;
    width: 100% !important;
    display: block !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Individual rounded corners + padding */
.service-template-default section.section-gk h2:first-of-type{
    border-radius: 20px 20px 0 0 !important;
    padding: 40px 40px 20px 40px !important; /* 20px = spacing to paragraph */
    margin: 0 !important;
}

.service-template-default section.section-gk h2:first-of-type + p{
    border-radius: 0 0 20px 20px !important;
    padding: 0 40px 40px 40px !important;
    margin: 0 0 40px 0 !important; /* space BELOW whole box */
}



/* ============================================
   FAQ SECTION — space below heading + divider
   ============================================ */

/* Space BELOW the FAQ heading */
.gkfaq-heading,
.gkfaq-title,
.service-template-default .gkfaq-heading {
  margin-bottom: 20px !important;
}

/* If your FAQ title uses your h3.ani-underline style: */
.service-template-default h3.ani-underline + .gkfaq {
  margin-top: 25px !important;
}

/* If a divider sits between heading + FAQ */
.service-template-default h3.ani-underline + hr.section-divider + .gkfaq {
  margin-top: 25px !important;
}



