/* ═══════════════════════════════════════════════════════════
   THE BODY SHAPE — Holographic Design System v2
   ═══════════════════════════════════════════════════════════ */

:root {
	--holo-teal: #2E7D78;
	--holo-teal-glow: rgba(46, 125, 120, 0.45);
	--holo-gold: #D1B98A;
	--holo-cyan: #5BC8FF;
	--holo-purple: #9B7EDE;
	--holo-gradient: linear-gradient(135deg, #2E7D78 0%, #5BC8FF 35%, #D1B98A 65%, #9B7EDE 100%);
	--holo-gradient-soft: linear-gradient(135deg, rgba(46,125,120,.12) 0%, rgba(91,200,255,.08) 50%, rgba(209,185,138,.12) 100%);
	--holo-glass: rgba(255, 255, 255, 0.55);
	--holo-glass-border: rgba(255, 255, 255, 0.75);
	--holo-shadow: 0 8px 32px rgba(46, 125, 120, 0.12), 0 0 0 1px rgba(255,255,255,.5) inset;
	--holo-shadow-lg: 0 24px 80px rgba(46, 125, 120, 0.18), 0 0 60px rgba(91, 200, 255, 0.08);
}

/* ── Ambient holographic background ── */
.tbs-holo-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.tbs-holo-bg__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
	will-change: transform;
}
.tbs-holo-bg__orb--1 {
	width: 500px; height: 500px;
	background: radial-gradient(circle, var(--holo-teal-glow), transparent 70%);
	top: -10%; right: -5%;
	animation: holoDrift1 18s ease-in-out infinite;
}
.tbs-holo-bg__orb--2 {
	width: 400px; height: 400px;
	background: radial-gradient(circle, rgba(209,185,138,.35), transparent 70%);
	bottom: 10%; left: -8%;
	animation: holoDrift2 22s ease-in-out infinite;
}
.tbs-holo-bg__orb--3 {
	width: 300px; height: 300px;
	background: radial-gradient(circle, rgba(91,200,255,.25), transparent 70%);
	top: 40%; left: 30%;
	animation: holoDrift3 15s ease-in-out infinite;
}
.tbs-holo-bg__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(46,125,120,.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(46,125,120,.03) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}
.tbs-holo-bg__shimmer {
	position: absolute;
	inset: -50%;
	background: conic-gradient(from 0deg, transparent, rgba(91,200,255,.06), transparent, rgba(209,185,138,.06), transparent);
	animation: holoSpin 30s linear infinite;
}
@keyframes holoDrift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,40px) scale(1.1)} }
@keyframes holoDrift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px) scale(1.05)} }
@keyframes holoDrift3 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(20px,20px)} 66%{transform:translate(-20px,10px)} }
@keyframes holoSpin { to { transform: rotate(360deg); } }

/* ── Holographic glass card ── */
.tbs-holo-card {
	position: relative;
	background: var(--holo-glass);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid var(--holo-glass-border);
	border-radius: 20px;
	box-shadow: var(--holo-shadow);
	overflow: hidden;
	transition: transform 0.5s cubic-bezier(.23,1,.32,1), box-shadow 0.5s ease;
}
.tbs-holo-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--holo-gradient-soft);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
.tbs-holo-card::after {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 60%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
	pointer-events: none;
}
.tbs-holo-card:hover {
	transform: translateY(-8px) scale(1.01);
	box-shadow: var(--holo-shadow-lg);
}
.tbs-holo-card:hover::before { opacity: 1; }
.tbs-holo-card:hover::after { left: 150%; }

/* ── Holographic border glow ── */
.tbs-holo-border {
	position: relative;
	border-radius: 22px;
	padding: 2px;
	background: var(--holo-gradient);
	background-size: 200% 200%;
	animation: holoBorderShift 6s ease infinite;
}
.tbs-holo-border__inner {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
}
@keyframes holoBorderShift {
	0%,100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* ── Parallax layers ── */
[data-parallax] { will-change: transform; }
[data-parallax-speed="0.2"] { --ps: 0.2; }
[data-parallax-speed="0.4"] { --ps: 0.4; }
[data-parallax-speed="0.6"] { --ps: 0.6; }

/* ── Scroll reveal — controlled by .tbs-motion in pages.css ── */
[data-reveal].is-revealed,
[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed,
[data-reveal="scale"].is-revealed {
	opacity: 1;
	transform: none;
}
[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed,
[data-reveal="scale"].is-revealed { transform: none; }

/* ── Stagger children — revealed state ── */
[data-stagger].is-revealed > * {
	opacity: 1;
	transform: none;
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.23,1,.32,1);
}
[data-stagger].is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.15s; }
[data-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.2s; }
[data-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.25s; }
[data-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.3s; }

/* ── Hero v2 holographic ── */
.tbs-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 100px 0 120px;
	background: linear-gradient(160deg, #faf8f5 0%, #f0f7f6 40%, #fff 100%);
	overflow: hidden;
}
.tbs-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1.15fr 210px;
	gap: 40px;
	align-items: center;
	position: relative;
	z-index: 2;
}
.tbs-hero__title {
	font-size: clamp(36px, 4.8vw, 56px);
	line-height: 1.12;
}
.tbs-hero__visual-wrap { position: relative; }
.tbs-hero__image-frame {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--holo-shadow-lg);
}
.tbs-hero__image-frame::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 24px;
	padding: 3px;
	background: var(--holo-gradient);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	z-index: 2;
	pointer-events: none;
}
.tbs-hero__image {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4/5;
	object-fit: cover;
}
.tbs-hero__ring {
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(46,125,120,.15);
	pointer-events: none;
}
.tbs-hero__ring--1 {
	width: 110%; height: 110%;
	top: -5%; left: -5%;
	animation: holoPulse 4s ease-in-out infinite;
}
.tbs-hero__ring--2 {
	width: 125%; height: 125%;
	top: -12.5%; left: -12.5%;
	border-color: rgba(209,185,138,.2);
	animation: holoPulse 4s ease-in-out infinite 1s;
}
@keyframes holoPulse {
	0%,100% { transform: scale(1); opacity: 0.6; }
	50% { transform: scale(1.03); opacity: 1; }
}
.tbs-hero__float-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--holo-glass);
	backdrop-filter: blur(20px);
	border: 1px solid var(--holo-glass-border);
	border-radius: 16px;
	box-shadow: var(--holo-shadow);
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 12px;
}
.tbs-hero__float-icon {
	width: 40px; height: 40px;
	border-radius: 12px;
	background: var(--holo-gradient-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--holo-teal);
	flex-shrink: 0;
}

/* ── Stats holographic bar ── */
.tbs-stats {
	margin-top: -70px;
	padding: 0 0 60px;
	background: transparent;
	position: relative;
	z-index: 10;
}
.tbs-stats .tbs-container {
	background: var(--holo-glass);
	backdrop-filter: blur(30px) saturate(180%);
	border: 1px solid var(--holo-glass-border);
	border-radius: 24px;
	padding: 36px 28px;
	box-shadow: var(--holo-shadow-lg);
}

/* ── Service cards with images ── */
.tbs-service-card-v2 {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--holo-shadow);
	transition: transform 0.5s cubic-bezier(.23,1,.32,1), box-shadow 0.5s ease;
}
.tbs-service-card-v2:hover {
	transform: translateY(-10px);
	box-shadow: var(--holo-shadow-lg);
}
.tbs-service-card-v2__img {
	height: 200px;
	overflow: hidden;
	position: relative;
}
.tbs-service-card-v2__img img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.tbs-service-card-v2:hover .tbs-service-card-v2__img img {
	transform: scale(1.08);
}
.tbs-service-card-v2__img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.4), transparent 50%);
}
.tbs-service-card-v2__body { padding: 28px; }
.tbs-service-card-v2__icon {
	position: absolute;
	top: 160px; right: 20px;
	width: 48px; height: 48px;
	background: var(--holo-gradient);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 4px 16px rgba(46,125,120,.3);
	z-index: 2;
}

/* ── Image showcase grid (inner pages) ── */
.tbs-img-showcase {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 48px 0;
}
.tbs-img-showcase__item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/3;
	box-shadow: var(--holo-shadow);
}
.tbs-img-showcase__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.5s ease;
}
.tbs-img-showcase__item:hover img { transform: scale(1.06); }
.tbs-img-showcase__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--holo-gradient);
	opacity: 0;
	mix-blend-mode: overlay;
	transition: opacity 0.4s ease;
}
.tbs-img-showcase__item:hover::after { opacity: 0.25; }
.tbs-img-showcase__item--wide { grid-column: span 2; }
.tbs-img-showcase__item--tall { grid-row: span 2; aspect-ratio: auto; }

/* ── Parallax image banner (page heroes) ── */
.tbs-page-hero-v2 {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	padding: 0 0 60px;
	overflow: hidden;
}
.tbs-page-hero-v2__bg {
	position: absolute;
	inset: -20% 0 0;
	z-index: 0;
}
.tbs-page-hero-v2__bg img {
	width: 100%; height: 120%;
	object-fit: cover;
}
.tbs-page-hero-v2__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(17,17,17,.85) 0%, rgba(17,17,17,.4) 50%, rgba(46,125,120,.2) 100%);
	z-index: 1;
}
.tbs-page-hero-v2 .tbs-container {
	position: relative;
	z-index: 2;
	color: #fff;
}
.tbs-page-hero-v2 .tbs-page-hero__title { color: #fff; }
.tbs-page-hero-v2 .tbs-label { color: var(--holo-gold); }
.tbs-page-hero-v2 .tbs-breadcrumbs a,
.tbs-page-hero-v2 .tbs-breadcrumbs li { color: rgba(255,255,255,.7); }

/* ── Marquee ticker ── */
.tbs-marquee {
	overflow: hidden;
	padding: 20px 0;
	background: var(--holo-gradient);
	margin: 0;
}
.tbs-marquee__track {
	display: flex;
	gap: 48px;
	animation: marquee 30s linear infinite;
	white-space: nowrap;
}
.tbs-marquee__track span {
	font-family: var(--tbs-font-btn);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.9;
}
@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ── Floating particles (CSS) ── */
.tbs-particles {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}
.tbs-particle {
	position: absolute;
	width: 6px; height: 6px;
	background: var(--holo-teal);
	border-radius: 50%;
	opacity: 0.3;
	animation: particleFloat 8s ease-in-out infinite;
}
.tbs-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.tbs-particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; background: var(--holo-gold); }
.tbs-particle:nth-child(3) { top: 40%; left: 50%; animation-delay: 4s; background: var(--holo-cyan); }
.tbs-particle:nth-child(4) { top: 80%; left: 30%; animation-delay: 1s; }
.tbs-particle:nth-child(5) { top: 15%; left: 70%; animation-delay: 3s; }
@keyframes particleFloat {
	0%,100% { transform: translateY(0) scale(1); opacity: 0.3; }
	50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* ── Section with side image parallax ── */
.tbs-split-parallax {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.tbs-split-parallax__img {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--holo-shadow-lg);
	position: relative;
}
.tbs-split-parallax__img img {
	width: 100%;
	display: block;
	border-radius: 24px;
}

/* ── Treatment card with image header ── */
.tbs-treatment-card-v2 {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 0;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--holo-shadow);
	margin-bottom: 32px;
	border: 1px solid rgba(46,125,120,.08);
}
.tbs-treatment-card-v2__img { overflow: hidden; }
.tbs-treatment-card-v2__img img {
	width: 100%; height: 100%;
	min-height: 280px;
	object-fit: cover;
}
.tbs-treatment-card-v2__body { padding: 36px; }

/* ── CTA holographic banner ── */
.tbs-cta-holo {
	position: relative;
	padding: 64px;
	border-radius: 28px;
	overflow: hidden;
	background: var(--holo-gradient);
	background-size: 200% 200%;
	animation: holoBorderShift 8s ease infinite;
	color: #fff;
	text-align: center;
}
.tbs-cta-holo::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none' stroke='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
	opacity: 0.5;
}
.tbs-cta-holo > * { position: relative; z-index: 1; }

/* ── Cursor glow (desktop) ── */
.tbs-cursor-glow {
	position: fixed;
	width: 400px; height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(91,200,255,.08), transparent 70%);
	pointer-events: none;
	z-index: 9998;
	transform: translate(-50%, -50%);
	transition: opacity 0.3s ease;
	opacity: 0;
}
body.tbs-desktop .tbs-cursor-glow { opacity: 1; }

.tbs-services__grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tbs-gallery-grid-holo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; auto-rows: 200px; }
.tbs-gallery-grid-holo .tbs-gallery-item { margin: 0; border-radius: 16px; overflow: hidden; position: relative; }
.tbs-gallery-grid-holo .tbs-gallery-item--wide { grid-column: span 2; grid-row: span 2; }
.tbs-gallery-grid-holo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.tbs-gallery-grid-holo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 12px; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 1024px) {
	.tbs-hero__inner { grid-template-columns: 1fr 1fr; }
	.tbs-hero__features { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.tbs-img-showcase { grid-template-columns: repeat(2, 1fr); }
	.tbs-treatment-card-v2 { grid-template-columns: 1fr; }
	.tbs-split-parallax { grid-template-columns: 1fr; }
	.tbs-services__grid-v2 { grid-template-columns: repeat(2, 1fr); }
	.tbs-gallery-grid-holo { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.tbs-hero { min-height: auto; padding: 80px 0 100px; }
	.tbs-hero__inner { grid-template-columns: 1fr; }
	.tbs-hero__features { grid-template-columns: 1fr; }
	.tbs-img-showcase { grid-template-columns: 1fr; }
	.tbs-img-showcase__item--wide { grid-column: span 1; }
	.tbs-services__grid-v2, .tbs-gallery-grid-holo { grid-template-columns: 1fr; }
	.tbs-gallery-grid-holo .tbs-gallery-item--wide { grid-column: span 1; grid-row: span 1; }
}
