/*
Theme Name: The Psych Fit
Theme URI: https://thepsychfit.com/
Author: The Psych Fit
Author URI: https://thepsychfit.com/
Description: A calm, premium WordPress theme for psychology-informed fitness and wellbeing coaching.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thepsychfit
Tags: custom-logo, custom-menu, featured-images, blog, wellness
*/

:root {
	--color-ink: #17211f;
	--color-forest: #16423c;
	--color-moss: #567764;
	--color-sage: #8fb79d;
	--color-sky: #dceef2;
	--color-clay: #d47a59;
	--color-rose: #f2d2c5;
	--color-paper: #fbfaf6;
	--color-stone: #e9e2d7;
	--color-muted: #64716d;
	--shadow-soft: 0 24px 70px rgba(23, 33, 31, 0.14);
	--radius: 8px;
	--container: min(1120px, calc(100vw - 40px));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	letter-spacing: 0;
}

body.admin-bar .site-header {
	top: 32px;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

p {
	margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--color-ink);
	font-weight: 720;
	line-height: 1.05;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(3.1rem, 9vw, 7rem);
	max-width: 780px;
}

h2 {
	font-size: clamp(2rem, 4.5vw, 4rem);
	max-width: 760px;
}

h3 {
	font-size: 1.25rem;
}

.container {
	width: var(--container);
	margin-inline: auto;
}

.container--narrow {
	max-width: 820px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: #fff;
	clip: auto;
	color: var(--color-ink);
}

.site-header {
	position: sticky;
	z-index: 50;
	top: 0;
	background: rgba(251, 250, 246, 0.9);
	border-bottom: 1px solid rgba(23, 33, 31, 0.08);
	backdrop-filter: blur(18px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: var(--container);
	min-height: 76px;
	margin-inline: auto;
	gap: 24px;
}

.site-branding__name,
.site-footer__brand {
	color: var(--color-forest);
	font-size: 1.1rem;
	font-weight: 800;
	text-decoration: none;
}

.custom-logo {
	width: auto;
	max-height: 54px;
}

.main-navigation {
	display: flex;
	align-items: center;
}

.menu,
.footer-navigation ul {
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu a,
.footer-navigation a {
	color: rgba(23, 33, 31, 0.78);
	font-size: 0.95rem;
	font-weight: 680;
	text-decoration: none;
}

.menu a:hover,
.footer-navigation a:hover {
	color: var(--color-forest);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(23, 33, 31, 0.16);
	border-radius: var(--radius);
	background: #fff;
}

.menu-toggle__line {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	background: var(--color-ink);
}

.hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: calc(100vh - 76px);
	overflow: hidden;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.78) 34%, rgba(251, 250, 246, 0.18) 67%, rgba(23, 33, 31, 0.12) 100%),
		linear-gradient(0deg, rgba(23, 33, 31, 0.25) 0%, transparent 34%);
}

.hero__content {
	position: relative;
	z-index: 1;
	padding: 80px 0 110px;
}

.eyebrow,
.section-kicker {
	margin: 0 0 18px;
	color: var(--color-clay);
	font-size: 0.78rem;
	font-weight: 820;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero__text {
	max-width: 610px;
	margin: 24px 0 0;
	color: rgba(23, 33, 31, 0.82);
	font-size: clamp(1.1rem, 2vw, 1.32rem);
	line-height: 1.55;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 20px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-weight: 760;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button--primary {
	background: var(--color-forest);
	color: #fff;
	box-shadow: 0 12px 30px rgba(22, 66, 60, 0.22);
}

.button--primary:hover {
	background: #0f312d;
}

.button--secondary {
	background: rgba(255, 255, 255, 0.74);
	border-color: rgba(23, 33, 31, 0.15);
	color: var(--color-ink);
}

.button--light {
	background: #fff;
	color: var(--color-forest);
	white-space: nowrap;
}

.section {
	padding: clamp(72px, 9vw, 128px) 0;
}

.section--intro {
	background: var(--color-forest);
	color: #fff;
}

.section--intro h2,
.section--intro .section-kicker {
	color: #fff;
}

.intro-grid,
.founder-grid,
.approach-grid,
.contact-band__inner,
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(34px, 7vw, 86px);
	align-items: center;
}

.lead {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.2rem;
}

.signal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.signal-list span {
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 700;
}

.stats-strip {
	padding: 28px 0;
	background: #fff;
}

.stat-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	gap: 14px;
}

.stat-card {
	display: grid;
	gap: 4px;
	min-height: 132px;
	padding: 24px;
	border: 1px solid rgba(23, 33, 31, 0.1);
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, rgba(220, 238, 242, 0.64), rgba(255, 255, 255, 0.9)),
		#fff;
}

.stat-number {
	color: var(--color-forest);
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	font-weight: 850;
	line-height: 0.95;
}

.stat-label {
	max-width: 280px;
	color: var(--color-muted);
	font-size: 0.96rem;
	font-weight: 720;
	line-height: 1.35;
}

.section--founder {
	background: #fff;
}

.founder-media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.founder-media img {
	width: 100%;
	aspect-ratio: 4 / 4.6;
	object-fit: cover;
}

.founder-copy p:not(.section-kicker) {
	max-width: 620px;
	color: var(--color-muted);
	font-size: 1.12rem;
}

.founder-signature {
	display: grid;
	gap: 2px;
	margin-top: 28px;
	padding-left: 18px;
	border-left: 4px solid var(--color-clay);
}

.founder-signature strong {
	color: var(--color-forest);
	font-size: 1.05rem;
}

.founder-signature span {
	color: var(--color-muted);
}

.section--expertise {
	background: #f5f9f7;
}

.expertise-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(34px, 7vw, 82px);
	align-items: start;
}

.expertise-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.expertise-list li {
	position: relative;
	min-height: 64px;
	padding: 16px 16px 16px 42px;
	border: 1px solid rgba(23, 33, 31, 0.1);
	border-radius: var(--radius);
	background: #fff;
	color: var(--color-ink);
	font-weight: 720;
	line-height: 1.35;
}

.expertise-list li::before {
	position: absolute;
	top: 20px;
	left: 18px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-clay);
	content: "";
}

.section-heading {
	max-width: 760px;
	margin-bottom: 38px;
}

.section-heading--split {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
}

.service-grid,
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.service-card,
.post-card,
.no-results {
	border: 1px solid rgba(23, 33, 31, 0.1);
	border-radius: var(--radius);
	background: #fff;
}

.service-card {
	min-height: 280px;
	padding: 28px;
}

.service-card__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 36px;
	border-radius: 50%;
	background: var(--color-sky);
	color: var(--color-forest);
	font-weight: 820;
}

.service-card p,
.step p,
.post-card p,
.archive-description,
.entry-content,
.not-found p {
	color: var(--color-muted);
}

.section--approach {
	background: linear-gradient(180deg, #f4f8f4 0%, #f8f3ee 100%);
}

.approach-copy p:not(.section-kicker) {
	max-width: 560px;
	color: var(--color-muted);
}

.steps {
	display: grid;
	gap: 14px;
}

.step {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 18px;
	padding: 22px;
	border: 1px solid rgba(23, 33, 31, 0.1);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.76);
}

.step > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--radius);
	background: var(--color-forest);
	color: #fff;
	font-weight: 800;
}

.section--journal {
	background: #fff;
}

.section--experience {
	background: #fff;
}

.experience-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.experience-card {
	min-height: 230px;
	padding: 26px;
	border: 1px solid rgba(23, 33, 31, 0.1);
	border-radius: var(--radius);
	background: linear-gradient(180deg, #fff 0%, #f8f3ee 100%);
}

.experience-card h3 {
	margin-bottom: 14px;
}

.experience-card p {
	color: var(--color-muted);
}

.text-link {
	color: var(--color-forest);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.post-card {
	overflow: hidden;
}

.post-card__media {
	display: block;
	background: var(--color-sky);
	text-decoration: none;
}

.post-card__media img,
.post-card__placeholder {
	width: 100%;
	aspect-ratio: 1.35 / 1;
	object-fit: cover;
}

.post-card__placeholder {
	display: block;
	background:
		linear-gradient(135deg, rgba(22, 66, 60, 0.9), rgba(122, 169, 140, 0.78)),
		var(--color-sky);
}

.post-card--fallback .post-card__media {
	display: grid;
	place-items: end start;
	width: 100%;
	aspect-ratio: 1.35 / 1;
	padding: 20px;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 820;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-card__media--sage {
	background: linear-gradient(135deg, #16423c, #7aa98c);
}

.post-card__media--clay {
	background: linear-gradient(135deg, #773f31, #d47a59);
}

.post-card__media--sky {
	background: linear-gradient(135deg, #214b57, #8dbec9);
}

.post-card__body {
	padding: 22px;
}

.post-card__meta {
	margin-bottom: 10px;
	color: var(--color-clay);
	font-size: 0.82rem;
	font-weight: 780;
}

.post-card h3 a {
	text-decoration: none;
}

.contact-band {
	padding: clamp(64px, 8vw, 104px) 0;
	background: var(--color-forest);
	color: #fff;
}

.contact-band h2,
.contact-band .section-kicker {
	color: #fff;
}

.contact-band p:not(.section-kicker) {
	max-width: 680px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.12rem;
}

.contact-band__inner {
	align-items: end;
}

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.contact-links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 720;
	text-decoration: none;
}

.site-footer {
	background: #111917;
	color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
	align-items: start;
	grid-template-columns: 1.2fr 0.7fr 1fr;
	padding: 48px 0;
}

.site-footer__brand,
.site-footer__contact a {
	color: #fff;
}

.site-footer__contact {
	display: grid;
	gap: 8px;
	justify-self: end;
	text-align: right;
}

.site-footer__contact a {
	font-weight: 760;
	text-decoration: none;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 4px;
}

.footer-social a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
}

.site-footer__bottom {
	width: var(--container);
	margin-inline: auto;
	padding: 18px 0 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.9rem;
}

.content-area {
	padding: 72px 0 104px;
}

.entry-header,
.archive-header {
	padding: 36px 0 42px;
}

.entry-header h1,
.archive-header h1 {
	font-size: clamp(2.4rem, 6vw, 5rem);
}

.entry-content {
	font-size: 1.08rem;
}

.entry-content > * {
	max-width: 820px;
}

.entry-content .alignwide {
	max-width: 1120px;
}

.entry-content .alignfull {
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2.2rem;
	margin-bottom: 1rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-top: 0;
	margin-bottom: 1.2rem;
}

.article-image {
	margin-bottom: 36px;
}

.article-image img {
	width: 100%;
	max-height: 560px;
	border-radius: var(--radius);
	object-fit: cover;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin-top: 28px;
	border: 1px solid rgba(23, 33, 31, 0.12);
	border-radius: var(--radius);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--color-forest);
	color: #fff;
}

.no-results,
.not-found {
	padding: 32px;
}

.search-form {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.search-field {
	min-height: 46px;
	flex: 1;
	padding: 10px 12px;
	border: 1px solid rgba(23, 33, 31, 0.16);
	border-radius: var(--radius);
	font: inherit;
}

.search-submit {
	min-height: 46px;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-forest);
	color: #fff;
	font: inherit;
	font-weight: 760;
}

@media (max-width: 860px) {
	body.admin-bar .site-header {
		top: 0;
	}

	.site-header__inner {
		min-height: 68px;
	}

	.menu-toggle {
		display: inline-block;
	}

	.main-navigation .menu {
		position: absolute;
		right: 20px;
		left: 20px;
		top: calc(100% + 10px);
		display: none;
		padding: 14px;
		border: 1px solid rgba(23, 33, 31, 0.1);
		border-radius: var(--radius);
		background: #fff;
		box-shadow: var(--shadow-soft);
	}

	.main-navigation.is-open .menu {
		display: grid;
		gap: 4px;
	}

	.menu a {
		display: block;
		padding: 12px;
	}

	.hero {
		min-height: 700px;
	}

	.hero__shade {
		background:
			linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.82) 62%, rgba(251, 250, 246, 0.34) 100%),
			linear-gradient(0deg, rgba(23, 33, 31, 0.22) 0%, transparent 40%);
	}

	.hero__content {
		padding: 74px 0 92px;
	}

	.intro-grid,
	.founder-grid,
	.expertise-grid,
	.approach-grid,
	.contact-band__inner,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.stat-grid,
	.service-grid,
	.experience-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.expertise-list {
		grid-template-columns: 1fr;
	}

	.section-heading--split {
		display: grid;
		align-items: start;
	}

	.contact-band__inner {
		align-items: start;
	}

	.site-footer__contact {
		justify-self: start;
		text-align: left;
	}

	.footer-social {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	:root {
		--container: min(100vw - 28px, 1120px);
	}

	body {
		font-size: 16px;
	}

	h1 {
		font-size: 3rem;
	}

	.hero {
		min-height: 640px;
	}

	.button-row {
		display: grid;
	}

	.button {
		width: 100%;
	}

	.section {
		padding: 64px 0;
	}

	.service-card {
		min-height: 0;
		padding: 22px;
	}

	.step {
		grid-template-columns: 42px 1fr;
		padding: 18px;
	}

	.step > span {
		width: 42px;
		height: 42px;
	}

	.search-form {
		display: grid;
	}
}
