/* Propstrata Advisory inner pages — shares global tokens/classes with home.css */

/* ---------- Inner hero ---------- */
.ps-ihero {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center right;
}
.ps-ihero__scrim {
	position: absolute;
	inset: 0;
	/* Top gradient blends the image into white so it melts into the header
	   (as on the homepage hero); left gradient keeps the copy readable. */
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 32%),
		linear-gradient(
			90deg,
			rgba(255, 255, 255, .96) 0,
				rgba(255, 255, 255, .90) 620px,
				rgba(255, 255, 255, 0) 940px
		);
}
.ps-ihero__inner {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}
.ps-ihero__content {
	max-width: 620px;
}
.ps-ihero__title {
	font-size: 52px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 18px;
	color: var(--ps-navy);
}
.ps-ihero__title span {
	color: var(--ps-blue);
}
.ps-ihero__text {
	font-size: 18px;
	color: var(--ps-muted);
	max-width: 460px;
	margin: 0 0 28px;
}

/* Centered variant (blog index + archives): title centered in the hero. */
.ps-ihero--center .ps-ihero__content {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.ps-ihero--center .ps-ihero__text {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}
/* A symmetric wash so the centered title stays readable across the image. */
.ps-ihero--center .ps-ihero__scrim {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 42%),
		linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .9) 100%);
}

@media (max-width: 1024px) {
	.ps-ihero__title { font-size: 42px; }
}
@media (max-width: 782px) {
	.ps-ihero {
		min-height: 380px;
		background-position: center;
	}
	.ps-ihero__scrim {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, .95) 0%,
			rgba(255, 255, 255, .85) 45%,
			rgba(255, 255, 255, .4) 100%
		);
	}
	.ps-ihero__title { font-size: 34px; }
}

/* ---------- Financial Suite intro ---------- */
.ps-fsuite {
	background: var(--ps-light);
	padding: 90px 0;
}
.ps-fsuite__inner {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 64px;
	align-items: center;
}
.ps-fsuite__media {
	align-self: stretch; /* fill the row height so the image can be 100% tall */
	display: flex;
	justify-content: center; /* centre the 80%-wide frame in the column */
}
.ps-fsuite__frame {
	position: relative;
	width: 80%;
}
.ps-fsuite__frame img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: var(--ps-radius);
	object-fit: cover;
}
.ps-fsuite__overlay {
	position: absolute;
	bottom: 40px;
	max-width: 62%;
	background: var(--ps-blue-mid);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	padding: 18px 22px;
	right: -40px;
	border-radius: 14px;
	box-shadow: 0 18px 36px rgba(17, 34, 64, .25);
}
.ps-fsuite__copy h2 {
	font-size: 34px;
	margin: 6px 0 16px;
}
.ps-fsuite__copy > p {
	font-size: 16px;
	margin: 0 0 26px;
	max-width: 520px;
}
.ps-fsuite__list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	gap: 16px;
}
.ps-fsuite__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ps-navy);
}
/* Same "circle-check-big" icon the homepage uses on .ps-card li, in blue. */
.ps-fsuite__check {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234272a2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 5.5 11 16l-3.5-3.5'/%3E%3Cpath d='M21 12a9 9 0 1 1-6.2-8.56'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 900px) {
	.ps-fsuite__inner { grid-template-columns: 1fr; gap: 36px; }
	.ps-fsuite__copy h2 { font-size: 28px; }
}

/* ---------- What we offer ---------- */
/* Cards, icons and the section head are reused from home.css (.ps-card,
   .ps-card__icon, .ps-icon--*, .ps-section-head); only the layout is new. */
.ps-offer {
	background: #fff;
	padding: 100px 0;
}
/* Database/fund icon (same cylinder as .ps-icon--software, for the card icon set). */
.ps-icon--database { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7' ry='3'/%3E%3Cpath d='M5 5.5v6.5c0 1.66 3.13 3 7 3s7-1.34 7-3V5.5'/%3E%3Cpath d='M5 12v6.5c0 1.66 3.13 3 7 3s7-1.34 7-3V12'/%3E%3C/svg%3E"); }
/* Briefcase icon (same glyph as .ps-icon--ops, for the card icon set). */
.ps-icon--briefcase { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2.5'/%3E%3Cpath d='M9 7V5.5A1.5 1.5 0 0 1 10.5 4h3A1.5 1.5 0 0 1 15 5.5V7'/%3E%3Cpath d='M9 11v3M15 11v3'/%3E%3C/svg%3E"); }
.ps-offer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	align-items: start;
}
@media (max-width: 900px) {
	.ps-offer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How we work (Our Process) ---------- */
.ps-process {
	background: var(--ps-light);
	padding: 100px 0;
}
.ps-process__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 48px;
}
.ps-process__head h2 {
	font-size: 36px;
	margin: 6px 0 12px;
}
.ps-process__head p {
	max-width: 620px;
	font-size: 16px;
	margin: 0;
}
.ps-process__head .ps-btn {
	flex: 0 0 auto;
}
.ps-process__carousel {
	position: relative;
}
.ps-process__grid {
	display: flex;
	gap: 26px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ps-process__grid::-webkit-scrollbar {
	display: none;
}
.ps-process__nav {
	background: #a9c3dc;
	border: 0;
	border-radius: 0;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	height: 44px;
	width: 20px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}
.ps-process__nav--prev { left: 0; }
.ps-process__nav--next { right: 0; }
.ps-process__nav::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border: solid #fff;
	border-width: 2px 2px 0 0;
}
.ps-process__nav--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.ps-process__nav--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.ps-process__nav:hover { background: #4272a2; }
.ps-process__card {
	flex: 0 0 calc((100% - 52px) / 3);
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid rgba(17, 34, 64, .1);
	border-radius: var(--ps-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ps-process__card img {
	width: 100%;
	aspect-ratio: 390 / 240;
	object-fit: cover;
	display: block;
}
.ps-process__body {
	padding: 24px 26px 28px;
}
.ps-process__icon {
	display: block;
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #eaf0f8;
	margin-bottom: 16px;
}
.ps-process__icon::before {
	content: '';
	position: absolute;
	inset: 12px;
	background: var(--ps-blue);
	-webkit-mask: var(--icon) center / contain no-repeat;
	        mask: var(--icon) center / contain no-repeat;
}
.ps-process__icon.is-form { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E"); }
.ps-process__icon.is-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.ps-process__icon.is-document { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='10' y1='9' x2='8' y2='9'/%3E%3C/svg%3E"); }
.ps-process__body h3 {
	font-size: 20px;
	margin: 0 0 8px;
}
.ps-process__body p {
	font-size: 14px;
	margin: 0;
}
@media (max-width: 900px) {
	.ps-process__head { flex-direction: column; align-items: flex-start; }
	.ps-process__card { flex-basis: 100%; }
}

@media (max-width: 760px) {
	.ps-fsuite__overlay {
		border-radius: unset;
		max-width: 100%;
		right: unset;
		text-align: center;
	}
}

/* ---------- Service single: styling the Gutenberg block content ----------
   Content is authored in the block editor; everything here is presentation
   only, so editors keep writing normal headings, paragraphs and lists.

   A heading (H3 or H4) that is IMMEDIATELY followed by a paragraph or list
   becomes a tile: the heading is the tile head, the block after it the body.
   A heading not followed by content is intro copy and stays plain - that is
   why the tile rules are written positively with :has(), instead of styling
   every heading and trying to except the lead lines.

   Selectors are scoped under .ps-service so they beat the theme's global
   heading colours (body.ps-home h1..h6). */
.ps-svc { background: #fff; padding: 72px 0 88px; }
.ps-service .ps-svc-body { max-width: 940px; margin: 0 auto; }

/* Intro / lead copy: a heading with no content block after it */
.ps-service .ps-svc-body h4 {
	font-size: 21px;
	line-height: 1.5;
	font-weight: 500;
	color: var(--ps-muted);
	text-align: center;
	max-width: 800px;
	margin: 0 auto 40px;
}

/* Section headings */
.ps-service .ps-svc-body h2 {
	font-size: 33px;
	line-height: 1.22;
	color: var(--ps-navy);
	text-align: center;
	margin: 60px 0 8px;
}
.ps-service .ps-svc-body h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	border-radius: 2px;
	background: var(--ps-blue);
	margin: 16px auto 0;
}
.ps-service .ps-svc-body h2 + p {
	text-align: center;
	max-width: 760px;
	margin: 20px auto 26px;
	color: var(--ps-muted);
}

/* ---- Tiles: heading + the block right after it ---- */
.ps-service .ps-svc-body :is(h3, h4):is(:has(+ p), :has(+ ul), :has(+ ol)) {
	font-size: 19.5px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
	background: var(--ps-navy);
	text-align: left;
	max-width: none;
	margin: 26px 0 0;
	padding: 17px 26px;
	border-radius: var(--ps-radius) var(--ps-radius) 0 0;
}
.ps-service .ps-svc-body :is(h3, h4):is(:has(+ p), :has(+ ul), :has(+ ol)):nth-of-type(even) {
	background: var(--ps-blue-mid);
}

.ps-service .ps-svc-body :is(h3, h4) + :is(p, ul, ol) {
	margin: 0 0 14px;
	padding: 22px 26px 24px;
	background: var(--ps-light);
	border: 1px solid rgba(17, 34, 64, .08);
	border-top: 0;
	border-radius: 0 0 var(--ps-radius) var(--ps-radius);
	text-align: left;
}
.ps-service .ps-svc-body :is(h3, h4) + :is(ul, ol) { list-style: none; }
.ps-service .ps-svc-body :is(h3, h4) + p { font-size: 16px; color: var(--ps-text); max-width: none; }

/* Tick bullets inside a tile */
.ps-service .ps-svc-body :is(h3, h4) + :is(ul, ol) li {
	position: relative;
	padding: 6px 0 6px 32px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--ps-text);
	list-style: none;
}
.ps-service .ps-svc-body :is(h3, h4) + :is(ul, ol) li::before,
.ps-service .ps-svc-body h2 + ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234272a2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 5.5 11 16l-3.5-3.5'/%3E%3Cpath d='M21 12a9 9 0 1 1-6.2-8.56'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* A list straight after a section heading: ticked, no tile */
.ps-service .ps-svc-body h2 + ul { list-style: none; padding: 0; margin: 0 0 24px; }
.ps-service .ps-svc-body h2 + ul li {
	position: relative;
	padding: 6px 0 6px 32px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ps-text);
}

/* Body copy */
.ps-service .ps-svc-body p { font-size: 16.5px; line-height: 1.7; color: var(--ps-text); margin: 0 0 18px; }
.ps-service .ps-svc-body a { color: var(--ps-blue); }

/* Buttons carried over from the old site */
.ps-service .ps-svc-body .wp-block-buttons { display: flex; justify-content: center; margin: 8px 0 40px; }
.ps-service .ps-svc-body .wp-block-button__link,
.ps-service .ps-svc-body a.button {
	display: inline-block;
	background: var(--ps-blue-mid);
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	padding: 14px 28px;
	border-radius: 999px;
	text-decoration: none;
	border: 0;
}
.ps-service .ps-svc-body .wp-block-button__link:hover { opacity: .9; }

@media (max-width: 860px) {
	.ps-svc { padding: 48px 0 64px; }
	.ps-service .ps-svc-body h4 { font-size: 18px; margin-bottom: 30px; }
	.ps-service .ps-svc-body h2 { font-size: 26px; margin-top: 44px; }
	.ps-service .ps-svc-body :is(h3, h4):is(:has(+ p), :has(+ ul), :has(+ ol)) { font-size: 18px; padding: 15px 20px; }
	.ps-service .ps-svc-body :is(h3, h4) + :is(p, ul, ol) { padding: 18px 20px 20px; }
}

/* Inline links must not rely on colour alone (WCAG 1.4.1) */
.ps-service .ps-svc-body p a,
.ps-service .ps-svc-body li a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ps-service .ps-svc-body .wp-block-button__link { text-decoration: none; }
