/*
Theme Name: Steadfast
Theme URI: https://steadfasthomecare.example
Author: Steadfast Home Care
Description: Custom Gutenberg block theme for Steadfast Home Care, a warm, professional in-home care agency website. Built with core blocks only, no page builder.
Version: 1.0.7
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steadfast
*/

/* ---------- Global polish ---------- */

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
}

/* Header, main, and footer stack flush, with no root block gap */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
}

/* Full-width page sections provide their own vertical padding. Gutenberg's
 * flow-layout block gap otherwise inserts a visible strip between each one. */
.wp-block-post-content > section {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

/* Clear, high-visibility keyboard focus for older visitors */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #96690F;
	outline-offset: 2px;
	border-radius: 3px;
}

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

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(13, 30, 58, 0.18);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* Outline buttons on dark bands need white, not navy */
.has-teal-depth-gradient-background .wp-block-button.is-style-outline .wp-block-button__link,
.has-primary-dark-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

.has-teal-depth-gradient-background .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-primary-dark-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-dark);
}

/* Accent button variant used on dark backgrounds */
.sf-btn-accent .wp-block-button__link {
	background: #96690F;
	color: var(--wp--preset--color--white);
	font-weight: 700;
}

.sf-btn-accent .wp-block-button__link:hover {
	background: #7D570C;
	color: var(--wp--preset--color--white);
}

/* Header logo sizing */
.sf-header .wp-block-site-logo img {
	height: auto;
}

/* ---------- Header ---------- */

.mobile-panel a.mobile-request-care {
	background: var(--gold);
	color: #fff;
	margin: 12px 20px 16px;
	border: 0;
	border-radius: 999px;
	text-align: center;
}

.mobile-panel a.mobile-request-care:hover,
.mobile-panel a.mobile-request-care:focus-visible {
	background: var(--gold-dark);
	color: #fff;
}

.sf-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(252, 252, 250, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(13, 30, 58, 0.08);
}

.sf-header .wp-block-site-title a {
	text-decoration: none;
}

.sf-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- Cards ---------- */

.sf-card {
	background: var(--wp--preset--color--white);
	border: 1px solid rgba(13, 30, 58, 0.08);
	border-radius: 18px;
	box-shadow: 0 4px 18px rgba(13, 30, 58, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Equal-height cards only when a card is alone in its column;
   stacked cards must keep natural height or they stretch past the page */
.wp-block-column > .sf-card:only-child,
.wp-block-column > .sf-testimonial:only-child {
	height: 100%;
}

.sf-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(13, 30, 58, 0.12);
}

.sf-icon-circle {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	line-height: 1;
}

/* Testimonial cards */
.sf-testimonial {
	background: var(--wp--preset--color--white);
	border-radius: 18px;
	border: 1px solid rgba(13, 30, 58, 0.08);
	box-shadow: 0 4px 18px rgba(13, 30, 58, 0.06);
}

.sf-stars {
	color: #C9962F;
	letter-spacing: 2px;
	font-size: 1.05rem;
}

/* Eyebrow label above headings */
.sf-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--wp--preset--color--accent);
}

.has-primary-dark-background-color .sf-eyebrow,
.has-teal-depth-gradient-background .sf-eyebrow {
	color: #D9A947;
}

/* Rounded images */
.sf-rounded img {
	border-radius: 22px;
}

/* ---------- Contact Form 7 styling ---------- */

.wpcf7 {
	background: var(--wp--preset--color--white);
	border: 1px solid rgba(13, 30, 58, 0.1);
	border-radius: 18px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	box-shadow: 0 4px 18px rgba(13, 30, 58, 0.06);
}

.wpcf7 label {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 0.35rem;
	color: var(--wp--preset--color--primary-dark);
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 1.1rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid rgba(13, 30, 58, 0.18);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--contrast);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(29, 62, 115, 0.15);
}

.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-weight: 700;
	font-size: 1rem;
	border: none;
	border-radius: 999px;
	padding: 0.85rem 2.25rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(13, 30, 58, 0.18);
}

.wpcf7-not-valid-tip {
	font-size: 0.85rem;
	color: #b3402a;
	margin-top: 0.25rem;
}

.wpcf7 form .wpcf7-response-output {
	border-radius: 10px;
	padding: 0.75rem 1rem;
	margin: 1rem 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--mist);
}

/* ---------- Misc ---------- */

/* Keep list-style pages tidy */
.sf-post-card {
	background: var(--wp--preset--color--white);
	border: 1px solid rgba(13, 30, 58, 0.08);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sf-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(13, 30, 58, 0.12);
}

.sf-post-card .wp-block-post-title a {
	text-decoration: none;
}

/* Checklist style */
.sf-check li {
	list-style: none;
	padding-left: 1.9em;
	position: relative;
	margin-bottom: 0.6em;
}

.sf-check {
	padding-left: 0 !important;
}

.sf-check li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 1.35em;
	height: 1.35em;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 0.85em;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Trust bar logos/badges */
.sf-trust-item {
	opacity: 0.85;
}

/* Homepage community bulletin board */
.sf-bulletin-board {
	background: #d9c5a2;
	background-image:
		radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.24) 0 1px, transparent 2px),
		radial-gradient(circle at 76% 68%, rgba(91, 67, 38, 0.12) 0 1px, transparent 2px);
	background-size: 26px 26px, 31px 31px;
	border: 10px solid #8a6545;
	border-radius: 16px;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 14px 32px rgba(13, 30, 58, 0.12);
}

.sf-bulletin-note {
	position: relative;
	background: #fffdf7;
	border-radius: 4px;
	padding: 1.6rem 1.35rem 1.35rem;
	box-shadow: 0 8px 18px rgba(54, 38, 23, 0.16);
}

.sf-bulletin-note:nth-child(1) { transform: rotate(-1deg); }
.sf-bulletin-note:nth-child(2) { transform: rotate(1.2deg); }
.sf-bulletin-note:nth-child(3) { transform: rotate(-0.6deg); }

.sf-bulletin-note::before {
	content: "";
	position: absolute;
	top: 0.55rem;
	left: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 2px 4px rgba(13, 30, 58, 0.32);
	transform: translateX(-50%);
}

.sf-gallery-placeholder {
	min-height: 230px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border: 2px dashed rgba(29, 62, 115, 0.28);
	background: rgba(255, 255, 255, 0.72);
}

.sf-promise-quote {
	border-left: 5px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	border-radius: 16px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	box-shadow: 0 18px 42px rgba(13, 30, 58, 0.18);
}

.sf-promise-quote p,
.sf-promise-quote cite {
	color: inherit;
}

/* Give the three homepage event cards and their photography room to breathe. */
.social-feed-grid {
	gap: clamp(2.125rem, 3.5vw, 3.25rem) !important;
	margin-bottom: clamp(3.25rem, 6vw, 4.75rem) !important;
}

/* Long-form About story copy: normal paragraphs flow naturally, while the
 * client's emphasis lines remain intentionally stacked. */
.story-purpose-copy {
	max-width: 920px;
	margin-inline: auto;
}

.story-purpose-copy > .section-head {
	margin-bottom: 2rem;
}

.story-purpose-copy > p {
	color: var(--wp--preset--color--contrast);
	margin-bottom: 1.15rem;
}

.story-stacked-lines {
	display: grid;
	gap: 0.45rem;
	margin: 1.75rem 0;
}

.story-stacked-lines p {
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
}

.story-promise {
	margin-top: 2.25rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-left: 5px solid var(--wp--preset--color--accent);
	border-radius: 16px;
	background: var(--wp--preset--color--cream);
}

.story-promise h3 {
	margin-top: 0;
}

.story-promise > p:last-child {
	margin-bottom: 0;
}

.mission-copy p {
	margin-bottom: 0.85rem;
}

.mission-copy-list {
	display: grid;
	gap: 0.65rem;
	margin: 1rem 0 0;
	padding-left: 1.25rem;
	list-style: disc;
}

.mission-copy-list li {
	display: list-item;
	color: var(--wp--preset--color--contrast);
	list-style: disc;
}

.mission-copy-list li::marker {
	color: var(--wp--preset--color--accent);
}

/* Detail modals use the theme's check SVGs instead of browser bullets. */
.modal .mission-copy-list {
	padding-left: 0;
	list-style: none;
}

.modal .mission-copy-list li {
	display: flex;
	list-style: none;
}

.modal .mission-copy-list li::marker {
	content: "";
}

.home-about-card .mission-copy {
	font-size: 0.92rem;
	line-height: 1.55;
}

/* Careers layout refinements. */
.role-grid .role-card:last-child {
	grid-column: 1 / -1;
	justify-self: center;
	width: calc((100% - 1.125rem) / 2);
}

/* Services photography remains fully visible without dominating each section. */
#page-services .photo-wide,
body.page-id-19 .photo-wide {
	width: min(calc(100% - 40px), 980px);
	margin: clamp(28px, 4vw, 56px) auto;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(13, 30, 58, 0.08);
}

@media (max-width: 600px) {
	#page-services .photo-wide,
	body.page-id-19 .photo-wide {
		width: calc(100% - 32px);
		margin: 24px auto;
		border-radius: 14px;
	}
}

.checklist-2col .checklist-item:last-child {
	border-bottom: 1px solid var(--line);
}

.career-application-heading {
	text-align: center;
}

/* Consultation form: clearly bounded sections and tightly paired controls. */
.consult-form {
	counter-reset: consult-section;
}

.consult-form-section {
	counter-increment: consult-section;
	margin: 1.25rem 0;
	padding: clamp(1.375rem, 4vw, 1.875rem);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--sage-tint);
}

.consult-form-section h3 {
	display: flex;
	align-items: center;
	gap: 0.6875rem;
}

.consult-form-section h3::before {
	content: counter(consult-section);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.875rem;
	height: 1.875rem;
	flex: 0 0 1.875rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-dark);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
}

.consult-question {
	margin: 1rem 0 0 !important;
	padding: 1.125rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
}

.consult-form label.cbox,
.consult-form label.opt {
	display: flex;
	align-items: center;
}

.consult-form .cbox {
	justify-content: flex-start;
	gap: 0.625rem;
}

.consult-form [role="radiogroup"] {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.consult-form [role="radiogroup"] .cbox {
	flex: 0 0 auto;
	min-width: 6.75rem;
	padding: 0.75rem 0.9375rem;
}

/* Shared branded feedback for every card-like interactive control. */
[data-modal]:not(.btn),
.social-card,
.jump-nav a,
.opt,
.cbox {
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
	[data-modal]:not(.btn):hover,
	.social-card:hover,
	.jump-nav a:hover,
	.opt:hover,
	.cbox:hover {
		transform: translateY(-5px);
		border-color: rgba(186, 120, 1, 0.62);
		box-shadow: 0 16px 34px rgba(13, 30, 58, 0.13), 0 0 0 3px rgba(186, 120, 1, 0.08);
	}
}

[data-modal]:not(.btn):active,
[data-modal]:not(.btn).is-card-pressed,
.social-card:active,
.social-card.is-card-pressed,
.jump-nav a:active,
.jump-nav a.is-card-pressed,
.opt:active,
.opt.is-card-pressed,
.cbox:active,
.cbox.is-card-pressed {
	transform: translateY(-1px) scale(0.99);
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 8px 22px rgba(13, 30, 58, 0.14), 0 0 0 3px rgba(186, 120, 1, 0.14);
}

[data-modal]:not(.btn):focus-visible,
.jump-nav a:focus-visible,
.social-card:focus-within,
.opt:focus-within,
.cbox:focus-within {
	outline: 3px solid rgba(186, 120, 1, 0.48);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.role-grid .role-card:last-child {
		grid-column: auto;
		justify-self: stretch;
		width: 100%;
	}
}

.wpcf7 .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 1rem;
}

.wpcf7 .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.wpcf7 .wpcf7-list-item input[type="checkbox"] {
	margin-top: 0.3rem;
}

@media (max-width: 781px) {
	.consult-form {
		padding: 1.25rem;
	}

	.consult-form-section {
		padding: 1.25rem;
	}

	.social-feed-grid {
		gap: 2.125rem !important;
		margin-bottom: 3.5rem !important;
	}

	.sf-hide-mobile {
		display: none !important;
	}

	.wpcf7 .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-modal]:not(.btn),
	.social-card,
	.jump-nav a,
	.opt,
	.cbox {
		transition: none !important;
		transform: none !important;
	}
}


/* ---------- Round 3 local revisions ---------- */

.home-services-grid > [data-modal] {
	border-color: rgba(186, 120, 1, 0.28);
	transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.26s ease, border-color 0.26s ease, background-color 0.26s ease;
}

@media (hover: hover) and (pointer: fine) {
	.home-services-grid > [data-modal]:hover {
		transform: translateY(-9px) scale(1.012);
		border-color: var(--gold);
		background: linear-gradient(145deg, #fff 0%, #fff9ed 100%);
		box-shadow: 0 22px 44px rgba(13, 30, 58, 0.17), 0 0 0 3px rgba(186, 120, 1, 0.14);
	}
}

.social-feed-grid {
	gap: clamp(2.625rem, 5vw, 4rem) !important;
}

.social-feed-grid .social-card-media {
	margin: 1rem 1rem 0;
	border-radius: 10px;
	aspect-ratio: 16 / 9;
}

.social-feed-grid .social-card-body {
	padding: 1.75rem 2rem 2rem;
}

.story-purpose-section {
	background: linear-gradient(180deg, #fff 0%, #fdfaf4 100%);
}

.story-purpose-copy {
	max-width: 740px;
}

.story-purpose-copy > p {
	margin: 0;
	line-height: 1.82;
}

.story-purpose-copy > p + p {
	margin-top: 1.25rem;
}

.story-purpose-copy > .story-reasons-lead {
	margin-top: 1.75rem;
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
}

.story-reasons {
	display: block;
	margin: 1rem 0 2.25rem;
	overflow: hidden;
	border-left: 4px solid var(--gold);
	border-radius: 0 14px 14px 0;
	background: rgba(186, 120, 1, 0.065);
	box-shadow: 0 12px 30px rgba(13, 30, 58, 0.055);
}

.story-reasons p {
	position: relative;
	padding: 1.05rem 1.4rem 1.05rem 2.6rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 1.025rem;
	line-height: 1.55;
}

.story-reasons p::before {
	content: "";
	position: absolute;
	top: 1.55rem;
	left: 1.3rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gold);
}

.story-reasons p + p {
	border-top: 1px solid rgba(186, 120, 1, 0.2);
}

.mission-values-section {
	position: relative;
	border-top: 1px solid rgba(186, 120, 1, 0.24);
}

.mission-values-section::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 50%;
	width: 84px;
	height: 4px;
	border-radius: 999px;
	background: var(--gold);
	transform: translateX(-50%);
}

.value-tiles {
	align-items: stretch;
}

.value-tiles .vtile {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.value-tiles .vtile > .more-link {
	margin-top: auto;
	padding-top: 1.25rem;
}

.structure-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0.375rem 0 1.875rem;
}

#page-services .photo-wide,
body.page-id-19 .photo-wide {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}

#page-services .photo-wide img,
body.page-id-19 .photo-wide img {
	width: 100%;
	height: clamp(260px, 31.25vw, 600px);
	object-fit: cover;
	object-position: center;
}

#page-services .photo-wide img[src*="services-personal"],
body.page-id-19 .photo-wide img[src*="services-personal"] {
	object-position: center 32%;
}

#page-services .photo-wide img[src*="services-homemaker"],
body.page-id-19 .photo-wide img[src*="services-homemaker"] {
	object-position: center 22%;
}

#page-services .photo-wide img[src*="services-companion"],
body.page-id-19 .photo-wide img[src*="services-companion"] {
	object-position: center 28%;
}

.companion-care-grid {
	align-items: stretch;
	grid-auto-rows: 1fr;
}

.companion-care-grid > .card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.careers-photo-triptych {
	gap: 0.875rem;
	padding: 0.875rem;
	background: var(--cream);
}

.careers-photo-triptych img {
	height: clamp(260px, 26vw, 420px);
	border-radius: 12px;
	object-fit: cover;
}

@media (max-width: 700px) {
	.careers-photo-triptych {
		grid-template-columns: 1fr;
	}

	.careers-photo-triptych img {
		height: clamp(240px, 72vw, 360px);
	}
}

/* Round 3 visual approval: keep the complete Mission copy in a full-width card. */
.home-about-preview .grid.g3 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-areas:
		"story trust"
		"mission mission";
	align-items: stretch;
}

.home-about-preview .home-about-card {
	display: flex;
	flex-direction: column;
}

.home-about-preview .home-about-card:nth-child(1) {
	grid-area: story;
}

.home-about-preview .home-about-card:nth-child(2) {
	grid-area: mission;
	padding: clamp(2rem, 4vw, 3.25rem);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 238, 0.98));
}

.home-about-preview .home-about-card:nth-child(3) {
	grid-area: trust;
}

.home-about-preview .home-about-card:nth-child(2) .mission-copy-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 5vw, 4rem);
	row-gap: 0.8rem;
	padding-left: 0;
	list-style: none;
}

.home-about-preview .home-about-card:nth-child(2) .mission-copy-list li {
	position: relative;
	display: block;
	padding-left: 1.5rem;
	list-style: none;
}

.home-about-preview .home-about-card:nth-child(2) .mission-copy-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--gold);
	font-weight: 700;
}

.home-about-preview .home-about-card:nth-child(2) > p:last-child,
.home-about-preview .home-purpose-vision {
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 5vw, 4rem) 0;
	border-top: 1px solid rgba(13, 30, 58, 0.16);
	background: transparent;
	color: var(--navy);
	font-family: "Roboto Slab", serif;
	font-size: clamp(1.2rem, 2.1vw, 1.55rem);
	line-height: 1.5;
	text-align: center;
}

.home-about-preview .home-purpose-vision > p {
	margin: 0;
	color: inherit;
	font: inherit;
	line-height: inherit;
}

.home-about-preview .home-about-card:nth-child(2) > p:last-child strong,
.home-about-preview .home-purpose-label {
	display: block;
	margin-bottom: 0.65rem;
	color: var(--gold);
	font-family: "Roboto", sans-serif;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.home-about-preview .home-purpose-mission-label {
	margin: 0 0 0.75rem;
}

/* ---------- Round 4 local revisions ---------- */

/* Keep all three About-page guide cards on one explicit type system. */
.mission-values-section .value-tiles .vtile > h3 {
	margin: 0 0 0.5rem;
	color: var(--navy);
	font-family: "Roboto Slab", serif;
	font-size: 1.32rem;
	font-weight: 700;
	line-height: 1.25;
}

.mission-values-section .value-tiles .vtile > p {
	margin: 0;
	color: var(--muted);
	font-family: "Roboto", sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.65;
}

.mission-values-section .value-tiles .vtile > .more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4375rem;
	margin-top: auto;
	padding-top: 1.25rem;
	color: var(--gold);
	font-family: "Roboto", sans-serif;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.4;
}

.mission-values-section .value-tiles .vtile > .more-link .ic {
	width: 0.9375rem;
	height: 0.9375rem;
	color: inherit;
}

/* A query-string preview hides only the Services photography sections. */
body.services-preview-no-photos .wp-block-post-content > .section-bleed > .photo-wide {
	display: none !important;
}

/* Round 3 visual approval: rebalance the Careers hero and protect text contrast. */
#page-careers .hero,
body.page-id-20 .hero {
	min-height: 600px;
	padding: 72px 0;
}

#page-careers .hero .hero-bg img,
body.page-id-20 .hero .hero-bg img {
	height: 100%;
	object-position: 62% center;
}

#page-careers .hero .hero-scrim,
body.page-id-20 .hero .hero-scrim {
	background: linear-gradient(90deg, rgba(8, 19, 40, 0.9) 0%, rgba(8, 19, 40, 0.78) 34%, rgba(8, 19, 40, 0.42) 62%, rgba(8, 19, 40, 0.1) 100%);
}

#page-careers .hero .hero-copy,
body.page-id-20 .hero .hero-copy {
	max-width: 620px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	background: rgba(8, 19, 40, 0.2);
	box-shadow: 0 20px 46px rgba(8, 19, 40, 0.16);
	backdrop-filter: blur(2px);
}

@media (max-width: 760px) {
	.home-about-preview .grid.g3 {
		grid-template-columns: 1fr;
		grid-template-areas:
			"story"
			"mission"
			"trust";
	}

	.home-about-preview .home-about-card:nth-child(2) .mission-copy-list {
		grid-template-columns: 1fr;
	}

	#page-careers .hero,
	body.page-id-20 .hero {
		min-height: 0;
		padding: 64px 0;
	}

	#page-careers .hero .hero-scrim,
	body.page-id-20 .hero .hero-scrim {
		background: rgba(8, 19, 40, 0.7);
	}

	#page-careers .hero .hero-copy,
	body.page-id-20 .hero .hero-copy {
		padding: 1.5rem 1.125rem;
		border-radius: 16px;
		background: rgba(8, 19, 40, 0.32);
	}
}

/* Round 5: Leadership & Accountability roles laid out one group per row
 * (Leadership 3, Coordination 3, Care Team 2 centered), each card labeled. */
.leadership-groups {
	display: grid;
	gap: 26px;
	margin-top: 8px;
}

.leadership-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px;
}

.leadership-group > .card {
	flex: 0 1 calc((100% - 52px) / 3);
	height: auto;
}

.leadership-group > .card > .role-group {
	display: block;
	margin-bottom: 6px;
	color: var(--gold);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

@media (max-width: 1020px) {
	.leadership-group > .card {
		flex-basis: calc((100% - 26px) / 2);
	}
}

@media (max-width: 760px) {
	.leadership-group > .card {
		flex-basis: 100%;
	}
}

/* Round 5: Services photos are 16:9 with heads near the top edge, so the
 * old ~3.2:1 panorama cut off heads or bodies. Keep the banners at 2:1
 * (at least 89% of each photo visible), anchored to the top, stop growing
 * past 1600px, and show the full 16:9 photo on phones. */
#page-services .section-bleed > .photo-wide,
body.page-id-19 .section-bleed > .photo-wide {
	max-width: 1600px;
	margin-inline: auto;
}

#page-services .photo-wide img,
body.page-id-19 .photo-wide img,
#page-services .photo-wide img[src*="services-"],
body.page-id-19 .photo-wide img[src*="services-"] {
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	object-position: center top;
}

@media (min-width: 1601px) {
	#page-services .section-bleed > .photo-wide,
	body.page-id-19 .section-bleed > .photo-wide {
		border-radius: 18px;
	}
}

@media (max-width: 760px) {
	#page-services .photo-wide img,
	body.page-id-19 .photo-wide img,
	#page-services .photo-wide img[src*="services-"],
	body.page-id-19 .photo-wide img[src*="services-"] {
		aspect-ratio: 16 / 9;
	}
}

/* Round 5: two treatments for About "Our Story, Our Purpose", switched by
 * the story-style-* body class (see steadfast_story_style()). Copy is
 * identical in both; only presentation differs. */

/* Version A: narrow, centered reading column. */
body.story-style-centered .story-purpose-copy {
	max-width: 660px;
	text-align: center;
}

body.story-style-centered .story-purpose-copy > p {
	font-size: 1.05rem;
	line-height: 1.85;
}

body.story-style-centered .story-purpose-copy > p:first-of-type {
	color: var(--navy);
	font-family: 'Roboto Slab', serif;
	font-size: clamp(1.2rem, 2.4vw, 1.4rem);
	line-height: 1.5;
}

body.story-style-centered .story-purpose-copy > .story-reasons-lead {
	margin-top: 2.5rem;
}

body.story-style-centered .story-purpose-copy > .story-reasons-lead::before {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin: 0 auto 1.5rem;
	background: var(--gold);
}

body.story-style-centered .story-reasons {
	margin: 1.25rem 0 2.5rem;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

body.story-style-centered .story-reasons p {
	padding: 0.35rem 0;
	color: var(--navy);
	font-family: 'Roboto Slab', serif;
	font-size: clamp(1.08rem, 2.2vw, 1.22rem);
	font-weight: 600;
	line-height: 1.5;
}

body.story-style-centered .story-reasons p::before {
	position: static;
	display: block;
	width: 6px;
	height: 6px;
	margin: 0.6rem auto 0.9rem;
}

body.story-style-centered .story-reasons p:first-child::before {
	display: none;
}

body.story-style-centered .story-reasons p + p {
	border-top: 0;
}

body.story-style-centered .story-promise {
	margin-top: 2.75rem;
	padding: 2.5rem 0 0;
	border: 0;
	border-top: 1px solid rgba(186, 120, 1, 0.35);
	border-radius: 0;
	background: none;
}

body.story-style-centered .story-promise h3 {
	margin-bottom: 1.25rem;
	color: var(--gold-dark);
	font-size: 0.8rem;
	font-family: 'Roboto', sans-serif;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

body.story-style-centered .story-promise .story-stacked-lines {
	margin: 0 0 1.5rem;
}

body.story-style-centered .story-promise .story-stacked-lines p {
	font-family: 'Roboto Slab', serif;
	font-size: 1.08rem;
	font-weight: 600;
}

body.story-style-centered .story-promise > p:last-child {
	color: var(--muted);
	font-style: italic;
}

/* Version B: the story held in one styled panel, Our Promise as its footer. */
body.story-style-panel .story-purpose-section {
	background: linear-gradient(180deg, #fff 0%, #f7f2e8 100%);
}

body.story-style-panel .story-purpose-copy {
	--story-pad-x: clamp(22px, 7vw, 88px);
	max-width: 900px;
	padding: clamp(32px, 6vw, 64px) var(--story-pad-x) 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-top: 4px solid var(--gold);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(13, 30, 58, 0.08);
}

body.story-style-panel .story-purpose-copy > p {
	font-size: 1.03rem;
	line-height: 1.82;
}

body.story-style-panel .story-reasons {
	border: 0;
	border-radius: 14px;
	background: var(--cream);
	box-shadow: inset 0 0 0 1px var(--line);
}

body.story-style-panel .story-promise {
	margin: 2.75rem calc(-1 * var(--story-pad-x)) 0;
	padding: clamp(28px, 5vw, 48px) var(--story-pad-x);
	border: 0;
	border-radius: 0;
	background: var(--navy);
	text-align: center;
}

body.story-style-panel .story-promise h3 {
	margin-bottom: 1rem;
	color: #e8b75a;
}

body.story-style-panel .story-promise .story-stacked-lines {
	margin: 0 0 1.25rem;
}

body.story-style-panel .story-promise .story-stacked-lines p {
	color: #fff;
	font-family: 'Roboto Slab', serif;
	font-size: 1.06rem;
	font-weight: 600;
}

body.story-style-panel .story-promise > p:last-child {
	color: rgba(255, 255, 255, 0.82);
	font-style: italic;
}

/* Round 5 item 5 (approved): the top-row Careers cards, Employee or
 * Contractor, Benefits, and Top Pay, in navy so they stand out. Edit this
 * selector list to highlight other cards. */
.card.clickable[data-modal="benefit-type"],
.card.clickable[data-modal="benefit-employee"],
.card.clickable[data-modal="benefit-pay"] {
	border-color: var(--navy);
	border-top: 4px solid var(--gold);
	background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
	box-shadow: 0 16px 36px rgba(13, 30, 58, 0.22);
}

.card.clickable[data-modal="benefit-type"] .chip,
.card.clickable[data-modal="benefit-employee"] .chip,
.card.clickable[data-modal="benefit-pay"] .chip {
	background: rgba(232, 183, 90, 0.18);
	color: #e8b75a;
}

.card.clickable[data-modal="benefit-type"] h3,
.card.clickable[data-modal="benefit-employee"] h3,
.card.clickable[data-modal="benefit-pay"] h3 {
	color: #fff;
}

.card.clickable[data-modal="benefit-type"] p,
.card.clickable[data-modal="benefit-employee"] p,
.card.clickable[data-modal="benefit-pay"] p {
	color: rgba(255, 255, 255, 0.84);
}

.card.clickable[data-modal="benefit-type"] .more-link,
.card.clickable[data-modal="benefit-employee"] .more-link,
.card.clickable[data-modal="benefit-pay"] .more-link {
	color: #e8b75a;
}
