@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;1,8..60,600;1,8..60,700&display=swap');

/* Services (Sticky Scroll). Colors come from Settings → Expert Theme; Elementor Style-tab values override per widget.
   Layout is identical in Light and Dark mode — only the colors change. */
.exp-sv{
	--l-bg:var(--exp-l-bg,#fff);--l-text:var(--exp-l-text,#1a1a1a);--l-muted:var(--exp-l-muted,#555);
	--d-bg:var(--exp-d-bg,#0a0a0b);--d-text:var(--exp-d-text,#f4f4f5);--d-muted:var(--exp-d-muted,#a1a1aa);
	--sv-left:32%;--sv-stick-top:80px;--sv-padx:52px;--sv-rgap:6px;--sv-row-py:40px;--sv-headgap:40px;
	--sv-num-clip:.62em;--sv-num-gap:0px;--sv-title-w:280px;
	--sv-stage-h:460px;--sv-img-w:700px;--sv-img-h:300px;--sv-img-r:0px;--sv-fit:cover;--sv-text-top:0px;
	position:relative;box-sizing:border-box;width:100%;padding:56px 0 72px;
	font-family:'Public Sans',system-ui,sans-serif;background:var(--bg);color:var(--c-body);
	transition:background-color .35s,color .35s;-webkit-text-size-adjust:100%;
}
.exp-sv,.exp-sv *{box-sizing:border-box}
.exp-sv h1,.exp-sv h2,.exp-sv h3,.exp-sv h4,.exp-sv p{margin:0;padding:0}

/* ----- colors: Light (default) / Dark ----- */
.exp-sv{
	--bg:var(--l-bg);--c-head:var(--l-heading,var(--l-text));--c-num:var(--l-num,#f0f0f0);
	--c-title:var(--l-title,var(--l-text));--c-lead:var(--l-lead,var(--l-text));--c-body:var(--l-body,var(--l-muted));--c-line:var(--l-line,rgba(0,0,0,.1));
	--c-shadow:rgba(0,0,0,.16);
}
html[data-exp-theme=dark] .exp-sv{
	--bg:var(--d-bg);--c-head:var(--d-heading,var(--d-text));--c-num:var(--d-num,rgba(255,255,255,.09));
	--c-title:var(--d-title,var(--d-text));--c-lead:var(--d-lead,var(--d-text));--c-body:var(--d-body,var(--d-muted));--c-line:var(--d-line,rgba(255,255,255,.14));
	--c-shadow:rgba(0,0,0,.6);
}

.exp-sv .exp-sv-h{
	text-align:center;margin-bottom:var(--sv-headgap);padding:0 20px;
	font-family:'Source Serif 4',Georgia,serif;font-style:italic;font-weight:700;
	font-size:clamp(34px,4.4vw,64px);line-height:1.1;letter-spacing:-.01em;color:var(--c-head);
}

/* ---------- Two columns: LEFT sticky number + title | RIGHT image, then text (per service) ---------- */
.exp-sv-wrap{display:grid;grid-template-columns:var(--sv-left) minmax(0,1fr);align-items:start}

/* LEFT — sticky; layers are stacked in one grid cell and cross-fade / slide as you scroll */
.exp-sv-sticky{
	position:sticky;top:var(--sv-stick-top);align-self:start;min-width:0;
	padding:max(0px,var(--sv-row-py)) 16px 0 var(--sv-padx);margin-top:min(0px,var(--sv-row-py));
}
.exp-sv-layers{display:grid;translate:var(--sv-nx,0px) var(--sv-ny,0px)}
.exp-sv-layer{
	grid-area:1/1;min-width:0;pointer-events:none;will-change:opacity,transform;
	opacity:0;transform:translateY(46px);
	/* leaving layer: quick, so the old number is gone before the new one arrives (no overlap / mess) */
	transition:opacity .22s ease,transform .45s cubic-bezier(.4,0,.2,1);
}
.exp-sv-layer.is-active{
	opacity:1;transform:none;
	/* arriving layer: starts a moment later, then glides in */
	transition:opacity .5s cubic-bezier(.4,0,.2,1) .14s,transform .8s cubic-bezier(.16,1,.3,1) .1s;
}
.exp-sv-layer.is-past{opacity:0;transform:translateY(-46px)}

/* The real (accessible) number + title inside every row: hidden on desktop, shown on phones */
.exp-sv-item .exp-sv-side{
	position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}

.exp-sv-num{
	display:block;font-weight:800;font-size:clamp(64px,12vw,176px);letter-spacing:-.04em;color:var(--c-num);
	line-height:1;height:var(--sv-num-clip);overflow:hidden;white-space:nowrap;user-select:none;
}
.exp-sv-title{
	max-width:var(--sv-title-w);margin-top:var(--sv-num-gap);position:relative;
	font-weight:400;font-size:clamp(19px,2vw,28px);line-height:1.3;letter-spacing:-.005em;color:var(--c-title);
	overflow-wrap:anywhere;
}

/* RIGHT — rows scroll normally */
.exp-sv-list{display:flex;flex-direction:column;min-width:0}
.exp-sv-item{position:relative;padding:max(0px,var(--sv-row-py)) 0;margin:min(0px,var(--sv-row-py)) 0}
.exp-sv.has-line .exp-sv-item+.exp-sv-item{border-top:1px solid var(--c-line)}

.exp-sv-main{min-width:0;padding:0 var(--sv-padx) 0 var(--sv-rgap)}
.exp-sv-stage{
	display:flex;justify-content:center;align-items:center;width:100%;
	min-height:var(--i-stage,var(--sv-stage-h));
}
/* Elementor's own CSS (.elementor img { height:auto; border-radius:0; box-shadow:none }) is more specific than a single class,
   so these selectors are deliberately stronger — otherwise image height / corner radius / shadow would be ignored. */
.exp-sv .exp-sv-stage .exp-sv-img{
	display:block;flex:none;max-width:100%;
	width:var(--i-w,var(--sv-img-w));height:var(--i-h,var(--sv-img-h,auto));object-fit:var(--sv-fit);
	border-radius:var(--sv-img-r);
	transform:translate(var(--i-x,0px),var(--i-y,0px));
}
.exp-sv.has-shadow .exp-sv-stage .exp-sv-img{box-shadow:0 22px 50px var(--c-shadow)}

.exp-sv-main{display:flex;flex-direction:column}
.exp-sv .exp-sv-main .exp-sv-body{
	margin-top:var(--sv-text-top);width:100%;max-width:var(--i-tw,var(--sv-text-w,100%));align-self:var(--sv-text-pos,flex-start);
	display:flex;flex-direction:column;gap:14px;
}
.exp-sv-lead{font-weight:600;font-size:clamp(17px,1.6vw,22px);line-height:1.4;color:var(--c-lead)}
.exp-sv-text{font-size:clamp(16px,1.55vw,21px);line-height:1.42;color:var(--c-body)}
.exp-sv-text p+p{margin-top:12px}

/* ---------- Scroll reveal: image first, then text — both rise up from the bottom ---------- */
.exp-sv.has-reveal.is-ready .exp-sv-rv{
	opacity:0;transform:translate3d(0,70px,0);will-change:opacity,transform;
	transition:opacity .9s cubic-bezier(.22,.61,.36,1),transform 1.1s cubic-bezier(.16,1,.3,1);
}
.exp-sv.has-reveal.is-ready .exp-sv-body.exp-sv-rv{transition-delay:.12s}
.exp-sv.has-reveal.is-ready .exp-sv-rv.is-in{opacity:1;transform:none;will-change:auto}

/* ---------- Tablet + Phone (up to 1024px): ONE column — every service shows its own number + title (NOT sticky), then the image, then the text ---------- */
@media(max-width:1024px){
	.exp-sv{padding:40px 0 48px;--sv-stick-top:0px}
	.exp-sv-wrap{display:block}
	/* the sticky bar is hidden unless "Phone: keep the number + title bar sticky" is on */
	.exp-sv-sticky{display:none}
	.exp-sv.has-msticky .exp-sv-sticky{display:block;z-index:5;background:var(--bg);padding:10px var(--sv-padx) 12px}
	.exp-sv .exp-sv-stage .exp-sv-img{width:var(--sv-img-w,100%);height:var(--sv-img-h,auto)}
	.exp-sv-layers{overflow:hidden}
	.exp-sv-layer{transform:translateY(34px)}
	.exp-sv-layer.is-past{transform:translateY(-34px)}
	/* the number + title that belong to each row become visible and scroll with the page */
	.exp-sv:not(.has-msticky) .exp-sv-item .exp-sv-side{
		position:static;width:auto;height:auto;margin:0 0 14px;padding:0 var(--sv-padx);
		overflow:visible;clip:auto;clip-path:none;white-space:normal;border:0;
	}
	.exp-sv:not(.has-msticky) .exp-sv-item .exp-sv-side{translate:var(--sv-nx,0px) var(--sv-ny,0px)}
	.exp-sv-num{font-size:clamp(72px,24vw,120px)}
	.exp-sv-title{max-width:100%;font-size:clamp(20px,5.6vw,26px)}
	.exp-sv-item{padding:max(0px,var(--sv-row-py)) 0;margin:min(0px,var(--sv-row-py)) 0}
	.exp-sv-main{padding:0 var(--sv-padx)}
	.exp-sv-body{gap:12px}
	.exp-sv-lead{font-size:17px}
	.exp-sv-text{font-size:16px;line-height:1.6}
	/* smoother, shorter rise on phones (number + title rise too) */
	.exp-sv.has-reveal.is-ready .exp-sv-rv{transform:translate3d(0,44px,0)}
	.exp-sv.has-reveal.is-ready .exp-sv-rv.is-in{transform:none}
	.exp-sv.has-reveal.is-ready:not(.has-msticky) .exp-sv-rv2{
		opacity:0;transform:translate3d(0,34px,0);will-change:opacity,transform;
		transition:opacity .8s cubic-bezier(.22,.61,.36,1),transform .95s cubic-bezier(.16,1,.3,1);
	}
	.exp-sv.has-reveal.is-ready:not(.has-msticky) .exp-sv-rv2.is-in{opacity:1;transform:none;will-change:auto}
}

/* ---------- Phone only (up to 767px): 10px space left/right for image + text, shorter image. All editable (Elementor → phone view) ---------- */
@media(max-width:767px){
	.exp-sv{--sv-padx:10px;--sv-img-w:100%;--sv-img-h:220px;--sv-stage-h:0px}
}

/* ---------- Tablet only (768–1024px): same stacked look as the phone, but a wide image (10px side space) and tidy full-width text ---------- */
@media(min-width:768px) and (max-width:1024px){
	.exp-sv:not(.has-msticky) .exp-sv-item .exp-sv-side{padding:0 10px}
	.exp-sv-main{padding:0 10px}
	.exp-sv .exp-sv-stage{min-height:0}
	.exp-sv .exp-sv-stage .exp-sv-img{width:100%!important;max-width:100%!important;transform:none}
	.exp-sv .exp-sv-main .exp-sv-body{max-width:100%!important;align-self:stretch}
	.exp-sv-body{gap:14px}
	.exp-sv-lead{font-size:20px}
	.exp-sv-text{font-size:18px;line-height:1.6}
	.exp-sv-main .exp-sv-body{margin-top:24px}
}
@media(prefers-reduced-motion:reduce){
	.exp-sv.has-reveal.is-ready .exp-sv-rv,.exp-sv.has-reveal.is-ready .exp-sv-rv2,.exp-sv-layer{opacity:1!important;transform:none!important;transition:none!important}
	.exp-sv-layer:not(.is-active){opacity:0!important}
}
