/* Company Profile page – layered on the site's Twenty Twenty-Five + DesignSetGo style kit.
   Uses only the site's palette and type presets. */

.sf-profile {
	--sf-green: var(--wp--preset--color--primary, #3f5b45);
	--sf-walnut: var(--wp--preset--color--secondary, #8a5a2b);
	--sf-ink: var(--wp--preset--color--base-3, #29231f);
	--sf-muted: var(--wp--preset--color--muted, #6e6e6c);
	--sf-cream: var(--wp--preset--color--base, #f7f2e9);
	--sf-surface: var(--wp--preset--color--surface, #ede8df);
	--sf-rule: color-mix(in srgb, var(--sf-walnut) 28%, transparent);
	--sf-serif: var(--wp--preset--font-family--libre-baskerville, "Libre Baskerville", serif);
}

.sf-profile .sf-intro {
	max-width: 40rem;
	margin-inline: auto;
	color: var(--sf-muted);
}

/* ---------- Hero ---------- */
.sf-hero h1 {
	font-size: clamp(2.4rem, 5.2vw, 4.4rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.sf-hero .sf-hero__lead {
	max-width: 38rem;
	margin-inline: auto;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.6;
	opacity: 0.92;
}

/* ---------- Overview ---------- */
.sf-overview {
	gap: clamp(2rem, 5vw, 4.5rem) !important;
	align-items: center !important;
}
.sf-overview p:not(.is-style-eyebrow) {
	font-size: 1.075rem;
	line-height: 1.75;
}

/* Key facts */
.sf-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 1px solid var(--sf-rule);
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}
.sf-fact {
	padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
	text-align: center;
}
.sf-fact + .sf-fact { border-left: 1px solid var(--sf-rule); }
.sf-fact > * { margin: 0 !important; }
.sf-fact__num {
	font-family: var(--sf-serif);
	font-size: clamp(2.4rem, 4.2vw, 3.4rem);
	line-height: 1;
	color: var(--sf-walnut);
	font-variant-numeric: lining-nums;
}
.sf-fact__label {
	margin-top: 0.85rem !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sf-ink);
}
.sf-fact__note {
	margin-top: 0.3rem !important;
	font-size: 0.95rem;
	color: var(--sf-muted);
}

/* ---------- Vision & mission ---------- */
.sf-statements { gap: clamp(1.25rem, 3vw, 2rem) !important; margin-top: 1rem !important; }
.sf-statement {
	height: 100%;
	box-sizing: border-box;
	padding: clamp(1.75rem, 4vw, 3rem);
	background: var(--sf-cream);
	border-top: 3px solid var(--sf-green);
	border-radius: 4px;
	box-shadow: 0 14px 40px color-mix(in srgb, var(--sf-ink) 7%, transparent);
}
.sf-statement > * { margin: 0 !important; }
.sf-statement__label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sf-green);
}
.sf-statement__text {
	margin-top: 1.1rem !important;
	font-family: var(--sf-serif);
	font-size: clamp(1.2rem, 1.9vw, 1.45rem);
	line-height: 1.55;
	color: var(--sf-ink);
}

/* ---------- Core values ---------- */
.sf-valueline {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sf-walnut);
}
.sf-values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: 1.5rem !important;
	border-top: 1px solid var(--sf-rule);
}
.sf-value {
	padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.5rem) 0;
	border-bottom: 1px solid var(--sf-rule);
}
.sf-value:not(:nth-child(3n + 1)) { padding-left: clamp(1.25rem, 2.5vw, 2rem); border-left: 1px solid var(--sf-rule); }
.sf-value > * { margin: 0 !important; }
.sf-value__num {
	font-family: var(--sf-serif);
	font-size: 0.95rem;
	color: var(--sf-walnut);
}
.sf-value__title {
	margin-top: 0.9rem !important;
	font-size: clamp(1.3rem, 2vw, 1.55rem) !important;
	color: var(--sf-ink);
}
.sf-value__text {
	margin-top: 0.6rem !important;
	color: var(--sf-muted);
	line-height: 1.65;
}

/* ---------- Timeline ---------- */
.sf-timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	margin-top: 1.5rem !important;
	padding-top: 2.25rem;
}
.sf-timeline::before {
	content: "";
	position: absolute;
	top: 0.45rem;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--sf-rule);
}
.sf-step { position: relative; }
.sf-step::before {
	content: "";
	position: absolute;
	top: calc(-2.25rem + 0.1rem);
	left: 0;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--sf-green);
	box-shadow: 0 0 0 5px var(--wp--preset--color--base-2, #e6e1d9);
}
.sf-step > * { margin: 0 !important; }
.sf-step__year {
	font-family: var(--sf-serif);
	font-size: clamp(2.4rem, 4vw, 3.2rem);
	line-height: 1;
	color: var(--sf-walnut);
	font-variant-numeric: lining-nums;
}
.sf-step__title {
	margin-top: 1rem !important;
	font-size: clamp(1.2rem, 1.8vw, 1.4rem) !important;
	color: var(--sf-ink);
}
.sf-step__text {
	margin-top: 0.5rem !important;
	color: var(--sf-muted);
	line-height: 1.65;
}

/* ---------- Products ---------- */
.sf-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
	margin-block: 1.5rem 2.5rem !important;
}
.sf-product > * { margin: 0 !important; }
.sf-product__num {
	margin-top: 1.1rem !important;
	font-family: var(--sf-serif);
	font-size: 0.85rem;
	color: var(--sf-walnut);
}
.sf-product__title {
	margin-top: 0.35rem !important;
	font-size: 1.2rem !important;
	line-height: 1.3;
	color: var(--sf-ink);
}
.sf-product__text {
	margin-top: 0.5rem !important;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--sf-muted);
}

/* ---------- Clients ---------- */
.sf-clients {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin-top: 1.5rem !important;
}
.sf-client {
	padding-top: 1.25rem;
	border-top: 2px solid var(--sf-green);
}
.sf-client > * { margin: 0 !important; }
.sf-client__title {
	font-size: 1.2rem !important;
	color: var(--sf-ink);
}
.sf-client__text {
	margin-top: 0.6rem !important;
	color: var(--sf-muted);
	line-height: 1.65;
}

.sf-divider {
	width: 4rem;
	height: 1px;
	margin: clamp(3rem, 6vw, 5rem) auto clamp(1rem, 2vw, 1.5rem) !important;
	background: var(--sf-walnut);
	opacity: 0.5;
}

/* ---------- Leadership ---------- */
.sf-leaders {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 18rem));
	justify-content: center;
	gap: clamp(1.25rem, 3vw, 2rem);
	margin-top: 1.5rem !important;
}
.sf-leader {
	padding: 2.25rem 1.5rem;
	text-align: center;
	background: var(--sf-cream);
	border-radius: 4px;
	box-shadow: 0 14px 40px color-mix(in srgb, var(--sf-ink) 7%, transparent);
}
.sf-leader > * { margin: 0 !important; }
.sf-leader__mono {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	margin-inline: auto !important;
	border-radius: 50%;
	background: var(--sf-green);
	color: #fff !important;
	font-family: var(--sf-serif);
	font-size: 1.35rem;
	letter-spacing: 0.04em;
}
.sf-leader__photo {
	width: 8.5rem;
	margin-inline: auto !important;
}
.sf-leader__photo img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px color-mix(in srgb, var(--sf-green) 35%, transparent) !important;
}
.sf-leader__name {
	margin-top: 1.25rem !important;
	font-size: 1.3rem !important;
	color: var(--sf-ink);
}
.sf-leader__role {
	margin-top: 0.4rem !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sf-walnut);
}

/* ---------- Commitment ---------- */
.sf-commitment {
	max-width: 52rem;
	margin: 0 auto clamp(3rem, 6vw, 4.5rem) !important;
}
.sf-profile .sf-commitment__text {
	max-width: 46rem;
	margin-inline: auto;
	font-family: var(--sf-serif);
	font-size: clamp(1.15rem, 1.9vw, 1.4rem);
	line-height: 1.65;
	color: var(--sf-ink) !important;
}
.sf-profile .sf-commitment__tagline {
	margin-top: 0.5rem !important;
	font-family: var(--sf-serif);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--sf-green) !important;
}

/* ---------- Contact / CTA ---------- */
.sf-cta {
	padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
	background: var(--sf-surface);
	border-radius: 4px;
}
.sf-cta > .wp-block-group:has(.wp-block-designsetgo-icon-button) { margin-top: 1.75rem !important; }
.sf-contact {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: clamp(2.25rem, 4vw, 3rem) !important;
	padding-top: clamp(1.75rem, 3vw, 2.25rem);
	border-top: 1px solid var(--sf-rule);
}
.sf-contact__item > * { margin: 0 !important; }
.sf-contact__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sf-walnut);
}
.sf-contact__value {
	margin-top: 0.45rem !important;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--sf-ink);
	overflow-wrap: anywhere;
}
.sf-contact__value a { color: inherit; }

/* ---------- Grid items: cancel the flow-layout block gap so every cell starts level ---------- */
.sf-facts > *, .sf-values > *, .sf-timeline > *, .sf-products > *,
.sf-clients > *, .sf-leaders > *, .sf-contact > * { margin-block: 0 !important; }

/* Accent colours must win over the section style kit's text colours. */
.sf-profile .sf-statement__label { color: var(--sf-green) !important; }
.sf-profile .sf-statement__text,
.sf-profile .sf-value__title,
.sf-profile .sf-step__title,
.sf-profile .sf-product__title,
.sf-profile .sf-client__title,
.sf-profile .sf-leader__name { color: var(--sf-ink) !important; }
.sf-profile .sf-step__year,
.sf-profile .sf-fact__num,
.sf-profile .sf-value__num,
.sf-profile .sf-product__num,
.sf-profile .sf-leader__role,
.sf-profile .sf-contact__label,
.sf-profile .sf-valueline { color: var(--sf-walnut) !important; }
.sf-profile .sf-step__text,
.sf-profile .sf-client__text,
.sf-profile .sf-value__text,
.sf-profile .sf-product__text { color: var(--sf-muted) !important; }
.sf-profile .sf-leader__mono { color: #fff !important; }

/* ---------- Slideshows (core Gallery block + profile.js) ---------- */
.sf-profile .wp-block-gallery.sf-slides {
	position: relative;
	display: grid !important;
	grid-template: 1fr / 1fr;
	gap: 0 !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 4 / 5;
	background: var(--sf-surface);
	box-shadow: 0 12px 36px color-mix(in srgb, var(--sf-ink) 10%, transparent);
}
.sf-profile .sf-slides > figure.wp-block-image {
	grid-area: 1 / 1;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.sf-profile .sf-slides:not(.is-ready) > figure:first-child,
.sf-profile .sf-slides > figure.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1.1s ease, visibility 0s;
}
.sf-profile .sf-slides > figure img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	box-shadow: none !important;
	transform: scale(1.001);
	transition: transform 6s ease-out;
}
.sf-profile .sf-slides > figure.is-active img { transform: scale(1.05); }
.sf-profile .sf-slides > figure figcaption {
	position: absolute !important;
	inset: auto 0 0 0 !important;
	margin: 0 !important;
	padding: 2.4rem 0.75rem 0.55rem !important;
	background: linear-gradient(to top, rgba(20, 16, 13, 0.62), transparent) !important;
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 0.66rem !important;
	line-height: 1.35;
	letter-spacing: 0.02em;
	text-align: left !important;
	max-height: none !important;
	overflow: visible !important;
}
.sf-slides__dots {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: flex;
	gap: 0.3rem;
}
.sf-slides__dots button {
	width: 1.4rem;
	height: 1.4rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.sf-slides__dots button::before {
	content: "";
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: background 0.3s ease, transform 0.3s ease;
}
.sf-slides__dots button[aria-current="true"]::before { background: #fff; transform: scale(1.3); }
.sf-slides__dots button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 50%; }
.sf-profile .sf-overview__img.sf-slides { aspect-ratio: 4 / 5; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.sf-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.75rem; }
}
@media (max-width: 781px) {
	.sf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-fact:nth-child(3) { border-left: 0; }
	.sf-fact:nth-child(n + 3) { border-top: 1px solid var(--sf-rule); }
	.sf-values { grid-template-columns: 1fr; }
	.sf-value, .sf-value:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
	.sf-timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 2rem; }
	.sf-timeline::before { top: 0; bottom: 0; left: 0.35rem; right: auto; width: 1px; height: auto; }
	.sf-step::before { top: 0.35rem; left: -2rem; }
	.sf-leaders { grid-template-columns: minmax(0, 22rem); }
	.sf-contact { grid-template-columns: 1fr 1fr; }
	.sf-profile .sf-overview__img.sf-slides { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
	.sf-products, .sf-clients, .sf-contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.sf-profile .sf-slides > figure,
	.sf-profile .sf-slides > figure img { transition: none !important; transform: none !important; }
}

/* ---------- About Us: registered name ---------- */
.sf-hero--compact h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.sf-legalname {
	margin-top: 1.5rem !important;
	padding: 1.1rem 1.4rem;
	background: var(--sf-cream);
	border-left: 3px solid var(--sf-green);
}
.sf-legalname > * { margin: 0 !important; }
.sf-legalname__row {
	display: grid;
	grid-template-columns: 9.5rem 1fr;
	gap: 0.25rem 1rem;
	padding-block: 0.45rem;
}
.sf-legalname__row + .sf-legalname__row { border-top: 1px solid var(--sf-rule); }
.sf-legalname__row > * { margin: 0 !important; }
.sf-legalname .sf-legalname__label {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sf-muted);
	align-self: center;
}
.sf-legalname .sf-legalname__value {
	font-family: var(--sf-serif);
	color: var(--sf-ink);
}
@media (max-width: 600px) {
	.sf-legalname__row { grid-template-columns: 1fr; }
}

/* ---------- Our Process ---------- */
.sf-values--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-values--4 .sf-value:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
.sf-values--4 .sf-value:not(:nth-child(4n + 1)) { padding-left: clamp(1.25rem, 2.5vw, 2rem); border-left: 1px solid var(--sf-rule); }
.sf-psteps {
	position: relative;
	display: grid;
	gap: 0;
	max-width: 62rem;
	margin: 1.5rem auto 0 !important;
	counter-reset: none;
}
.sf-psteps > * { margin-block: 0 !important; }
.sf-pstep {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
	border-top: 1px solid var(--sf-rule);
}
.sf-pstep:last-child { border-bottom: 1px solid var(--sf-rule); }
.sf-pstep--photo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sf-pstep--photo:nth-child(even of .sf-pstep--photo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.sf-pstep--photo:nth-child(even of .sf-pstep--photo) > .sf-pstep__photo { order: -1; }
.sf-pstep > * { margin: 0 !important; }
.sf-pstep__body > * { margin: 0 !important; }
.sf-profile .sf-pstep__num {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sf-walnut) !important;
}
.sf-profile .sf-pstep__title {
	margin-top: 0.6rem !important;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important;
	color: var(--sf-ink) !important;
}
.sf-profile .sf-pstep__text {
	margin-top: 0.75rem !important;
	max-width: 38rem;
	line-height: 1.7;
	color: var(--sf-muted) !important;
}
.sf-profile .sf-pstep__list {
	margin-top: 1rem !important;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}
.sf-profile .sf-pstep__list li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 1rem !important;
	line-height: 1.55;
	color: var(--sf-ink);
}
.sf-profile .sf-pstep__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.7rem;
	height: 1px;
	background: var(--sf-walnut);
}
.sf-pstep__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 12px 36px color-mix(in srgb, var(--sf-ink) 10%, transparent);
}
.sf-overview__img.wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
@media (max-width: 1024px) {
	.sf-values--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-values--4 .sf-value:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 781px) {
	.sf-values--4 { grid-template-columns: 1fr; }
	.sf-values--4 .sf-value:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
	.sf-pstep--photo, .sf-pstep--photo:nth-child(even of .sf-pstep--photo) { grid-template-columns: minmax(0, 1fr); }
	.sf-pstep--photo > .sf-pstep__photo { order: -1; }
	.sf-overview__img.wp-block-image img { aspect-ratio: 4 / 3; }
}
