/* ==========================================================================
   Page Title (.sentio-pt)
   ==========================================================================
   Extracted from frontend.css during the Batch 8 mechanical extraction
   (2026-04-18). Behavior-preserving.
   Animated text reveal, decorative separators, background stroke text,
   dynamic subtitle.

   Note: `.sentio-pt` prefix is ALSO used by price-table (Batch 8 #32) —
   distinct CSS block at line ~1494 (pre-shift). Line-range extraction used
   per batch-8 list instruction; selector-based matching would catch both.
   ========================================================================== */

/* ── Base ── */
.sentio-pt {
	position: relative;
	overflow: hidden;
}

/* ── Title ── */
.sentio-pt__title {
	position: relative;
	z-index: 1;
	margin: 0;
	line-height: 1.2;
	transition: color 0.3s;
}

.sentio-pt__title a {
	color: inherit;
	text-decoration: none;
}

/* ── Subtitle (Diff #4) ── */
.sentio-pt__subtitle {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #6b7280;
	font-size: 16px;
	line-height: 1.6;
}

.sentio-pt__subtitle--above {
	margin-bottom: 8px;
}

.sentio-pt__subtitle--below {
	margin-top: 12px;
}

/* ── Separator (Diff #2) ──
 * P1 polish 2026-04-21 — separator alignment fix. Previously used
 * `display: flex; justify-content: center` + `[style*="text-align: left"]`
 * attribute selectors to try to follow the widget's text-align control.
 * Those attribute selectors never matched because Elementor writes
 * text-align via a stylesheet rule (`{{WRAPPER}} .sentio-pt { text-align: ... }`),
 * not via an inline `style=""` attribute — so separators ALWAYS centered
 * regardless of alignment control.
 *
 * Fix: make .sentio-pt__separator a block wrapper whose child sep-line is
 * `display: inline-block`. The .sentio-pt parent's text-align then naturally
 * positions the inline-block sep-line left/center/right. Zero attribute-
 * selector hacks; works with ALL alignment-control paths.
 */
.sentio-pt__separator {
	position: relative;
	z-index: 1;
}

.sentio-pt__separator--before {
	margin-bottom: 16px;
}

.sentio-pt__separator--after {
	margin-top: 16px;
}

.sentio-pt__sep-line {
	display: inline-block;
	width: 60px;
	border-radius: 2px;
	vertical-align: middle;
}

/* Solid — uses background + height */
.sentio-pt__sep-line--solid {
	height: 3px;
	background-color: #6366f1;
}

/* Dashed — uses border-top */
.sentio-pt__sep-line--dashed {
	border-top: 3px dashed #6366f1;
}

/* Dotted — uses border-top */
.sentio-pt__sep-line--dotted {
	border-top: 3px dotted #6366f1;
}

/* Double — uses border-top (needs ≥3px to show both lines) */
.sentio-pt__sep-line--double {
	border-top: 5px double #6366f1;
}

/* Gradient — background set via inline style */
.sentio-pt__sep-line--gradient {
	height: 3px;
}

/* ── Background Stroke Text (Diff #3) ── */
.sentio-pt__bg-text {
	--sentio-pt-bg-offset-x: 0px;
	--sentio-pt-bg-offset-y: 0px;
	--sentio-pt-bg-rotate: 0deg;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(calc(-50% + var(--sentio-pt-bg-offset-x)), calc(-50% + var(--sentio-pt-bg-offset-y))) rotate(var(--sentio-pt-bg-rotate));
	font-size: 140px;
	font-weight: 900;
	line-height: 1;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: rgba(0,0,0,0.06);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

/* ── Animations (Diff #1) ── */

/* All animated titles start invisible */
.sentio-pt__title--anim {
	opacity: 0;
}

/* After JS fires */
.sentio-pt__title--anim-ready {
	opacity: 1;
}

/* Typewriter: cursor blink */
.sentio-pt__title--anim-typewriter.sentio-pt__title--anim-ready {
	display: inline-block;
}

.sentio-pt__title--anim-typewriter .sentio-pt__char {
	opacity: 0;
	display: inline;
}

.sentio-pt__title--anim-typewriter .sentio-pt__char--visible {
	opacity: 1;
}

.sentio-pt__cursor {
	display: inline-block;
	width: 2px;
	height: 0.9em;
	background: currentColor;
	margin-left: 2px;
	vertical-align: text-bottom;
	animation: sentioPtBlink 0.7s step-end infinite;
}

@keyframes sentioPtBlink {
	50% { opacity: 0; }
}

/* Word fade: each word fades in */
.sentio-pt__title--anim-word-fade .sentio-pt__word {
	display: inline-block;
	opacity: 0;
	transform: translateY(12px);
	transition-property: opacity, transform;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.sentio-pt__title--anim-word-fade .sentio-pt__word--visible {
	opacity: 1;
	transform: translateY(0);
}

/* Clip reveal */
.sentio-pt__title--anim-clip.sentio-pt__title--anim-ready {
	clip-path: inset(0 100% 0 0);
	animation: sentioPtClip var(--sentio-pt-speed, 800ms) cubic-bezier(0.65, 0, 0.35, 1) forwards;
	animation-delay: var(--sentio-pt-delay, 0ms);
}

@keyframes sentioPtClip {
	to {
		clip-path: inset(0 0 0 0);
	}
}

/* Glitch */
.sentio-pt__title--anim-glitch.sentio-pt__title--anim-ready {
	animation: sentioPtGlitch var(--sentio-pt-speed, 800ms) ease-out forwards;
	animation-delay: var(--sentio-pt-delay, 0ms);
}

@keyframes sentioPtGlitch {
	0% {
		opacity: 1;
		clip-path: inset(40% 0 60% 0);
		transform: translate(-3px, 2px) skewX(-4deg);
	}
	10% {
		clip-path: inset(10% 0 80% 0);
		transform: translate(3px, -1px) skewX(2deg);
	}
	20% {
		clip-path: inset(60% 0 10% 0);
		transform: translate(-2px, 1px) skewX(-1deg);
	}
	30% {
		clip-path: inset(20% 0 40% 0);
		transform: translate(1px, -2px) skewX(3deg);
	}
	40% {
		clip-path: inset(0);
		transform: none;
	}
	100% {
		clip-path: inset(0);
		transform: none;
		opacity: 1;
	}
}

/* Slide up */
.sentio-pt__title--anim-slide-up.sentio-pt__title--anim-ready {
	animation: sentioPtSlideUp var(--sentio-pt-speed, 800ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
	animation-delay: var(--sentio-pt-delay, 0ms);
	opacity: 0;
}

@keyframes sentioPtSlideUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.sentio-pt__bg-text {
		font-size: 60px;
	}
}

