/*
Theme Name: Barlow Kadence Child
Description: Site-specific customizations for Barlow Psychological Services.
Author: Barlow Psychological Services
Template: kadence
Version: 0.4.1
Text Domain: barlow-kadence-child
*/

/*
 * Home page atmosphere and readability.
 *
 * The left-to-right scrim leaves the stars visible while creating a calm,
 * high-contrast area for the home page's primary copy. Add the
 * `barlow-readable-panel` class to any block that needs extra separation.
 */
body.home {
	background-color: #061328;
	background-image:
		linear-gradient(
			90deg,
			rgba(3, 10, 24, 0.88) 0%,
			rgba(4, 13, 31, 0.72) 38%,
			rgba(5, 17, 38, 0.48) 68%,
			rgba(5, 17, 38, 0.38) 100%
		),
		url("assets/images/home-night-sky.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

body.page:not(.home),
body.blog {
	background-color: #061328;
	background-image:
		linear-gradient(rgba(3, 10, 24, 0.5), rgba(3, 10, 24, 0.62)),
		url("assets/images/home-night-sky.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

body.home #wrapper,
body.home #inner-wrap,
body.home #primary,
body.home .site-main,
body.home .content-bg {
	background: transparent;
}

body.page:not(.home) #wrapper,
body.page:not(.home) #inner-wrap,
body.page:not(.home) #primary,
body.page:not(.home) .site-main,
body.page:not(.home) .content-bg,
body.blog #wrapper,
body.blog #inner-wrap,
body.blog #primary,
body.blog .site-main,
body.blog .content-bg {
	background: transparent;
}

body.home main,
body.home main :where(h1, h2, h3, h4, h5, h6, p, li) {
	color: #f8fbff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

body.home main a {
	color: #ffffff;
}

body.home .site-footer,
body.home .site-footer a {
	color: rgba(248, 251, 255, 0.9);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

body.page:not(.home) .site-footer,
body.page:not(.home) .site-footer a,
body.blog .site-footer,
body.blog .site-footer a {
	color: rgba(248, 251, 255, 0.9);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

body.home .barlow-readable-panel {
	max-width: 46rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	background:
		radial-gradient(circle at 88% 8%, rgba(111, 158, 194, 0.2), transparent 38%),
		linear-gradient(145deg, rgba(3, 10, 24, 0.82), rgba(6, 21, 47, 0.64));
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-left: 4px solid rgba(157, 201, 231, 0.72);
	border-radius: 0.35rem 1rem 1rem 0.35rem;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.34);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.barlow-home-hero {
	display: flex;
	align-items: center;
	min-height: calc(100vh - 10rem);
	padding: clamp(3rem, 8vw, 8rem) max(1.5rem, calc((100vw - 76rem) / 2));
}

.barlow-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.barlow-home-hero h1,
.barlow-page-intro h1 {
	font-size: clamp(2.5rem, 6vw, 5rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.barlow-home-hero h1 {
	max-width: 10ch;
	margin: 0 0 1.25rem;
}

.barlow-lead {
	font-size: clamp(1.08rem, 1.7vw, 1.35rem);
	line-height: 1.7;
}

.barlow-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 2rem;
}

.barlow-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: #f8fbff;
	color: #10203b !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-shadow: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.barlow-button:hover,
.barlow-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.24);
}

.barlow-text-link {
	font-weight: 700;
	text-underline-offset: 0.3em;
}

.barlow-page-shell {
	width: min(76rem, calc(100% - 3rem));
	margin: clamp(1.5rem, 3.5vw, 3.5rem) auto;
	padding: clamp(1.75rem, 4.5vw, 3.75rem);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 1.25rem;
	background: rgba(250, 252, 255, 0.93);
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

body.blog #primary.content-area {
	width: min(76rem, calc(100% - 3rem));
	margin: clamp(1.5rem, 3.5vw, 3.5rem) auto;
	padding: clamp(1.75rem, 4.5vw, 3.75rem);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 1rem;
	background: rgba(250, 252, 255, 0.93);
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

body.blog .entry-hero-container-inner {
	background: transparent;
}

body.blog .entry-hero .page-title {
	color: #f8fbff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.barlow-page-intro {
	max-width: 58rem;
	margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.barlow-page-intro .barlow-kicker {
	color: #315f7d;
}

.barlow-page-intro h1 {
	max-width: 15ch;
	margin: 0 0 1.5rem;
	color: #14253a;
	font-size: clamp(2.4rem, 4.5vw, 4.25rem);
}

.barlow-page-intro .barlow-lead,
.barlow-prose {
	color: #36485b;
}

.barlow-section + .barlow-section {
	margin-top: clamp(2rem, 3.5vw, 3.25rem);
}

.barlow-section > h2,
.barlow-card h2,
.barlow-contact-card h2 {
	margin-top: 0;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	color: #17324d;
}

.barlow-prose {
	max-width: 52rem;
	font-size: 1.08rem;
	line-height: 1.8;
}

.barlow-feature-list,
.barlow-method-grid,
.barlow-insurance-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.barlow-feature-list li,
.barlow-method-grid li,
.barlow-insurance-list li,
.barlow-card {
	padding: 1.25rem 1.35rem;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 1rem;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(228, 238, 246, 0.88));
	box-shadow:
		0 0.8rem 1.8rem rgba(20, 50, 77, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.barlow-feature-list {
	counter-reset: barlow-feature;
}

.barlow-feature-list li {
	position: relative;
	min-height: 6rem;
	padding-left: 4.2rem;
	counter-increment: barlow-feature;
}

.barlow-feature-list li::before {
	content: counter(barlow-feature, decimal-leading-zero);
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	color: #527b96;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.barlow-method-grid li {
	position: relative;
	overflow: hidden;
	border-top: 3px solid #6b91aa;
}

.barlow-method-grid li::after {
	content: "";
	position: absolute;
	right: -1.5rem;
	bottom: -1.5rem;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: rgba(77, 119, 149, 0.08);
}

.barlow-method-grid span {
	display: block;
	margin-top: 0.45rem;
	color: #566979;
	font-size: 0.92rem;
	line-height: 1.55;
}

.barlow-credential-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.barlow-card {
	--barlow-card-accent: #4e7893;
	border-top: 4px solid var(--barlow-card-accent);
}

.barlow-card:nth-child(2) {
	--barlow-card-accent: #6b6f9e;
}

.barlow-card:nth-child(3) {
	--barlow-card-accent: #8b668e;
}

.barlow-card ul {
	margin-bottom: 0;
	padding-left: 1.2rem;
}

.barlow-card li + li {
	margin-top: 0.65rem;
}

.barlow-contact-card {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 2rem;
	margin: clamp(2rem, 3.5vw, 3.25rem) 0;
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: 1rem;
	background:
		radial-gradient(circle at 92% 12%, rgba(140, 181, 210, 0.25), transparent 30%),
		linear-gradient(135deg, #17324d, #0f2740);
	color: #f8fbff;
	box-shadow: 0 1rem 2.5rem rgba(20, 50, 77, 0.22);
}

.barlow-contact-card h2 {
	color: #ffffff;
}

.barlow-contact-card p {
	max-width: 48rem;
	margin-bottom: 0;
}

.barlow-insurance-list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.barlow-insurance-list li {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0.85rem 1.1rem 0.85rem 2.35rem;
	border-radius: 999px;
}

.barlow-insurance-list li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #426f8e, #8b668e);
	transform: translateY(-50%);
}

sup {
	font-size: 0.65em;
}

@media (max-width: 782px) {
	body.home {
		background-attachment: scroll;
		background-position: 58% center;
	}

	body.page:not(.home),
	body.blog {
		background-attachment: scroll;
		background-position: 58% center;
	}

	.barlow-home-hero {
		align-items: flex-end;
		min-height: calc(100vh - 5rem);
		padding: 4rem 1rem 2rem;
	}

	body.home .barlow-readable-panel {
		padding: 1.4rem;
	}

	.barlow-page-shell {
		width: min(100% - 2rem, 76rem);
		padding: 1.5rem;
	}

	body.blog #primary.content-area {
		width: min(100% - 2rem, 76rem);
		padding: 1.5rem;
	}

	.barlow-feature-list,
	.barlow-method-grid,
	.barlow-credential-grid,
	.barlow-insurance-list,
	.barlow-contact-card {
		grid-template-columns: 1fr;
	}
}

