/**
 * Engage Performance — front-end polish (header, cards, imagery, motion).
 */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Transformation: single-line headline (fluid type so it fits narrow viewports) */
.ep-transformation-section .ep-transformation-stack {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 52rem;
}

.ep-transformation-section .ep-transformation-head {
	width: 100%;
	max-width: 100%;
	margin-bottom: 0;
}

.ep-transformation-section .ep-transformation-title-primary,
.ep-transformation-section h2.ep-transformation-title-primary {
	display: block;
	margin: 0 !important;
	font-size: clamp(1.6rem, 3.5vw, 2.45rem) !important;
	line-height: 1.2 !important;
	font-weight: 800 !important;
	letter-spacing: -0.035em !important;
	max-width: 100%;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
	color: var(--wp--preset--color--contrast);
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.ep-transformation-section h2.ep-transformation-title-primary .ep-transformation-title-em {
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	letter-spacing: -0.03em;
}

/* Legacy: old two-block pattern still in page content */
.ep-transformation-section .ep-transformation-tagline,
.ep-transformation-section p.ep-transformation-tagline {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(0.78rem, 1.8vw, 0.95rem) !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.4 !important;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	max-width: 100%;
	word-break: normal;
	white-space: normal;
}

.ep-transformation-section .ep-transformation-lede {
	line-height: 1.65;
	max-width: 100%;
}

.ep-transformation-section .ep-transformation-flow {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--60);
	background: linear-gradient(165deg, rgba(22, 30, 44, 0.75) 0%, rgba(12, 16, 24, 0.5) 100%);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ep-transformation-section .ep-transformation-step {
	border-left: 3px solid var(--wp--preset--color--primary);
	padding-left: clamp(1rem, 4vw, 1.5rem);
	margin: 0;
}

.ep-transformation-section .ep-transformation-step .wp-block-heading {
	line-height: 1.3;
}

.ep-transformation-section .ep-transformation-step-num {
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	margin-right: 0.35em;
}

.ep-transformation-section .ep-transformation-media {
	margin-top: 0;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.ep-transformation-section .ep-transformation-image img,
.ep-transformation-section figure.ep-transformation-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

/* Illustrative before/after pattern (Transformations page) */
.ep-transformation-ba figure.ep-ba-image img,
.ep-transformation-ba .wp-block-image.ep-ba-image img {
	width: 100%;
	max-height: min(72vh, 540px);
	object-fit: cover;
	object-position: center 15%;
}

.ep-transformation-ba .wp-block-columns {
	align-items: flex-start;
}

/* Header: grid — logo column auto-sized so nav never squeezes the mark */
.ep-header .ep-header-inner {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: clamp(1rem, 3vw, 2rem);
	row-gap: var(--wp--preset--spacing--40);
	width: 100%;
}

.ep-header .wp-block-site-logo.ep-site-logo {
	flex-shrink: 0;
	max-width: min(88vw, 420px);
	justify-self: start;
}

/* WP often prints inline width/height on the logo img — reset so CSS caps apply */
.ep-header .wp-block-site-logo.ep-site-logo img.custom-logo,
.ep-header .wp-block-site-logo.ep-site-logo img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: clamp(56px, 14vw, 92px) !important;
	object-fit: contain;
	object-position: left center;
	vertical-align: middle;
}

.ep-header .ep-header-actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	column-gap: clamp(0.85rem, 2.2vw, 1.35rem);
	min-width: 0;
	justify-self: end;
}

/* Primary nav (static HTML — avoids WP auto page-list / bloated menus in core Navigation) */
.ep-nav-shell {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	min-width: 0;
}

.ep-nav-input {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 0;
	opacity: 0;
	margin: 0;
	padding: 0;
	border: 0;
	pointer-events: none;
	appearance: none;
}

.ep-nav-drawer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	min-width: 0;
}

.ep-nav-burger {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.55rem;
	border-radius: 10px;
	border: 1px solid rgba(139, 156, 179, 0.28);
	background: rgba(14, 18, 26, 0.95);
	color: var(--wp--preset--color--contrast, #f4f6f8);
	cursor: pointer;
	box-sizing: border-box;
}

.ep-nav-burger:hover {
	border-color: rgba(255, 77, 106, 0.45);
	background: rgba(18, 24, 34, 0.95);
}

.ep-nav-burger__lines {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
	box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.ep-nav-scrim {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.ep-nav-input:checked ~ .ep-nav-scrim {
	display: block;
}

.ep-primary-nav {
	font-size: 0.875rem;
	font-weight: 600;
}

.ep-primary-nav__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.35rem, 1.2vw, 0.85rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-primary-nav__item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-primary-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.45rem;
	border-radius: 8px;
	color: var(--wp--preset--color--contrast, #f4f6f8);
	text-decoration: none;
	white-space: nowrap;
}

.ep-primary-nav__link:hover {
	color: var(--wp--preset--color--primary, #ff4d6a);
}

/* Services dropdown (details) */
.ep-nav-services {
	position: relative;
}

.ep-nav-services__summary {
	list-style: none;
	cursor: pointer;
	padding: 0.35rem 0.55rem;
	border-radius: 8px;
	color: var(--wp--preset--color--contrast, #f4f6f8);
	font-weight: 600;
	white-space: nowrap;
}

.ep-nav-services__summary::-webkit-details-marker {
	display: none;
}

.ep-nav-services__summary::after {
	content: "";
	display: inline-block;
	width: 0.35em;
	height: 0.35em;
	margin-left: 0.35em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-0.1em);
	opacity: 0.75;
	vertical-align: middle;
}

.ep-nav-services__list {
	list-style: none;
	margin: 0;
	padding: 0.4rem 0;
	min-width: 13.5rem;
	background: rgba(14, 18, 28, 0.98);
	border: 1px solid rgba(139, 156, 179, 0.22);
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.ep-nav-services__list li {
	margin: 0;
	padding: 0;
}

.ep-nav-services__list a {
	display: block;
	padding: 0.45rem 1rem;
	color: var(--wp--preset--color--contrast, #f4f6f8);
	text-decoration: none;
	font-weight: 500;
}

.ep-nav-services__list a:hover {
	color: var(--wp--preset--color--primary, #ff4d6a);
}

@media (min-width: 783px) {
	.ep-header .ep-header-actions {
		min-width: max-content;
	}

	.ep-nav-services[open] .ep-nav-services__list {
		position: absolute;
		top: calc(100% + 0.35rem);
		left: 0;
		z-index: 100003;
	}

	.ep-nav-burger,
	.ep-nav-scrim {
		display: none !important;
	}

	.ep-nav-drawer {
		display: contents;
	}

	.ep-primary-nav {
		display: block;
	}
}

@media (max-width: 782px) {
	.ep-nav-burger {
		display: inline-flex;
	}

	.ep-primary-nav {
		display: none;
		position: fixed;
		top: 0;
		right: 0;
		width: min(19rem, 88vw);
		height: 100vh;
		height: 100dvh;
		padding: calc(4.5rem + env(safe-area-inset-top, 0)) 1rem 1.5rem;
		margin: 0;
		overflow-y: auto;
		background: rgba(10, 13, 18, 0.98);
		border-left: 1px solid rgba(139, 156, 179, 0.2);
		box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
		z-index: 100002;
	}

	.ep-nav-input:checked ~ .ep-nav-drawer .ep-primary-nav {
		display: block;
	}

	.ep-primary-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.ep-primary-nav__link {
		padding: 0.65rem 0.5rem;
		white-space: normal;
	}

	.ep-nav-services__summary {
		padding: 0.65rem 0.5rem;
	}

	.ep-nav-services__list {
		position: static;
		min-width: 0;
		margin-top: 0.35rem;
		margin-bottom: 0.5rem;
		border-radius: 8px;
		box-shadow: none;
	}

	.ep-nav-services[open] .ep-nav-services__list {
		position: static;
	}
}

.ep-header .ep-header-actions .wp-block-buttons {
	flex-shrink: 0;
	margin: 0;
}

.ep-header .ep-header-actions .wp-block-button__link {
	white-space: nowrap;
	padding: 0.5rem 1rem !important;
	font-size: 0.8125rem !important;
}

/* Logo (header overrides above — keep defaults modest for footer / in-content logos) */
.wp-block-site-logo.ep-site-logo img,
.wp-block-site-logo img.custom-logo,
.custom-logo {
	height: auto;
	max-height: 42px;
	width: auto;
	max-width: min(240px, 56vw);
	vertical-align: middle;
	object-fit: contain;
	object-position: left center;
}

/* Sticky, glass-style header */
.ep-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(1.15) blur(14px);
	-webkit-backdrop-filter: saturate(1.15) blur(14px);
	background-color: rgba(10, 13, 18, 0.88) !important;
	border-bottom: 1px solid rgba(139, 156, 179, 0.18) !important;
}

/* Hero readability */
.ep-hero-inner .wp-block-heading,
.ep-hero-inner p {
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65);
}

.ep-hero-inner .wp-block-heading {
	letter-spacing: -0.02em;
}

/* Service / content cards */
.ep-card {
	background: linear-gradient(160deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 20, 25, 0.65) 100%);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
	height: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ep-card:hover {
	border-color: rgba(255, 77, 106, 0.25);
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
	transform: translateY(-2px);
}

/* Full-bleed cover imagery */
.wp-block-cover.alignfull .wp-block-cover__image-background {
	object-position: center 28%;
}

/* Featured / pattern images */
.wp-block-post-featured-image img,
.wp-block-image img {
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.wp-block-button__link {
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(255, 77, 106, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	box-shadow: 0 8px 24px rgba(244, 246, 248, 0.08);
}

/* Testimonial / quote blocks */
.ep-quote-card {
	border-radius: 14px !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Blog grid cards */
.wp-block-query .wp-block-post-template > li,
.wp-block-query .wp-block-post-template.is-flex-container > li {
	transition: opacity 0.2s ease;
}

.wp-block-query .wp-block-post-template > li:hover,
.wp-block-query .wp-block-post-template.is-flex-container > li:hover {
	opacity: 0.94;
}

/* Nutrition CTA inner panel */
.wp-block-group.has-base-background-color.has-background {
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Page & single: readable, styled article body */
main.ep-main .wp-block-group .wp-block-post-title,
.ep-main .wp-block-post-title {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid rgba(139, 156, 179, 0.22);
	position: relative;
}

main.ep-main .wp-block-group .wp-block-post-title::after,
.ep-main .wp-block-post-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 4rem;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
}

.ep-main .entry-content,
.ep-main .wp-block-post-content {
	font-size: 1.05rem;
	line-height: 1.68;
}

.ep-main .wp-block-post-content > .wp-block-heading,
.ep-main .wp-block-post-content h2 {
	margin-top: 2.25rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid rgba(139, 156, 179, 0.15);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.ep-main .wp-block-post-content > .wp-block-heading:first-child,
.ep-main .wp-block-post-content h2:first-child {
	margin-top: 0;
}

.ep-main .wp-block-post-content .wp-block-list,
.ep-main .wp-block-post-content ul,
.ep-main .wp-block-post-content ol {
	margin-top: 0.5rem;
	margin-bottom: 1.25rem;
	padding-left: 1.2rem;
}

.ep-main .wp-block-post-content .wp-block-list li,
.ep-main .wp-block-post-content li {
	margin-bottom: 0.4rem;
}

.ep-main .wp-block-post-content .wp-block-quote,
.ep-main .wp-block-post-content blockquote {
	border-radius: 10px;
}

.ep-main .wp-block-post-content .has-large-font-size {
	line-height: 1.55;
}

/* Booking page: fallback when scheduling plugin output is empty */
.ep-booking-fallback {
	margin-top: var(--wp--preset--spacing--70, 3rem);
	padding: var(--wp--preset--spacing--50, 1.5rem);
	border-radius: 12px;
	border: 1px solid rgba(139, 156, 179, 0.22);
	background: rgba(14, 18, 28, 0.55);
}

.ep-booking-fallback__intro {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--wp--preset--color--subtle, #8b9cb3);
}

.ep-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.ep-cal-head {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
	color: var(--wp--preset--color--subtle, #8b9cb3);
	padding: 0.35rem 0;
}

.ep-cal-slot {
	font-size: 0.75rem;
	text-align: center;
	padding: 0.45rem 0.2rem;
	border-radius: 8px;
	border: 1px solid rgba(139, 156, 179, 0.2);
	background: rgba(10, 13, 18, 0.65);
	color: var(--wp--preset--color--contrast, #f4f6f8);
}

.ep-cal-slot--muted {
	opacity: 0.45;
	font-size: 0.65rem;
}

.ep-booking-fallback__note {
	margin: 1.25rem 0 0;
	font-size: 0.9rem;
	text-align: center;
}

.ep-booking-fallback__note a {
	font-weight: 600;
	color: var(--wp--preset--color--accent, #2dd4bf);
}
