/* ==========================================================================
   WS48 About Page Blocks
   Change the brand colours in one place: the custom properties below.
   ========================================================================== */

.ws48 {
	--ws48-accent: #A8462A;      /* buttons, active states */
	--ws48-accent-ink: #8E3A22;  /* small accent text on light backgrounds */
	--ws48-ink: #161616;         /* headings */
	--ws48-body: #4A4744;        /* paragraphs */
	--ws48-muted: #6B6661;
	--ws48-cream: #F6F3EE;
	--ws48-blue: #1F3D52;
	--ws48-black: #141414;
	--ws48-line: #E7E3DD;
	--ws48-max: 1280px;
	--ws48-gutter: clamp(20px, 4vw, 40px);
	--ws48-section-y: clamp(72px, 9vw, 120px);
	--ws48-edge: max(var(--ws48-gutter), calc((100vw - var(--ws48-max)) / 2 + var(--ws48-gutter)));

	font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	color: var(--ws48-ink);
	box-sizing: border-box;
}

.ws48 *,
.ws48 *::before,
.ws48 *::after {
	box-sizing: inherit;
}

/* Full-bleed sections, including in classic themes without align-full support.
   Sections sit flush against each other. */
.ws48.ws48.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw) !important;
	padding: 0;
}

/* Stop 100vw sections causing a sideways scrollbar. */
body:has(.ws48.alignfull) {
	overflow-x: clip;
}

/* Reset theme spacing inside sections; gaps below handle the rhythm. */
.ws48.ws48 h1,
.ws48.ws48 h2,
.ws48.ws48 h3,
.ws48.ws48 p {
	margin: 0;
	padding: 0;
}

.ws48.ws48 .wp-block-columns {
	margin: 0;
}

.ws48 .ws48-inner {
	max-width: var(--ws48-max);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--ws48-gutter);
	padding-right: var(--ws48-gutter);
}

/* ---------- Type ---------- */

.ws48.ws48 .ws48-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ws48-accent-ink);
}

.ws48.ws48 .ws48-display {
	font-family: inherit;
	font-size: clamp(44px, 5.4vw, 76px);
	line-height: 1.02;
	font-weight: 500;
	letter-spacing: -0.035em;
	color: inherit;
	max-width: 14ch;
}

.ws48.ws48 .ws48-h2 {
	font-family: inherit;
	font-size: clamp(34px, 3.6vw, 52px);
	line-height: 1.07;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: inherit;
	max-width: 20ch;
}

.ws48.ws48 .ws48-h3 {
	font-family: inherit;
	font-size: 21px;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: inherit;
}

.ws48.ws48 .ws48-lead {
	font-size: 19px;
	line-height: 1.6;
	color: var(--ws48-body);
	max-width: 32em;
}

.ws48.ws48 .ws48-body {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ws48-body);
	max-width: 34em;
}

/* ---------- Buttons ---------- */

.ws48 .ws48-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 8px 0 0;
}

.ws48 .ws48-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px;
	border: 1px solid var(--ws48-accent);
	border-radius: 4px;
	background: var(--ws48-accent);
	color: #FFFFFF;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ws48 .ws48-btn .wp-block-button__link:hover {
	background: var(--ws48-accent-ink);
	border-color: var(--ws48-accent-ink);
	color: #FFFFFF;
}

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

.ws48 .ws48-btn--arrow .wp-block-button__link::after {
	content: "\2192";
	font-weight: 500;
}

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

.ws48 .ws48-btn--ghost .wp-block-button__link:hover {
	background: var(--ws48-ink);
	border-color: var(--ws48-ink);
	color: #FFFFFF;
}

.ws48 .ws48-btn--link .wp-block-button__link {
	min-height: 44px;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
}

.ws48 .ws48-btn--link .wp-block-button__link:hover {
	background: transparent;
	color: inherit;
	opacity: 0.8;
}

/* ---------- Media & text sections (hero, story, why) ---------- */

.ws48.wp-block-media-text {
	align-items: stretch;
	grid-template-columns: 50% 1fr;
}

.ws48.wp-block-media-text.has-media-on-the-right {
	grid-template-columns: 1fr 50%;
}

.ws48 .wp-block-media-text__content {
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: var(--ws48-section-y);
	padding-bottom: var(--ws48-section-y);
}

.ws48.has-media-on-the-right .wp-block-media-text__content {
	padding-left: var(--ws48-edge);
	padding-right: clamp(32px, 5vw, 80px);
}

.ws48:not(.has-media-on-the-right) .wp-block-media-text__content {
	padding-left: clamp(32px, 5vw, 80px);
	padding-right: var(--ws48-edge);
}

.ws48 .wp-block-media-text__media {
	margin: 0;
	align-self: stretch;
	min-height: 560px;
}

.ws48 .wp-block-media-text__media img,
.ws48 .wp-block-media-text__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ws48-hero {
	background: var(--ws48-cream);
}

.ws48-hero .wp-block-media-text__content {
	gap: 28px;
}

.ws48-story {
	background: var(--ws48-blue);
	color: #FFFFFF;
}

.ws48.ws48-story .ws48-eyebrow {
	color: #E9B9A6;
}

.ws48.ws48-story .ws48-body {
	color: #DCE5EC;
}

.ws48-why {
	background: var(--ws48-cream);
}

/* ---------- Stats bar ---------- */

.ws48-stats {
	background: var(--ws48-black);
	color: #FFFFFF;
}

.ws48 .ws48-stats__grid {
	gap: 0;
}

.ws48 .ws48-stat {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 44px 32px;
	border-left: 1px solid #3A3A3A;
}

.ws48 .ws48-stat:first-child {
	padding-left: 0;
	border-left: 0;
}

.ws48.ws48 .ws48-stat__value {
	font-size: 44px;
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: #FFFFFF;
}

.ws48.ws48 .ws48-stat__label {
	font-size: 15px;
	line-height: 1.5;
	color: #BDB8B1;
}

/* ---------- Approach & values (white sections) ---------- */

.ws48-approach,
.ws48-values {
	background: #FFFFFF;
	padding-top: var(--ws48-section-y) !important;
	padding-bottom: var(--ws48-section-y) !important;
}

.ws48-approach .ws48-inner,
.ws48-values .ws48-inner {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.ws48 .ws48-intro {
	align-items: flex-end;
	gap: 40px;
}

.ws48 .ws48-intro .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ws48 .ws48-pillars {
	gap: 0;
	border-top: 1px solid var(--ws48-ink);
}

.ws48 .ws48-pillar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 40px 32px 0;
	border-left: 1px solid var(--ws48-line);
}

.ws48 .ws48-pillar:first-child {
	padding-left: 0;
	border-left: 0;
}

.ws48 .ws48-pillar:last-child {
	padding-right: 0;
}

.ws48 .ws48-icon {
	display: block;
	width: 32px;
	height: 32px;
	color: var(--ws48-accent-ink);
}

.ws48 .ws48-cards {
	gap: 20px;
}

.ws48 .ws48-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 280px;
	padding: 36px 32px;
	border-radius: 6px;
	background: var(--ws48-cream);
}

.ws48.ws48 .ws48-card__num {
	margin-bottom: auto;
	padding-bottom: 44px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ws48-accent-ink);
}

.ws48.ws48 .ws48-card .ws48-h3 {
	font-size: 24px;
}

/* ---------- Clients ---------- */

.ws48-clients {
	border-top: 1px solid var(--ws48-line);
	border-bottom: 1px solid var(--ws48-line);
}

.ws48-clients .ws48-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding-top: 56px;
	padding-bottom: 56px;
}

.ws48.ws48-clients .ws48-eyebrow {
	color: var(--ws48-muted);
}

.ws48 .ws48-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px 56px;
}

.ws48.ws48 .ws48-logo {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #8A857F;
}

/* Logo images dropped into the strip */
.ws48 .ws48-logos .wp-block-image {
	margin: 0;
}

.ws48 .ws48-logos img {
	display: block;
	height: 36px;
	width: auto;
	filter: grayscale(1);
	opacity: 0.7;
}

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

.ws48-cta .ws48-inner {
	gap: 48px;
	padding-top: var(--ws48-section-y);
	padding-bottom: var(--ws48-section-y);
}

.ws48-cta .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ws48 .ws48-cta__aside {
	gap: 28px;
	padding-left: 48px;
	border-left: 2px solid var(--ws48-accent);
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.ws48 .ws48-stats__grid,
	.ws48 .ws48-pillars,
	.ws48 .ws48-cards {
		flex-wrap: wrap !important;
	}

	.ws48 .ws48-stats__grid > .ws48-stat,
	.ws48 .ws48-pillars > .ws48-pillar {
		flex-basis: 50% !important;
	}

	.ws48 .ws48-cards > .ws48-card {
		flex-basis: calc(50% - 10px) !important;
	}

	.ws48 .ws48-stat:nth-child(odd),
	.ws48 .ws48-pillar:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.ws48 .ws48-pillar {
		padding-bottom: 32px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 781px) {
	.ws48 .ws48-stats__grid > .ws48-stat,
	.ws48 .ws48-pillars > .ws48-pillar,
	.ws48 .ws48-cards > .ws48-card {
		flex-basis: 100% !important;
	}

	.ws48 .ws48-stat,
	.ws48 .ws48-pillar {
		padding: 28px 0;
		border-left: 0;
		border-top: 1px solid #3A3A3A;
	}

	.ws48 .ws48-pillar {
		border-top-color: var(--ws48-line);
	}

	.ws48 .ws48-stat:first-child,
	.ws48 .ws48-pillar:first-child {
		border-top: 0;
	}

	.ws48 .ws48-card {
		min-height: 0;
	}

	.ws48 .ws48-cta__aside {
		padding-left: 24px;
	}
}

@media (max-width: 600px) {
	.ws48.wp-block-media-text.is-stacked-on-mobile,
	.ws48.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right {
		grid-template-columns: 100% !important;
	}

	.ws48.is-stacked-on-mobile .wp-block-media-text__content,
	.ws48.ws48.is-stacked-on-mobile .wp-block-media-text__content {
		padding: 56px var(--ws48-gutter);
	}

	.ws48 .wp-block-media-text__media {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ws48 .ws48-btn .wp-block-button__link {
		transition: none;
	}
}
