/* ==========================================================================
   Single Provider Therapy — main stylesheet
   Colors come from the Customizer as CSS custom properties (inc/custom-css.php);
   the values below are fallbacks only.
   ========================================================================== */

:root {
	--color-bg: #ffffff;
	--color-text: #1b2a4a;
	--color-heading: #1b2a4a;
	--color-surface: #f7f4ec;
	--color-surface-text: #1b2a4a;
	--color-surface-heading: #1b2a4a;
	--color-header-bg: #ffffff;
	--color-header-text: #1b2a4a;
	--color-card-bg: #ffffff;
	--color-card-text: #1b2a4a;
	--color-card-heading: #1b2a4a;
	--color-primary: #1d5fa8;
	--color-on-primary: #ffffff;
	--color-link: #1d5fa8;
	--color-focus: #1d5fa8;
	--color-surface-link: #1d5fa8;
	--color-header-link: #1d5fa8;
	--color-card-link: #1d5fa8;
	--color-secondary: #4f5e1f;
	--color-eyebrow: #4f5e1f;
	--color-footer-bg: #1b2a4a;
	--color-footer-text: #ffffff;
	--color-on-overlay: #ffffff;
	--hero-overlay: rgba(27, 42, 74, 0.45);
	--color-border: rgba(27, 42, 74, 0.14);
	--color-field-border: #7a8194; /* 3.9:1 on white — WCAG 1.4.11 needs 3:1 */

	--admin-bar-height: 0px; /* set below when the WordPress admin bar is showing */

	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", serif;

	--container: 1180px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section-space: clamp(3rem, 8vw, 5.5rem);
	--radius: 12px;
	--shadow: 0 6px 24px rgba(27, 42, 74, 0.08);
}

/* ---- Base ---- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--color-text);
	background-color: var(--color-bg);
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	color: var(--color-heading);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p {
	margin: 0 0 1em;
}

a {
	color: var(--color-link);
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

/* On dark areas the focus ring takes the area's own (contrast-checked) text color. */
.site-footer :focus-visible,
.crisis-bar :focus-visible,
.skip-link:focus-visible {
	outline-color: var(--color-footer-text);
}

.hero--has-image :focus-visible,
.page-header--has-image :focus-visible {
	outline-color: var(--color-on-overlay);
}

/* Text on the alternate-background areas. Links and focus rings are
   re-pointed per area so each is checked against the background it's on. */
.section--surface,
.cta-band,
.hero:not(.hero--has-image),
.page-header:not(.page-header--has-image),
.contact-details {
	--color-link: var(--color-surface-link);
	--color-focus: var(--color-surface-link);
	color: var(--color-surface-text);
}

.site-header {
	--color-link: var(--color-header-link);
	--color-focus: var(--color-header-link);
}

/* Cards keep the surrounding focus color: their outline is drawn outside the card. */
.card {
	--color-link: var(--color-card-link);
}

.cta-band__panel {
	--color-link: var(--color-card-link);
	--color-focus: var(--color-card-link);
}

/* :where() keeps this low-specificity so cards inside these areas keep their own heading color. */
:where(.section--surface, .cta-band, .hero:not(.hero--has-image), .page-header:not(.page-header--has-image), .contact-details) :is(h1, h2, h3, h4) {
	color: var(--color-surface-heading);
}

address {
	font-style: normal;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--color-footer-bg);
	color: var(--color-footer-text);
	border-radius: 6px;
	font-weight: 600;
}

.skip-link:focus {
	top: calc(1rem + var(--admin-bar-height));
}

/* Anything a menu link can jump to (e.g. /#practice-info-heading) stops below
   the sticky header instead of underneath it. */
:where([id]) {
	scroll-margin-top: calc(96px + var(--admin-bar-height));
}

/* WordPress admin bar (logged-in users): fixed 32px on desktop, 46px on
   tablets; below 600px it scrolls away with the page, so no offset. */
body.admin-bar {
	--admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--admin-bar-height: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar {
		--admin-bar-height: 0px;
	}
}

.site-main:focus {
	outline: none;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---- Buttons & links ---- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.4rem;
	border: 2px solid var(--color-primary);
	border-radius: 999px;
	background: var(--color-primary);
	color: var(--color-on-primary);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.button:hover {
	filter: brightness(0.9);
}

.button--large {
	min-height: 52px;
	padding: 0.85rem 1.8rem;
	font-size: 1.05rem;
}

.button--ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

/* Optical centering. Fonts reserve more room above the letters than below
   the baseline, so centering the line box leaves labels sitting low.
   Trimming the label to cap height + baseline centers the capitals; the extra
   0.08em lift accounts for mostly-lowercase labels, whose letters sit in the
   lower part of the cap height (chosen by eye in Chrome/Windows, Segoe UI). */
.button__label,
.nav-toggle__label {
	text-box: trim-both cap alphabetic;
	translate: 0 -0.08em;
}

/* Browsers without text-box support (e.g. Firefox): the label isn't trimmed,
   so it needs a larger lift to land in the same place (≈0.06em for the
   untrimmed line box + the same 0.08em). */
@supports not (text-box: trim-both cap alphabetic) {
	.button__label,
	.nav-toggle__label {
		translate: 0 -0.14em;
	}
}

.text-link {
	font-weight: 600;
}

.eyebrow {
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-eyebrow);
}

/* ---- Crisis bar ---- */

.crisis-bar {
	background: var(--color-footer-bg);
	color: var(--color-footer-text);
	font-size: 0.9375rem;
	text-align: center;
}

.crisis-bar p {
	margin: 0;
	padding: 0.5rem 0;
}

.crisis-bar a {
	color: inherit;
	font-weight: 700;
}

/* ---- Header & navigation ---- */

.site-header {
	background: var(--color-header-bg);
	color: var(--color-header-text);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: var(--admin-bar-height); /* sit below the WordPress admin bar when logged in */
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 76px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-branding__text {
	display: flex;
	flex-direction: column;
}

.site-branding__mark {
	display: block;
	flex: 0 0 auto;
}

/* Site icon placements (Customizer → Site Identity). The icon is round with
   transparent corners, so drop-shadow follows the circle. */
.site-icon-mark {
	display: block;
	border-radius: 50%;
}

.site-icon-mark--header {
	width: 52px;
	height: 52px;
}

.site-icon-mark--footer {
	width: 96px;
	height: 96px;
	margin-bottom: 1rem;
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--color-header-text);
	text-decoration: none;
}

.site-credentials {
	font-size: 0.875rem;
	color: var(--color-header-text);
}

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

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-nav__list {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: inline-block;
	padding: 0.6rem 0;
	color: var(--color-header-text);
	font-weight: 500;
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
	color: var(--color-link);
	text-decoration: underline;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: transparent;
	color: var(--color-header-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding: 1rem var(--gutter) 1.5rem;
		background: var(--color-header-bg);
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list a {
		display: block;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--color-border);
	}
}

/* ---- Sections ---- */

.section {
	padding-block: var(--section-space);
}

.section--surface {
	background: var(--color-surface);
}

.section-header {
	max-width: 44rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

/* "How I can help": the intro spans the full width of the service cards. */
.home-services .section-header {
	max-width: none;
}

.section-footer {
	margin: 2.5rem 0 0;
	text-align: center;
}

.admin-notice {
	margin: 0;
	padding: 1rem 1.25rem;
	border: 2px dashed var(--color-border);
	border-radius: var(--radius);
	text-align: center;
}

/* ---- Hero ---- */

.hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(420px, 70vh, 680px);
	padding-block: var(--section-space);
	background: var(--color-surface);
	overflow: hidden;
}

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

.hero--has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hero-overlay);
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--container);
}

/* With the site icon: headline on the left, icon showcased on the right. */
.hero__content--with-mark {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.hero__content--with-mark .hero__mark {
	order: 2;
}

.site-icon-mark--hero {
	width: clamp(200px, 24vw, 300px);
	height: auto;
	aspect-ratio: 1;
	filter: drop-shadow(0 12px 28px rgba(27, 42, 74, 0.16));
}

@media (max-width: 860px) {
	/* Phones/tablets: icon sits above the headline. */
	.hero__content--with-mark {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.hero__content--with-mark .hero__mark {
		order: 0;
	}

	.site-icon-mark--hero {
		width: 132px;
	}
}

.hero__heading,
.hero__subheading {
	max-width: 38rem;
}

.hero__subheading {
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	margin-bottom: 2rem;
}

/* Blank lines in the Customizer become separate, spaced paragraphs. */
.hero__subheading p {
	margin: 0 0 0.85em;
}

.hero__subheading p:last-child {
	margin-bottom: 0;
}

.hero--has-image .hero__heading,
.hero--has-image .hero__subheading,
.hero--has-image .button--ghost {
	color: var(--color-on-overlay);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* ---- Meet the therapist ---- */

.home-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start; /* photo lines up with the top of the bio */
}

/* Desktop: the photo stays in view while a long bio is read. */
@media (min-width: 861px) {
	.home-about__media {
		position: sticky;
		top: calc(96px + var(--admin-bar-height));
	}
}

/* Long bios are collapsed by assets/js/about-bio.js to about the photo's
   height, fading out above a "Continue reading" button. */
.home-about__bio {
	position: relative;
	overflow: hidden;
}

.home-about__bio > :last-child {
	margin-bottom: 0;
}

.home-about__bio.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5rem;
	background: linear-gradient(to bottom, transparent, var(--color-bg));
	pointer-events: none;
}

.home-about__more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0.5rem 0 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-link);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.home-about__more:hover {
	text-decoration-thickness: 2px;
}

.home-about__more + .text-link {
	display: inline-block;
	margin-left: 1.5rem;
}

.home-about__photo,
.image-placeholder--portrait {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius);
}

.image-placeholder {
	background:
		linear-gradient(135deg, var(--color-surface), rgba(27, 42, 74, 0.08));
}

.credentials {
	font-weight: 400;
}

/* ---- Cards (services) ---- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Services grid: fixed 1 / 2 / 3 columns so the theme knows how many
   slots are left empty in the last row — the welcome card fills them. */
.card-grid--services {
	grid-template-columns: minmax(0, 1fr);
}

.card-grid__fill {
	display: none; /* also hides it from screen readers when there's no gap */
}

@media (min-width: 640px) and (max-width: 999px) {
	.card-grid--services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card-grid__fill--tablet {
		display: block;
	}
}

@media (min-width: 1000px) {
	.card-grid--services {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.card-grid__fill--desktop-1,
	.card-grid__fill--desktop-2 {
		display: block;
	}

	.card-grid__fill--desktop-2 {
		grid-column: span 2;
	}

	/* Two slots wide: text beside the button instead of stacked. */
	.card-grid__fill--desktop-2 .welcome-card {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
	}
}

.welcome-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1.25rem;
	height: 100%;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--radius);
	background: var(--color-primary);
	color: var(--color-on-primary);
	box-shadow: var(--shadow);
	--color-focus: var(--color-on-primary);
}

.welcome-card__title {
	margin: 0 0 0.5rem;
	color: inherit;
}

.welcome-card__text p {
	margin: 0;
	max-width: 32rem;
}

/* Inverted button: on-primary background, primary text — the same
   contrast-checked pair as regular buttons, just swapped. */
.welcome-card__button {
	flex: 0 0 auto;
	background: var(--color-on-primary);
	border-color: var(--color-on-primary);
	color: var(--color-primary);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--color-card-bg);
	color: var(--color-card-text);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:has(.card__link):hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(27, 42, 74, 0.14);
}

.card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.5rem;
}

.card__title {
	margin-bottom: 0.5rem;
}

.card__title,
.card__link {
	color: var(--color-card-heading);
	text-decoration: none;
}

/* Whole card is clickable; the link text stays the accessible name. */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__link:focus-visible {
	outline: none;
}

.card:has(.card__link:focus-visible) {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

.card__summary {
	margin: 0;
}

/* "Read more" sits at the bottom of the card (lined up across the row) and
   above the card's stretched title link so it stays clickable. */
.card__more {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	min-height: 44px;
	margin-top: auto;
	padding: 0.75rem 0 0;
	border: 0;
	background: none;
	color: var(--color-link);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.card__more:hover {
	text-decoration-thickness: 2px;
}

/* ---- Service overlay (native <dialog>) ---- */

html:has(.service-dialog[open]) {
	overflow: hidden; /* keep the page behind from scrolling */
}

.service-dialog {
	width: min(44rem, calc(100% - 2rem));
	max-height: min(85vh, 900px);
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-card-bg);
	color: var(--color-card-text);
	box-shadow: 0 24px 60px rgba(27, 42, 74, 0.3);
	--color-link: var(--color-card-link);
	--color-focus: var(--color-card-link);
}

.service-dialog::backdrop {
	background: rgba(27, 42, 74, 0.55);
}

.service-dialog[open] {
	animation: service-dialog-in 0.2s ease-out;
}

@keyframes service-dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.service-dialog__panel {
	position: relative;
	max-height: inherit;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.service-dialog__close {
	position: sticky;
	top: 0.75rem;
	float: right;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0.75rem 0.75rem -44px 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-card-bg);
	color: var(--color-card-heading);
	box-shadow: var(--shadow);
	cursor: pointer;
}

.service-dialog__media img {
	width: 100%;
	aspect-ratio: 3 / 1;
	object-fit: cover;
}

.service-dialog__body {
	padding: clamp(1.5rem, 4vw, 2.25rem);
}

.service-dialog__body h2 {
	margin-right: 2.5rem; /* clear the close button */
	color: var(--color-card-heading);
}

.service-dialog .entry-content {
	padding: 0;
	max-width: none;
}

.service-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
}

/* ---- Practice details ---- */

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1.75rem;
}

.info-block {
	padding: 1.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	border-top: 4px solid var(--color-secondary);
}

.info-block p:last-child,
.info-block address:last-child {
	margin-bottom: 0;
}

.info-block address {
	margin-bottom: 0.75rem;
}

/* ---- Closing CTA ---- */

.cta-band {
	background: var(--color-surface);
	scroll-margin-top: calc(80px + var(--admin-bar-height)); /* clear the sticky header (and admin bar) when linked to via #get-started */
}

.cta-band__inner {
	max-width: 52rem;
	text-align: center;
}

.cta-band__lead {
	max-width: 38rem;
	margin: 0 auto 1.75rem;
	font-size: 1.125rem;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
}

.cta-band__call a {
	font-weight: 700;
}

.cta-band__panel {
	margin-top: 2rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--color-card-bg);
	color: var(--color-card-text);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-align: left;
}

.cta-band__panel :is(h2, h3, label) {
	color: var(--color-card-heading);
}

.cta-band__panel[hidden] {
	display: none;
}

.cta-band__panel .form-privacy-note {
	margin-top: 0;
}

.cta-band__more {
	margin: 1.5rem 0 0;
}

.contact-form-wrap {
	scroll-margin-top: calc(110px + var(--admin-bar-height));
}

/* ---- Interior pages ---- */

.page-header {
	position: relative;
	padding-block: clamp(2.5rem, 6vw, 4rem);
	background: var(--color-surface);
	overflow: hidden;
}

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

.page-header--has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hero-overlay);
}

.page-header .container {
	position: relative;
	z-index: 1;
}

.page-header--has-image .page-header__title {
	color: var(--color-on-overlay);
}

.page-header__title {
	margin: 0;
}

.entry-content {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	max-width: 50rem;
}

.entry-content > * + h2,
.entry-content > * + h3 {
	margin-top: 1.75em;
}

.services-list {
	padding-top: 0;
}

.services-list__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 2rem;
}

.service-detail {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	scroll-margin-top: calc(110px + var(--admin-bar-height));
}

.service-detail__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.service-detail__body {
	padding: 1.75rem;
}

.service-detail .entry-content {
	padding: 0;
}

/* ---- Contact ---- */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.contact-form {
	display: grid;
	gap: 1.25rem;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 1.25rem;
}

.form-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.form-field input,
.form-field textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--color-field-border);
	border-radius: 8px;
	/* Fields are always white with dark text, so they stay legible on any card color. */
	background: #ffffff;
	color: #1b2a4a;
	font: inherit;
}

.form-field--hp {
	position: absolute;
	left: -9999px;
}

.form-privacy-note,
.form-required-note {
	font-size: 0.9375rem;
}

.form-required-note {
	margin: 0;
}

.form-recaptcha-note {
	margin: 0;
	font-size: 0.8125rem;
}

/* Google allows hiding the floating v3 badge when the attribution text is shown. */
.grecaptcha-badge {
	visibility: hidden;
}

.notice {
	padding: 0.85rem 1rem;
	border-radius: 8px;
	border-left: 4px solid currentColor;
}

.notice--success {
	background: #e8f3ea;
	color: #1e5b2c;
}

.notice--error {
	background: #fbeaea;
	color: #8a1f1f;
}

.contact-details {
	padding: 1.75rem;
	background: var(--color-surface);
	border-radius: var(--radius);
}

.contact-details__list {
	display: grid;
	gap: 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---- Footer ---- */

.site-footer {
	padding-block: 3rem 1.5rem;
	background: var(--color-footer-bg);
	color: var(--color-footer-text);
	font-size: 0.9375rem;
}

.site-footer a {
	color: inherit;
}

.site-footer h2,
.site-footer .footer-heading {
	color: inherit;
}

.crisis-notice {
	margin-bottom: 2.5rem;
	padding: 1.5rem 1.75rem;
	border: 2px solid currentColor;
	border-radius: var(--radius);
}

.crisis-notice__heading {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.crisis-notice__list {
	margin: 0 0 0.75rem;
	padding-left: 1.25rem;
}

.crisis-notice__list a {
	font-weight: 700;
}

.crisis-notice__disclaimer {
	margin: 0;
	font-style: italic;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 2rem;
	padding-bottom: 2rem;
}

.footer-heading {
	font-size: 1.1rem;
}

.footer-grid address {
	margin-bottom: 0.75rem;
}

.footer-menu,
.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li,
.footer-contact li {
	margin-bottom: 0.4rem;
}

.footer-menu a,
.footer-contact a {
	display: inline-block;
	padding-block: 0.2rem;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid currentColor;
}

.footer-bottom p {
	margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
	.home-about__grid,
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-about__media {
		max-width: 360px;
	}
}

/* ---- Motion ---- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
