/**
 * VIBES services page styles.
 */

.vibes-svc-hero {
	position: relative;
	min-height: clamp(320px, 52vh, 520px);
	display: flex;
	align-items: center;
	background-image: var(--vibes-svc-hero-bg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.vibes-svc-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.62) 0%, rgba(65, 65, 65, 0.45) 100%);
}

.vibes-svc-hero__inner {
	position: relative;
	z-index: 1;
	padding: 5.5rem 0;
	text-align: center;
	color: var(--vibes-white);
}

.vibes-svc-hero__eyebrow {
	font-family: var(--vibes-font-script);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	color: var(--vibes-gold);
	margin: 0 0 0.5rem;
}

.vibes-svc-hero__title {
	font-family: var(--vibes-font-display);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 1rem;
}

.vibes-svc-hero__text {
	max-width: 42ch;
	margin: 0 auto 1.75rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.vibes-svc-nav {
	position: sticky;
	top: var(--vibes-header-height, 100px);
	z-index: 90;
	background: var(--vibes-white);
	border-bottom: 1px solid var(--vibes-gray-200);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.vibes-svc-nav__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--vibes-gray-200) transparent;
}

.vibes-svc-nav__scroll::-webkit-scrollbar {
	height: 4px;
}

.vibes-svc-nav__scroll::-webkit-scrollbar-thumb {
	background: var(--vibes-gray-200);
	border-radius: 2px;
}

.vibes-svc-nav.has-scroll-left .vibes-svc-nav__scroll {
	mask-image: linear-gradient(to right, transparent, #000 1.5rem);
}

.vibes-svc-nav.has-scroll-right .vibes-svc-nav__scroll {
	mask-image: linear-gradient(to left, transparent, #000 1.5rem);
}

.vibes-svc-nav.has-scroll-left.has-scroll-right .vibes-svc-nav__scroll {
	mask-image: linear-gradient(
		to right,
		transparent,
		#000 1.5rem,
		#000 calc(100% - 1.5rem),
		transparent
	);
}

.vibes-svc-nav__inner {
	display: flex;
	gap: 0.5rem 1.25rem;
	width: max-content;
	min-width: 100%;
	padding: 0.85rem max(4vw, calc((100vw - min(1140px, 92vw)) / 2));
	box-sizing: border-box;
}

.vibes-svc-nav__inner a {
	flex-shrink: 0;
	font-family: var(--vibes-font-ui);
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--vibes-dark);
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
	transition: color var(--vibes-transition), border-color var(--vibes-transition);
}

.vibes-svc-nav__inner a:hover,
.vibes-svc-nav__inner a.is-active {
	color: var(--vibes-gold);
	border-bottom-color: var(--vibes-gold);
}

.vibes-svc-body {
	background: var(--vibes-gray-100);
}

.vibes-svc-category {
	padding: 1.25rem 0;
	transition: padding 0.35s ease;
}

.vibes-svc-category.is-expanded {
	padding: 3.5rem 0;
}

.vibes-svc-category + .vibes-svc-category {
	border-top: 1px solid var(--vibes-gray-200);
}

.vibes-svc-category__header {
	margin: 0;
}

.vibes-svc-category__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
	transition: color var(--vibes-transition);
}

.vibes-svc-category__toggle:hover,
.vibes-svc-category__toggle:focus-visible {
	outline: none;
}

.vibes-svc-category__toggle:focus-visible .vibes-svc-category__title {
	color: var(--vibes-gold-dark);
}

.vibes-svc-category__toggle-text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	flex: 1;
	min-width: 0;
}

.vibes-svc-category__title {
	font-family: var(--vibes-font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 400;
	color: var(--vibes-dark);
	margin: 0;
	transition: color var(--vibes-transition);
}

.vibes-svc-category__toggle:hover .vibes-svc-category__title,
.vibes-svc-category.is-expanded .vibes-svc-category__title {
	color: var(--vibes-gold-dark);
}

.vibes-svc-category__count {
	font-family: var(--vibes-font-ui);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--vibes-gold-dark);
	margin: 0;
	white-space: nowrap;
}

.vibes-svc-category__chevron {
	flex-shrink: 0;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--vibes-gold);
	border-bottom: 2px solid var(--vibes-gold);
	transform: rotate(45deg);
	transition: transform 0.35s ease, border-color var(--vibes-transition);
}

.vibes-svc-category__toggle:hover .vibes-svc-category__chevron,
.vibes-svc-category.is-expanded .vibes-svc-category__chevron {
	border-color: var(--vibes-gold-dark);
}

.vibes-svc-category.is-expanded .vibes-svc-category__chevron {
	transform: rotate(-135deg);
}

.vibes-svc-category__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.4s ease;
}

.vibes-svc-category__panel[hidden] {
	display: none;
}

.vibes-svc-category.is-expanded .vibes-svc-category__panel {
	grid-template-rows: 1fr;
}

.vibes-svc-category__panel-inner {
	overflow: hidden;
	min-height: 0;
}

.vibes-svc-category.is-expanded .vibes-svc-category__panel-inner {
	padding-top: 2rem;
}

.vibes-svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 1.5rem;
}

.vibes-svc-card {
	display: flex;
	flex-direction: column;
	background: var(--vibes-white);
	border: 1px solid var(--vibes-gray-200);
	border-radius: var(--vibes-radius);
	box-shadow: var(--vibes-shadow);
	overflow: hidden;
	transition: transform var(--vibes-transition), box-shadow var(--vibes-transition);
}

.vibes-svc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.vibes-svc-card__content {
	flex: 1;
	padding: 1.5rem 1.5rem 1rem;
}

.vibes-svc-card__title {
	font-family: var(--vibes-font-display);
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--vibes-dark);
	margin: 0 0 0.75rem;
	line-height: 1.25;
}

.vibes-svc-card__desc {
	font-size: 0.925rem;
	line-height: 1.65;
	color: rgba(65, 65, 65, 0.88);
}

.vibes-svc-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem 1.5rem;
	border-top: 1px solid var(--vibes-gray-200);
	background: var(--vibes-gray-100);
}

.vibes-svc-card__price {
	font-family: var(--vibes-font-ui);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--vibes-gold-dark);
	margin: 0;
	white-space: nowrap;
}

.vibes-svc-card__book {
	padding: 0.7rem 1.35rem;
	font-size: 0.72rem;
	flex-shrink: 0;
}

.vibes-services .vibes-cta-band {
	background: var(--vibes-dark);
	color: var(--vibes-white);
	text-align: center;
	padding: 4rem 0;
}

.vibes-services .vibes-cta-band h2 {
	font-family: var(--vibes-font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 400;
	margin: 0 0 0.75rem;
}

.vibes-services .vibes-cta-band p {
	max-width: 46ch;
	margin: 0 auto 1.5rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.7;
}

@media (max-width: 767px) {
	.vibes-svc-category {
		padding: 1rem 0;
	}

	.vibes-svc-category.is-expanded {
		padding: 2.5rem 0;
	}

	.vibes-svc-category__toggle {
		min-height: 3.25rem;
		padding: 0.85rem 0;
	}

	.vibes-svc-category.is-expanded .vibes-svc-category__panel-inner {
		padding-top: 1.5rem;
	}

	.vibes-svc-card__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.vibes-svc-card__book {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vibes-svc-category,
	.vibes-svc-category__panel,
	.vibes-svc-category__chevron,
	.vibes-svc-category__title {
		transition: none;
	}
}
