/*
 * P.E.R. light brand balance.
 *
 * Visual target: white and orange carry the experience; green is a focused
 * wellness accent; near-black is reserved for readable type, controls and a
 * handful of high-emphasis details. This layer deliberately loads last so
 * Elementor starter documents and legacy PHP templates share one palette.
 */
:root {
	--per-white: #ffffff;
	--per-warm-white: #fffaf5;
	--per-orange-soft: #fff0e3;
	--per-orange: #f07a18;
	--per-orange-deep: #a94700;
	--per-green: #4a7c2e;
	--per-green-dark: #365c22;
	--per-ink: #1a1a1a;
	--per-copy: #3f463f;
	--per-muted: #626962;
	--per-line: #eadfd4;
	--o: var(--per-orange);
	--g: var(--per-green);
	--b: var(--per-ink);
	--d: var(--per-copy);
	--p: var(--per-warm-white);
}

body,
.inner-page,
.content-shell,
.per-article-shell,
.woocommerce-page {
	background: var(--per-white);
	color: var(--per-copy);
}

:where(h1, h2, h3, h4, h5, h6, strong, b) {
	color: var(--per-ink);
}

.per-el-display em,
.per-el-section-title em,
.hero h1 em,
.intro h2 em,
.section-heading h2 em,
.proof h2 em,
.method h2 em,
.membership h2 em,
.program-hero h1 em,
.program-intro h2 em,
.weekly-rhythm h2 em,
.program-proof blockquote em,
.program-cta h2 em,
.roundel span,
.steps li > span {
	color: var(--per-orange-deep) !important;
}

.per-palette-orange :where(em, .elementor-heading-title, .elementor-widget-text-editor),
.membership :where(em, h2, h3, p),
.program-cta :where(em, h2, h3, p) {
	color: var(--per-ink) !important;
}

.membership .membership__copy h2 em,
.program-cta .program-cta__copy h2 em,
.per-palette-orange .per-el-section-title .elementor-heading-title em {
	color: var(--per-ink) !important;
}

.lead,
.per-el-lead,
.per-el-legal-copy p,
.per-el-legal-copy li,
.per-article__content,
.per-post-card p,
.per-dynamic-card p,
.per-product-card p {
	color: var(--per-copy) !important;
}

/* Header: an airy white surface with orange interaction cues. */
.site-header,
.site-header.is-sticky,
body.per-member-experience .site-header:not(.is-sticky),
.single-post .site-header:not(.is-sticky),
.single-per_resource .site-header,
.single-per_resource .site-header.is-sticky {
	background: rgba(255, 255, 255, .97) !important;
	border-color: rgba(240, 122, 24, .2) !important;
	color: var(--per-ink) !important;
	box-shadow: 0 10px 34px rgba(169, 71, 0, .08);
}

.site-header :where(.main-nav a, .icon-button, .menu-button),
.single-post .site-header :where(.main-nav a, .icon-button, .menu-button),
.single-per_resource .site-header :where(.main-nav a, .icon-button, .menu-button) {
	color: var(--per-ink) !important;
}

.site-header .menu-button span,
.single-post .site-header .menu-button span,
.single-per_resource .site-header .menu-button span {
	background: var(--per-ink) !important;
}

.site-header .brand img,
.single-post .site-header .brand img,
.single-per_resource .site-header .brand img {
	filter: none !important;
}

.site-header .sub-menu,
.main-nav .sub-menu {
	background: var(--per-white) !important;
	border: 1px solid var(--per-line) !important;
	box-shadow: 0 22px 55px rgba(169, 71, 0, .12) !important;
}

.site-header .sub-menu a,
.main-nav .sub-menu a {
	color: var(--per-ink) !important;
}

/* Heroes: remove large black fields while retaining a strong editorial shape. */
.per-el-hero,
.inner-hero,
.hero,
.program-hero {
	background:
		radial-gradient(circle at 88% 30%, rgba(240, 122, 24, .28) 0 16%, transparent 16.5%),
		linear-gradient(128deg, var(--per-white) 0 56%, var(--per-orange-soft) 56% 100%) !important;
	color: var(--per-ink) !important;
}

.hero__shade,
.program-hero__shade {
	background:
		linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 250, 245, .92) 38%, rgba(255, 255, 255, .18) 72%),
		linear-gradient(0deg, rgba(240, 122, 24, .16), transparent 48%) !important;
}

.hero :where(h1, p, .eyebrow, .text-link, .scroll-cue),
.program-hero :where(h1, p, .eyebrow),
.inner-hero :where(h1, p, .eyebrow),
.per-el-hero :where(.elementor-heading-title, .elementor-widget-text-editor) {
	color: var(--per-ink) !important;
}

.hero__content > p,
.program-hero__copy > p:not(.eyebrow),
.inner-hero > p:last-child,
.inner-hero__copy > p:last-child {
	color: var(--per-copy) !important;
}

.play,
.scroll-cue i {
	border-color: rgba(26, 26, 26, .34) !important;
}

.hero-figure,
.per-el-hero-image img {
	filter: drop-shadow(0 28px 34px rgba(169, 71, 0, .22)) !important;
}

.avatar-stack span:first-child {
	color: var(--per-white) !important;
}

.avatar-stack span:nth-child(2),
.avatar-stack span:nth-child(3) {
	color: var(--per-ink) !important;
}

/* Convert the previous dark feature bands to warm white/orange surfaces. */
.per-palette-dark,
.per-el-method,
.method,
.service-process,
.weekly-rhythm,
.weekly-rhythm__visual,
.contact-form,
.per-card-dark,
.dark-card,
.pricing-card--dark,
.post-card__image,
.per-article__visual,
.single-per_resource .per-elementor-main > .per-access-gate {
	background: var(--per-warm-white) !important;
	color: var(--per-ink) !important;
}

.per-el-method {
	border-block: 1px solid var(--per-line);
}

.per-el-method-media,
.method__visual {
	background: var(--per-orange-soft) !important;
}

.per-el-method-copy :where(.elementor-heading-title, .elementor-icon-box-title, .elementor-icon-box-title a),
.method :where(h2, h3),
.service-process :where(h2, h3),
.weekly-rhythm :where(h2, h3),
.contact-form :where(h2, h3, label),
.pricing-card--dark :where(h2, h3) {
	color: var(--per-ink) !important;
}

.per-el-method-copy :where(.elementor-widget-text-editor, .elementor-icon-box-description),
.method__content > p,
.steps p,
.service-process p,
.weekly-rhythm__copy > p:not(.kicker),
.weekly-rhythm li span,
.contact-form p {
	color: var(--per-copy) !important;
}

.per-el-method-step,
.steps li,
.weekly-rhythm li {
	border-color: var(--per-line) !important;
}

.process-grid {
	background: var(--per-line) !important;
}

.process-grid article {
	background: var(--per-white) !important;
}

.calendar {
	background: rgba(255, 255, 255, .88) !important;
	border-color: var(--per-line) !important;
}

.calendar__head,
.calendar__days {
	color: var(--per-copy) !important;
}

.contact-form {
	border: 1px solid rgba(240, 122, 24, .35);
	box-shadow: 0 22px 60px rgba(169, 71, 0, .09);
}

.contact-form :where(input, select, textarea) {
	background: var(--per-white) !important;
	border-color: #d9cabb !important;
	color: var(--per-ink) !important;
}

/* Orange and white do the heavy lifting; green is a small, meaningful cue. */
.per-palette-orange,
.membership,
.program-cta,
.ticker {
	background: var(--per-orange) !important;
	color: var(--per-ink) !important;
}

.per-palette-green,
.testimonial,
.program-proof__side {
	background: var(--per-white) !important;
	border-top: 8px solid var(--per-green);
	color: var(--per-ink) !important;
}

.per-palette-green :where(.elementor-heading-title, .elementor-widget-text-editor),
.testimonial :where(blockquote, strong, small),
.program-proof__side :where(p, span) {
	color: var(--per-ink) !important;
}

.per-el-quote-person,
.per-el-quote-person strong {
	color: var(--per-green-dark) !important;
}

.per-el-card.per-card-green,
.per-card-green,
.green-card,
.per-classes-grid .per-dynamic-card.per-card-green {
	background: var(--per-white) !important;
	border: 2px solid var(--per-green) !important;
	color: var(--per-ink) !important;
}

.orange-card,
.orange-card :where(span, h2, h3, p, a),
.per-card-orange,
.per-card-orange :where(span, h2, h3, p, a) {
	color: var(--per-ink) !important;
}

.per-el-card.per-card-dark,
.per-card-dark,
.dark-card,
.per-el-grid > .e-con-inner > .per-el-card:nth-child(4) {
	background: var(--per-orange-soft) !important;
	border: 2px solid var(--per-orange) !important;
	color: var(--per-ink) !important;
}

.per-el-card.per-card-green :where(.elementor-heading-title, .elementor-icon-box-title, .elementor-icon-box-title a, .elementor-icon-box-description),
.per-el-card.per-card-dark :where(.elementor-heading-title, .elementor-icon-box-title, .elementor-icon-box-title a, .elementor-icon-box-description),
.per-el-grid > .e-con-inner > .per-el-card:nth-child(4) :where(.elementor-heading-title, .elementor-icon-box-title, .elementor-icon-box-title a, .elementor-icon-box-description) {
	color: var(--per-ink) !important;
}

.per-el-card.per-card-green :where(.elementor-icon, .elementor-icon i, .elementor-icon svg) {
	color: var(--per-green-dark) !important;
	fill: currentColor !important;
}

.per-el-card.per-card-dark :where(.elementor-icon, .elementor-icon i, .elementor-icon svg),
.per-el-grid > .e-con-inner > .per-el-card:nth-child(4) :where(.elementor-icon, .elementor-icon i, .elementor-icon svg) {
	color: var(--per-orange-deep) !important;
	fill: currentColor !important;
}

/* Pro is intentionally prominent, but its action must still look like a button. */
.per-pricing-card.is-featured,
.per-plan-card.is-featured {
	background: var(--per-orange) !important;
	border-color: var(--per-orange) !important;
	color: var(--per-ink) !important;
}

.per-pricing-card.is-featured .button,
.per-plan-card.is-featured .per-access-button {
	background: var(--per-white) !important;
	border: 2px solid var(--per-ink) !important;
	color: var(--per-ink) !important;
	box-shadow: 0 12px 28px rgba(26, 26, 26, .12) !important;
}

.per-pricing-card.is-featured .button:hover,
.per-pricing-card.is-featured .button:focus-visible,
.per-plan-card.is-featured .per-access-button:hover,
.per-plan-card.is-featured .per-access-button:focus-visible {
	background: var(--per-ink) !important;
	color: var(--per-white) !important;
}

/* Content-rich service pages. */
.per-el-service-details > .e-con-inner,
.per-el-service-fit > .e-con-inner {
	display: grid !important;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
	align-items: start;
	gap: clamp(34px, 7vw, 96px) !important;
}

.per-el-service-details .per-el-service-copy,
.per-el-service-fit .per-el-service-copy {
	display: grid;
	gap: 18px;
}

.per-el-service-details .per-el-service-copy .elementor-widget-text-editor,
.per-el-service-fit .per-el-service-copy .elementor-widget-text-editor {
	font-size: 15px;
	line-height: 1.85;
}

.per-el-service-points {
	display: grid;
	gap: 12px;
}

.per-el-service-points .elementor-widget-text-editor {
	padding: 18px 20px;
	border-left: 4px solid var(--per-orange);
	border-radius: 0 14px 14px 0;
	background: var(--per-white);
	box-shadow: 0 12px 32px rgba(169, 71, 0, .07);
}

.per-el-service-points p {
	margin: 0;
}

.per-el-service-fit {
	background: var(--per-orange-soft) !important;
}

.per-el-service-note {
	padding: 22px 24px;
	border: 1px solid rgba(74, 124, 46, .35);
	border-left: 6px solid var(--per-green);
	border-radius: 18px;
	background: var(--per-white);
}

.per-el-service-note p {
	margin: 0;
	color: var(--per-copy);
	font-size: 13px;
	line-height: 1.75;
}

/* Keep the footer useful without turning the bottom of every page black. */
.footer {
	background: var(--per-orange) !important;
	color: var(--per-ink) !important;
}

.footer__brand img {
	filter: none !important;
}

.footer :where(h2, h3, p, a, span, small),
.footer__bottom,
.footer__bottom > span {
	color: var(--per-ink) !important;
}

.footer h2,
.footer h3 {
	color: var(--per-ink) !important;
}

.footer .newsletter {
	border-color: rgba(26, 26, 26, .42);
}

.footer .newsletter input,
.footer .newsletter button {
	color: var(--per-ink) !important;
}

.footer__bottom {
	border-color: rgba(26, 26, 26, .28) !important;
}

@media (max-width: 900px) {
	.per-el-service-details > .e-con-inner,
	.per-el-service-fit > .e-con-inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.per-el-hero,
	.inner-hero,
	.hero,
	.program-hero {
		background: linear-gradient(145deg, var(--per-white) 0 66%, var(--per-orange-soft) 66% 100%) !important;
	}

	.per-el-service-points .elementor-widget-text-editor {
		padding: 16px;
	}
}

/* 1.8 homepage: refined announcement bar and a true white, cutout-led hero. */
.topline {
	display: none !important;
}

.topline > span {
	line-height: 1.25;
}

.topline > a,
.topline-link {
	padding: 6px 12px;
	border: 1px solid rgba(26, 26, 26, .32) !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, .82) !important;
	color: var(--per-ink) !important;
	text-decoration: none;
}

.home .site-header:not(.is-sticky),
.per-has-topline .site-header:not(.is-sticky),
.per-no-topline .site-header:not(.is-sticky),
body.admin-bar .site-header:not(.is-sticky) {
	top: 0 !important;
}

body.home .hero {
	height: max(800px, 100svh);
	max-height: none;
	min-height: 800px;
	background: var(--per-white) !important;
	color: var(--per-ink) !important;
	isolation: isolate;
}

.hero__visual {
	position: absolute;
	z-index: 2;
	top: 112px;
	right: 0;
	bottom: 40px;
	width: min(58vw, 980px);
	pointer-events: none;
}

.hero__athlete {
	position: absolute;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 30px 34px rgba(169, 71, 0, .18));
	will-change: transform;
}

.hero__athlete--rear {
	right: 19%;
	bottom: 4%;
	max-width: 64%;
	max-height: 88%;
	opacity: .24;
	animation: per-athlete-rear 8s ease-in-out infinite alternate;
}

.hero__athlete--front {
	right: 3%;
	bottom: -2%;
	max-width: 42%;
	max-height: 82%;
	animation: per-athlete-front 6s ease-in-out infinite alternate;
}

@keyframes per-athlete-rear {
	from { transform: translate3d(-14px, 3px, 0); }
	to { transform: translate3d(16px, -7px, 0); }
}

@keyframes per-athlete-front {
	from { transform: translate3d(-12px, 0, 0) rotate(-.35deg); }
	to { transform: translate3d(15px, -9px, 0) rotate(.35deg); }
}

body.home .hero__content {
	top: 52%;
	width: min(760px, 52vw);
	transform: translateY(-41%);
}

body.home .hero h1 {
	font-size: clamp(62px, 6.1vw, 110px);
}

body.home .hero__actions {
	position: relative;
	z-index: 6;
	margin-top: 30px;
}

body.home .hero__aside {
	right: var(--page);
	bottom: 40px;
	min-width: 238px;
	padding: 14px 18px;
	border: 1px solid rgba(240, 122, 24, .35);
	border-radius: 18px;
	gap: 8px;
	background: rgba(255, 255, 255, .88);
	box-shadow: 0 14px 38px rgba(169, 71, 0, .1);
	backdrop-filter: blur(8px);
}

body.home .hero__aside strong,
body.home .hero__aside small {
	color: var(--per-ink) !important;
}

body.home .hero__aside strong {
	font-size: 18px;
}

body.home .hero__aside small {
	max-width: 130px;
	line-height: 1.4;
}

body.home .scroll-cue {
	bottom: 42px;
}

body.home .hero__arc {
	z-index: 1;
	right: -8vw;
	bottom: -36%;
	width: min(52vw, 900px);
	height: min(52vw, 900px);
	border-width: 34px;
	opacity: .92;
}

body.home .hero__arc.green {
	right: -5vw;
	bottom: -32%;
	width: min(46vw, 800px);
	height: min(46vw, 800px);
	border-width: 18px;
}

/* Transparent artwork replaces the previous black photo rectangle. */
.method__visual,
.per-el-method-media {
	background: linear-gradient(145deg, var(--per-white), var(--per-orange-soft)) !important;
}

.method__visual {
	display: grid;
	place-items: center;
	padding: clamp(44px, 6vw, 90px);
}

.method__visual img {
	width: min(88%, 720px) !important;
	height: min(92%, 730px) !important;
	object-fit: contain !important;
	object-position: center bottom !important;
	filter: drop-shadow(0 26px 28px rgba(169, 71, 0, .16));
	animation: per-athlete-front 7s ease-in-out infinite alternate;
}

.method__content,
.per-el-method-copy {
	background: var(--per-white) !important;
}

.per-el-method-image img {
	padding: clamp(34px, 5vw, 78px);
	object-fit: contain !important;
	object-position: center bottom;
	filter: drop-shadow(0 26px 28px rgba(169, 71, 0, .16)) !important;
}

/* Honest two-location testimonial placeholders, ready for verified member copy. */
.testimonials {
	background: var(--per-white);
	border-top: 8px solid var(--per-green);
}

.testimonial-heading {
	display: grid;
	grid-template-columns: .65fr 1.45fr;
	gap: 18px 6vw;
	margin-bottom: 54px;
}

.testimonial-heading .kicker,
.testimonial-heading h2,
.testimonial-heading > p:last-child {
	grid-column: 2;
}

.testimonial-heading .kicker {
	margin: 0;
}

.testimonial-heading h2 {
	margin: 0;
	font-size: clamp(46px, 5vw, 86px);
	line-height: 1;
	letter-spacing: -.055em;
}

.testimonial-heading h2 em {
	color: var(--per-orange-deep);
	font-style: italic;
}

.testimonial-heading > p:last-child {
	max-width: 720px;
	margin: 0;
	color: var(--per-copy);
	font-size: 12px;
	line-height: 1.8;
}

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.testimonial-card {
	position: relative;
	min-height: 430px;
	padding: clamp(34px, 4vw, 64px);
	border: 1px solid var(--per-line);
	border-radius: 28px;
	display: flex;
	flex-direction: column;
	background: var(--per-warm-white);
	overflow: hidden;
}

.testimonial-card:nth-child(2) {
	background: var(--per-orange-soft);
}

.story-status {
	align-self: flex-start;
	padding: 7px 10px;
	border: 1px solid rgba(74, 124, 46, .36);
	border-radius: 999px;
	color: var(--per-green-dark);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.testimonial-card .quote-mark {
	height: 68px;
	margin-top: 22px;
	font-size: 92px;
	line-height: 1;
}

.testimonial-card blockquote {
	margin: 0 0 34px;
	font-size: clamp(24px, 2.15vw, 39px);
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -.035em;
}

.testimonial-card .testimonial__person {
	justify-content: flex-start;
	margin-top: auto;
}

.testimonial-card .testimonial__person small {
	color: var(--per-muted) !important;
	opacity: 1;
}

body.home .per-el-hero {
	background: var(--per-white) !important;
}

.per-el-hero-media--duo {
	position: relative;
	min-height: 680px;
	overflow: visible;
}

.per-el-hero-media--duo .per-el-hero-image {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 70%;
	margin: 0;
}

.per-el-hero-media--duo .per-el-hero-image .elementor-widget-container {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}

.per-el-hero-media--duo .per-el-hero-image img {
	width: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: center bottom;
	mask-image: none;
}

.per-el-hero-media--duo .per-el-hero-image-1 {
	right: 20%;
	width: 78%;
	opacity: .23;
}

.per-el-hero-media--duo .per-el-hero-image-2 {
	right: -2%;
	width: 54%;
	z-index: 2;
}

.per-el-member-stories {
	border-top: 8px solid var(--per-green);
}

.per-el-member-stories > .e-con-inner {
	display: grid !important;
	grid-template-columns: 1fr;
}

.per-el-member-stories .per-el-section-title .elementor-heading-title {
	max-width: 960px;
}

.per-el-member-stories > .e-con-inner > .per-el-lead {
	max-width: 720px;
}

.per-el-story-grid > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px !important;
}

.per-el-story-card {
	min-height: 430px;
	padding: clamp(34px, 4vw, 64px) !important;
	border: 1px solid var(--per-line);
	border-radius: 28px;
	background: var(--per-warm-white);
}

.per-el-story-card:nth-child(2) {
	background: var(--per-orange-soft);
}

.per-el-story-status .elementor-heading-title {
	display: inline-flex;
	padding: 7px 10px;
	border: 1px solid rgba(74, 124, 46, .36);
	border-radius: 999px;
	color: var(--per-green-dark);
	font-size: 8px;
	letter-spacing: .08em;
}

.per-el-story-mark .elementor-heading-title {
	height: 66px;
	margin-top: 18px;
	color: var(--per-orange);
	font: 900 92px/1 Georgia, serif;
}

.per-el-story-quote .elementor-heading-title {
	font-size: clamp(24px, 2.15vw, 39px);
	line-height: 1.28;
	letter-spacing: -.035em;
}

.per-el-story-person {
	margin-top: auto;
	color: var(--per-muted);
	font-size: 11px;
	line-height: 1.6;
}

.per-el-story-person strong {
	color: var(--per-ink);
	font-size: 14px;
}

@media (max-width: 1050px) {
	body.home .hero__content {
		width: min(650px, 61vw);
	}

	.hero__visual {
		right: -8%;
		width: 62vw;
	}

	body.home .hero__aside {
		display: none;
	}
}

@media (max-width: 780px) {
	body.home .hero {
		height: auto;
		min-height: 1040px;
		padding-bottom: 360px;
	}

	body.home .hero__content {
		top: 146px;
		width: calc(100% - 44px);
		transform: none;
	}

	body.home .hero h1 {
		font-size: clamp(48px, 14vw, 72px);
	}

	body.home .hero__actions {
		gap: 16px;
		align-items: flex-start;
	}

	.hero__visual {
		top: auto;
		right: -9%;
		bottom: 12px;
		width: 100%;
		height: 330px;
	}

	.hero__athlete--rear {
		right: 30%;
		max-width: 59%;
		max-height: 97%;
		opacity: .19;
	}

	.hero__athlete--front {
		right: 3%;
		max-width: 43%;
		max-height: 91%;
	}

	body.home .hero__arc,
	body.home .hero__arc.green {
		bottom: -9%;
		width: 105vw;
		height: 105vw;
	}

	.method__visual {
		padding: 44px 24px 20px;
	}

	.method__visual img {
		height: 430px !important;
	}

	.testimonial-heading,
	.testimonial-grid {
		grid-template-columns: 1fr;
	}

	.testimonial-heading .kicker,
	.testimonial-heading h2,
	.testimonial-heading > p:last-child {
		grid-column: auto;
	}

	.testimonial-card {
		min-height: 360px;
	}

	.per-el-hero-media--duo {
		min-height: 390px;
	}

	.per-el-story-grid > .e-con-inner {
		grid-template-columns: 1fr;
	}

	.per-el-story-card {
		min-height: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__athlete,
	.method__visual img {
		animation: none !important;
	}
}
