/*
 * Services hub + service pages (patterns/services-hub.php, patterns/service-*.php).
 * Built from the Figma frames on the "Services Web page" (Light mode), mapped
 * to the live palette: page #fefefe, text #0b2a36, navy #2e546b, sand #edebe5,
 * hairline #e2e2e2. Mobile sizes follow the 390 frames; desktop the 1440 frames.
 * Loaded after rclb-custom.css. Only applies inside .svc sections.
 */

/* ---------- Layout ---------- */
.svc {
	--svc-ink: #0b2a36;
	--svc-navy: #2e546b;
	--svc-sand: #edebe5;
	--svc-hairline: #e2e2e2;
	--svc-white: #fefefe;
	--svc-pad: 20px;
	--svc-section: 48px;
	color: var(--svc-ink);
	font-family: Lato, sans-serif;
}

.svc-container {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--svc-pad);
}

.svc-container--narrow {
	max-width: 840px;
}

.svc .wp-block-columns {
	gap: 32px;
	margin-bottom: 0;
}

.svc .wp-block-column > :first-child {
	margin-top: 0;
}

.svc .wp-block-column > :last-child {
	margin-bottom: 0;
}

.svc-intro,
.svc-index,
.svc-properties,
.svc-page-intro,
.svc-split,
.svc-text,
.svc-panel-section,
.svc-faq {
	padding: var(--svc-section) 0;
}

.svc-cta {
	padding: 24px 0 64px;
}

@media screen and (min-width: 64em) {
	.svc {
		--svc-pad: 40px;
		--svc-section: 72px;
	}

	.svc .wp-block-columns {
		gap: 96px;
	}

	.svc-intro {
		padding: 88px 0 0;
	}

	.svc-page-intro {
		padding: 88px 0;
	}

	.svc-index {
		padding: 128px 0 64px;
	}

	.svc-properties {
		padding: 64px 0;
	}

	.svc-faq {
		padding: 96px 0;
	}

	.svc-cta {
		padding: 48px 0 128px;
	}
}

@media screen and (min-width: 80em) {
	.svc {
		--svc-pad: 120px;
	}

	.svc-container {
		max-width: calc(1200px + 2 * var(--svc-pad));
	}
}

/* ---------- Type ---------- */
.svc .svc-h1,
.svc .svc-h2,
.svc .svc-h3,
.svc .svc-row__title {
	color: var(--svc-ink);
	font-family: Figtree, sans-serif;
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 16px;
}

.svc .svc-h1 {
	font-size: clamp(40px, 1.5rem + 3.2vw, 68px);
	letter-spacing: -0.02em;
	line-height: 1.06;
}

.svc .svc-h2 {
	font-size: clamp(32px, 1.6rem + 1.5vw, 48px);
	letter-spacing: -0.015em;
}

.svc .svc-h3 {
	font-size: clamp(28px, 1.4rem + 1.2vw, 40px);
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.svc p {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 16px;
}

.svc .svc-lede {
	font-size: 17px;
	line-height: 1.6;
}

.svc .svc-leadin {
	color: var(--svc-ink);
	font-family: Figtree, sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
}

.svc .svc-eyebrow {
	color: var(--svc-navy);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1;
	margin: 0 0 20px;
	text-transform: uppercase;
}

.svc a:not(.wp-block-button__link) {
	color: var(--svc-navy);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.svc a:not(.wp-block-button__link):hover,
.svc a:not(.wp-block-button__link):focus {
	color: var(--svc-ink);
}

.svc .svc-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.svc .svc-list li {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 14px;
	padding-left: 24px;
	position: relative;
}

.svc .svc-list li::before {
	background-color: var(--svc-navy);
	content: "";
	height: 8px;
	left: 0;
	position: absolute;
	top: 0.55em;
	width: 8px;
}

.svc .svc-list strong {
	color: var(--svc-ink);
	font-weight: 700;
}

.svc .svc-hairline {
	background: none;
	border: 0;
	border-top: 1px solid var(--svc-hairline);
	margin: 0 0 40px;
	max-width: none;
	opacity: 1;
	width: 100%;
}

@media screen and (min-width: 64em) {
	.svc p {
		font-size: 18px;
	}

	.svc .svc-list li {
		font-size: 17px;
	}

	.svc .svc-lede {
		font-size: 20px;
	}

	.svc .svc-leadin {
		font-size: 19px;
	}

	.svc .svc-eyebrow {
		font-size: 13px;
	}

	.svc .svc-hairline {
		margin-bottom: 64px;
	}
}

/* ---------- Buttons ---------- */
.svc .svc-actions {
	gap: 12px;
	margin-top: 32px; /* collapses with the paragraph margin above it: 32 total */
}

.svc .svc-btn {
	margin: 0;
	width: 100%;
}

.svc .svc-btn .wp-block-button__link {
	border: 2px solid var(--svc-navy);
	border-radius: 0;
	box-sizing: border-box;
	display: block;
	font-family: Figtree, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.2;
	padding: 15px 24px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	width: 100%;
}

.svc .svc-btn--solid .wp-block-button__link {
	background-color: var(--svc-navy);
	color: var(--svc-white);
}

.svc .svc-btn--solid .wp-block-button__link:hover,
.svc .svc-btn--solid .wp-block-button__link:focus {
	background-color: var(--svc-ink);
	border-color: var(--svc-ink);
	color: var(--svc-white);
}

.svc .svc-btn--outline .wp-block-button__link {
	background-color: transparent;
	border-color: var(--svc-ink);
	color: var(--svc-ink);
}

.svc .svc-btn--outline .wp-block-button__link:hover,
.svc .svc-btn--outline .wp-block-button__link:focus {
	background-color: var(--svc-ink);
	color: var(--svc-white);
}

.svc .svc-btn .wp-block-button__link:focus-visible {
	outline: 2px solid var(--svc-navy);
	outline-offset: 3px;
}

@media screen and (min-width: 48em) {
	.svc .svc-actions {
		gap: 16px;
	}

	.svc .svc-btn {
		width: auto;
	}

	.svc .svc-btn .wp-block-button__link {
		display: inline-block;
		padding: 15px 28px;
		width: auto;
	}
}

/* ---------- Hub: intro + proof strip ---------- */
.svc-intro__row .svc-h1 {
	margin-bottom: 0;
}

.svc-intro__band {
	margin-top: 40px;
}

.svc .svc-intro__image {
	margin: 0;
}

.svc .svc-intro__image img {
	aspect-ratio: 1200 / 440;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.svc-proof {
	background-color: var(--svc-navy);
	color: var(--svc-white);
	display: grid;
	gap: 18px;
	padding: 24px;
}

.svc-proof__item {
	border-left: 2px solid var(--svc-sand);
	padding-left: 16px;
}

.svc .svc-proof__title {
	color: var(--svc-white);
	font-family: Figtree, sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 4px;
}

.svc .svc-proof__text {
	color: var(--svc-sand);
	font-size: 15px;
	line-height: 1.4;
	margin: 0;
}

@media screen and (min-width: 48em) {
	.svc .svc-intro__image img {
		aspect-ratio: 1200 / 440;
	}

	.svc-proof {
		gap: 40px;
		grid-template-columns: repeat(3, 1fr);
		padding: 28px 48px;
	}

	.svc .svc-proof__title {
		font-size: 19px;
	}
}

/* ---------- Hub: services index ---------- */
.svc .svc-index__header {
	margin-bottom: 56px;
}

.svc-index__lede p {
	margin: 0;
}

.svc .svc-group {
	margin-bottom: 40px;
}

.svc .svc-group:last-child {
	margin-bottom: 0;
}

.svc .svc-group__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1;
	margin: 0 0 20px;
	text-transform: uppercase;
}

.svc .svc-row {
	border-top: 1px solid var(--svc-hairline);
	padding: 24px 0;
}

.svc .svc-group .svc-row:last-child {
	border-bottom: 1px solid var(--svc-hairline);
}

.svc .svc-row__cols {
	gap: 16px;
}

.svc .svc-row__title {
	font-size: 22px;
	letter-spacing: -0.008em;
	line-height: 1.18;
	margin: 0 0 12px;
}

.svc .svc-row__title a {
	color: var(--svc-ink);
	text-decoration: none;
}

.svc .svc-row:hover .svc-row__title a,
.svc .svc-row__title a:focus {
	color: var(--svc-navy);
	text-decoration: underline;
}

.svc .svc-row__desc {
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	max-width: 560px;
}

.svc .svc-row__thumb .wp-block-image {
	margin: 0;
}

.svc .svc-row__thumb img {
	aspect-ratio: 232 / 148;
	display: block;
	height: auto;
	object-fit: cover;
	transition: transform 0.2s ease-out;
	width: 100%;
}

.svc .svc-row:hover .svc-row__thumb img {
	transform: scale(1.03);
}

.svc .svc-row__thumb a {
	display: block;
	overflow: hidden;
}

.svc .svc-row__arrow {
	margin: 0;
}

.svc .svc-row__arrow a {
	background: url("../images/services/icon-arrow.svg") center / 56px 56px no-repeat;
	display: block;
	height: 56px;
	text-decoration: none;
	width: 56px;
}

.svc .svc-row:hover .svc-row__arrow a,
.svc .svc-row__arrow a:focus-visible {
	background-image: url("../images/services/icon-arrow-hover.svg");
}

.svc .svc-row__arrow a:focus-visible {
	outline: 2px solid var(--svc-navy);
	outline-offset: 3px;
}

/* Mobile: thumb, then copy; arrow hidden (the title is the link) */
@media screen and (max-width: 781px) {
	.svc .svc-row .svc-row__cols {
		flex-direction: column-reverse;
	}

	.svc .svc-row__action {
		display: none;
	}
}

@media screen and (min-width: 782px) {
	.svc .svc-row {
		padding: 32px 0;
	}

	.svc .svc-row .svc-row__cols {
		gap: 40px;
	}

	.svc .svc-row .svc-row__cols > .svc-row__copy {
		flex: 1 1 0;
	}

	.svc .svc-row .svc-row__cols > .svc-row__thumb {
		flex: 0 0 232px;
	}

	.svc .svc-row .svc-row__cols > .svc-row__action {
		flex: 0 0 56px;
	}

	.svc .svc-row__title {
		font-size: 30px;
	}

	.svc .svc-row__desc {
		font-size: 17px;
	}
}

/* ---------- Hub: properties strip ---------- */
.svc .svc-properties__image {
	margin: 0;
}

.svc .svc-properties__copy .svc-h3 {
	margin-bottom: 20px;
}

.svc .svc-properties__copy > p:not(.svc-eyebrow) {
	max-width: 480px;
}

.svc .svc-properties__image img {
	aspect-ratio: 560 / 360;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* ---------- Service page: hero ---------- */
/* The cover block carries an inline min-height (600px) for the editor; override it below desktop */
.svc.svc-hero.wp-block-cover {
	margin: 0;
	min-height: 360px !important;
	padding: 32px var(--svc-pad);
}

.svc.svc-hero .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(11, 42, 54, 0) 20%, rgba(11, 42, 54, 0.78) 100%) !important;
	opacity: 1 !important;
}

.svc.svc-hero .wp-block-cover__inner-container {
	margin: 0 auto;
	max-width: 1200px;
	width: 100%;
}

.svc.svc-hero .svc-h1 {
	color: #fefefe;
	margin: 0;
	max-width: 900px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 64em) {
	.svc.svc-hero.wp-block-cover {
		min-height: 600px !important;
		padding: 72px var(--svc-pad);
	}
}

/* ---------- Service page: intro, split, text rows ---------- */
.svc-page-intro .svc-lede:last-child {
	margin-bottom: 0;
}

.svc .svc-split__image,
.svc .svc-faq__image {
	margin: 0;
}

.svc .svc-split__image img,
.svc .svc-faq__image img {
	display: block;
	height: 240px;
	object-fit: cover;
	width: 100%;
}

@media screen and (min-width: 782px) {
	.svc .svc-split__cols,
	.svc .svc-faq__cols {
		align-items: stretch;
	}

	.svc .svc-split__image,
	.svc .svc-faq__image {
		height: 100%;
	}

	.svc .svc-split__image img,
	.svc .svc-faq__image img {
		height: 100%;
		min-height: 420px;
	}
}

/* ---------- Service page: navy panel ---------- */
.svc .svc-panel {
	background-color: var(--svc-navy);
	color: var(--svc-sand);
	padding: 40px 24px;
}

.svc .svc-panel .svc-h2,
.svc .svc-panel strong {
	color: #fefefe;
}

.svc .svc-panel p,
.svc .svc-panel li {
	color: #d5dee3;
}

.svc .svc-panel .svc-list li::before {
	background-color: var(--svc-sand);
}

.svc .svc-panel a:not(.wp-block-button__link) {
	color: #fefefe;
}

.svc .svc-panel a:not(.wp-block-button__link):hover,
.svc .svc-panel a:not(.wp-block-button__link):focus {
	color: var(--svc-sand);
}

.svc .svc-panel > :last-child {
	margin-bottom: 0;
}

@media screen and (min-width: 64em) {
	.svc-panel-section {
		padding: 64px 0;
	}

	.svc .svc-panel {
		padding: 80px;
	}

	.svc .svc-panel > * {
		margin-left: auto;
		margin-right: auto;
		max-width: 800px;
		text-align: center;
	}

	/* bullets stay left-aligned inside the centered column */
	.svc .svc-panel > .svc-list {
		margin-right: auto;
		text-align: left;
	}

	.svc .svc-panel .svc-h2 {
		margin-bottom: 40px;
	}

	.svc .svc-panel p,
	.svc .svc-panel .svc-list {
		margin-bottom: 24px;
	}
}

/* ---------- Service page: FAQ (core Details block) ---------- */
.svc .svc-faq__item {
	border-top: 1px solid var(--svc-hairline);
	margin: 0;
	padding: 20px 0;
}

.svc .svc-faq__item:last-child {
	border-bottom: 1px solid var(--svc-hairline);
}

.svc .svc-faq__item summary {
	color: var(--svc-ink);
	cursor: pointer;
	font-family: Figtree, sans-serif;
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1.25;
	list-style: none;
	padding-right: 40px;
	position: relative;
}

.svc .svc-faq__item summary::-webkit-details-marker {
	display: none;
}

.svc .svc-faq__item summary::before,
.svc .svc-faq__item summary::after {
	background-color: var(--svc-navy);
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.svc .svc-faq__item summary::before {
	height: 2px;
	width: 16px;
	right: 4px;
}

.svc .svc-faq__item summary::after {
	height: 16px;
	width: 2px;
	right: 11px;
}

.svc .svc-faq__item[open] summary::after {
	display: none;
}

.svc .svc-faq__item > :not(summary) {
	margin-top: 16px;
}

.svc .svc-faq__item > p {
	font-size: 17px;
	max-width: 520px;
}

.svc .svc-faq__item > p:last-child {
	margin-bottom: 0;
}

@media screen and (min-width: 64em) {
	.svc .svc-faq__item {
		padding: 28px 0;
	}

	.svc .svc-faq__item summary {
		font-size: 22px;
	}

	.svc .svc-faq__list .svc-h2 {
		margin-bottom: 40px;
	}
}

/* ---------- CTA panel (Sand) ---------- */
.svc .svc-cta__panel {
	background-color: var(--svc-sand);
	overflow: hidden;
	padding: 48px 24px;
	position: relative;
}

.svc .svc-cta__panel::after {
	background: url("../images/services/badge-watermark.svg") center / contain no-repeat;
	content: "";
	height: 260px;
	opacity: 0.06;
	pointer-events: none;
	position: absolute;
	right: -80px;
	top: -50px;
	width: 260px;
}

.svc .svc-cta__row {
	position: relative;
	z-index: 1;
}

.svc .svc-cta__row .svc-h2 {
	margin-bottom: 0;
}

.svc .svc-eyebrow--on-sand {
	color: var(--svc-navy);
}

@media screen and (min-width: 64em) {
	.svc .svc-cta__panel {
		padding: 88px 80px;
	}

	.svc .svc-cta__panel::after {
		height: 420px;
		right: -120px;
		top: auto;
		bottom: -120px;
		width: 420px;
	}
}

/* ---------- Desktop geometry from the Figma frames ----------
   Column widths in the patterns are inline flex-basis values (editor-friendly),
   so the Figma proportions are enforced here with !important at desktop only. */
.site-breadcrumbs + .svc {
	margin-top: -36px; /* theme adds 50px under breadcrumbs; Figma has a 57px bar then 88px */
}

@media screen and (min-width: 64em) {
	.svc.svc-intro .svc-lede,
	.svc.svc-intro .svc-intro__copy p {
		font-size: 18px;
	}

	/* Figma: copy column top-aligns with the H1, not the eyebrow */
	.svc .svc-intro__row > .svc-intro__copy {
		padding-top: 31px;
	}

	/* Figma: title column bottom-aligns with the lede / the CTA copy.
	   Core sets align-items with !important on .wp-block-columns. */
	.svc .svc-index__header,
	.svc .svc-cta__row {
		align-items: flex-end !important;
	}

	.svc .svc-intro__row,
	.svc .svc-index__header,
	.svc .svc-properties__row,
	.svc .svc-cta__row {
		flex-wrap: nowrap;
	}

	/* Intro: 640 / 464 with a 96 gap */
	.svc .svc-intro__row > .wp-block-column:first-child {
		flex-basis: calc(58% - 48px) !important;
	}

	.svc .svc-intro__row > .wp-block-column:last-child {
		flex-basis: calc(42% - 48px) !important;
	}

	/* Index header: 780 / 356 with a 64 gap */
	.svc .svc-index__header {
		gap: 64px;
	}

	.svc .svc-index__header > .wp-block-column:first-child {
		flex-basis: calc(67% - 32px) !important;
	}

	.svc .svc-index__header > .wp-block-column:last-child {
		flex-basis: calc(33% - 32px) !important;
	}

	/* Properties strip: 560 / 560 with an 80 gap */
	.svc .svc-properties__row {
		gap: 80px;
	}

	.svc .svc-properties__row > .wp-block-column {
		flex-basis: calc(50% - 40px) !important;
	}

	/* CTA panel: 520 / 424 with a 96 gap */
	.svc .svc-cta__row > .wp-block-column:first-child {
		flex-basis: calc(55% - 48px) !important;
	}

	.svc .svc-cta__row > .wp-block-column:last-child {
		flex-basis: calc(45% - 48px) !important;
	}
}

/* ---------- Service pages: desktop geometry from frames 2057:38 / 2064:38 ---------- */
/* The cover block's own margin rule outranks the breadcrumb offset above */
.site-breadcrumbs + .svc.svc-hero.wp-block-cover {
	margin-top: -36px;
}

/* Intro: 800px left-aligned column, Lato 20/165%, 24 between paragraphs */
.svc .svc-container--narrow {
	max-width: calc(1200px + 2 * var(--svc-pad));
}

.svc.svc-page-intro .svc-lede {
	line-height: 1.65;
	margin-bottom: 24px;
	max-width: none;
	text-align: left;
}

.svc.svc-page-intro .svc-lede:last-child {
	margin-bottom: 0;
}

/* Copy columns: 24px rhythm between heading, paragraphs, lead-in, list */
.svc .svc-split__copy > *,
.svc .svc-text__copy > * {
	margin-bottom: 24px;
}

.svc .svc-split__copy > :last-child,
.svc .svc-text__copy > :last-child {
	margin-bottom: 0;
}

/* Figma insets the bullet lists 20px from the column edge */
.svc .svc-split__copy > .svc-list,
.svc .svc-text__copy > .svc-list,
.svc .svc-panel > .svc-list {
	margin-right: 20px;
}

/* Service-page CTA: 32px rhythm; headline column vertically centered
   (the hub's CTA, which has an eyebrow, stays bottom-aligned) */
.svc .svc-cta__copy > p {
	margin-bottom: 32px;
}

@media screen and (min-width: 64em) {
	.svc .svc-cta__row:not(:has(.svc-eyebrow)) {
		align-items: center !important;
	}

	/* Split section: 600 / 520 with an 80 gap, image stretches to the copy */
	.svc .svc-split__cols {
		gap: 80px;
	}

	.svc .svc-split__cols > .svc-split__copy {
		flex-basis: 50% !important;
	}

	.svc .svc-split__cols > .svc-split__media {
		flex-basis: 43.33% !important;
	}

	/* Text sections: 480 / 624 with a 96 gap */
	.svc .svc-text__cols > .svc-text__heading {
		flex-basis: 40% !important;
	}

	.svc .svc-text__cols > .svc-text__copy {
		flex-basis: 52% !important;
	}

	/* FAQ: 520 / 600 with an 80 gap */
	.svc .svc-faq__cols {
		gap: 80px;
	}

	.svc .svc-faq__cols > .svc-faq__media {
		flex-basis: 43.33% !important;
	}

	.svc .svc-faq__cols > .svc-faq__list {
		flex-basis: 50% !important;
	}

	/* Service-page CTA columns: 420 / 524 with a 96 gap (hub keeps 520 / 424) */
	.svc .svc-cta__row:not(:has(.svc-eyebrow)) > .wp-block-column:first-child {
		flex-basis: calc(45% - 48px) !important;
	}

	.svc .svc-cta__row:not(:has(.svc-eyebrow)) > .wp-block-column:last-child {
		flex-basis: calc(55% - 48px) !important;
	}
}
