/**
 * Central editor-independent frontend styles for WebCookers Suite.
 *
 * All selectors are scoped to .wcsuite-frontend so themes and future builders
 * can safely override the exposed CSS custom properties.
 */

.wcsuite-frontend {
	--wcsuite-frontend-text: inherit;
	--wcsuite-frontend-muted: #646970;
	--wcsuite-frontend-border: #dcdcde;
	--wcsuite-frontend-accent: #2271b1;
	--wcsuite-frontend-action: #b32d2e;
	--wcsuite-frontend-radius: 8px;
	--wcsuite-frontend-row-gap: 16px;
	box-sizing: border-box;
	color: var(--wcsuite-frontend-text);
	max-width: 100%;
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
	.wcsuite-frontend {
		--wcsuite-frontend-muted: color-mix(in srgb, currentColor 68%, transparent);
		--wcsuite-frontend-border: color-mix(in srgb, currentColor 18%, transparent);
	}
}

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

.wcsuite-pricelist__header {
	margin: 0 0 24px;
}

.wcsuite-pricelist__heading {
	color: inherit;
	margin: 0;
}

.wcsuite-pricelist__intro {
	color: var(--wcsuite-frontend-muted);
	margin: 8px 0 0;
}

.wcsuite-pricelist__items {
	display: grid;
	gap: 0;
}

.wcsuite-pricelist__item--service {
	align-items: start;
	border-bottom: 1px solid var(--wcsuite-frontend-border);
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: var(--wcsuite-frontend-row-gap) 0;
}

.wcsuite-pricelist__item--service:first-child {
	padding-top: 0;
}

.wcsuite-pricelist__content {
	min-width: 0;
}

.wcsuite-pricelist__title {
	font-weight: 650;
	line-height: 1.35;
}

.wcsuite-pricelist__description {
	color: var(--wcsuite-frontend-muted);
	font-size: 0.94em;
	line-height: 1.55;
	margin-top: 5px;
}

.wcsuite-pricelist__pricing {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	justify-content: flex-end;
	line-height: 1.35;
	text-align: right;
	white-space: nowrap;
}

.wcsuite-pricelist__price {
	font-variant-numeric: tabular-nums;
	font-weight: 650;
}

.wcsuite-pricelist__price--regular {
	color: var(--wcsuite-frontend-muted);
	font-weight: 500;
}

.wcsuite-pricelist__price--action {
	color: var(--wcsuite-frontend-action);
	font-weight: 700;
	text-decoration: none;
}

.wcsuite-pricelist__suffix {
	color: var(--wcsuite-frontend-muted);
	font-size: 0.88em;
	white-space: normal;
}

.wcsuite-pricelist__divider {
	margin: 24px 0;
}

hr.wcsuite-pricelist__divider--plain {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--wcsuite-frontend-border);
	height: 0;
}

.wcsuite-pricelist__divider--titled {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
}

.wcsuite-pricelist__divider-line {
	border-top: 1px solid var(--wcsuite-frontend-border);
	height: 0;
}

.wcsuite-pricelist__divider-title {
	font-size: 0.88em;
	font-weight: 700;
	letter-spacing: 0.035em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wcsuite-pricelist__cta {
	margin-top: 24px;
}

.wcsuite-pricelist__button {
	background: var(--wcsuite-frontend-accent);
	border: 1px solid var(--wcsuite-frontend-accent);
	border-radius: var(--wcsuite-frontend-radius);
	color: #fff;
	display: inline-flex;
	font-weight: 650;
	justify-content: center;
	line-height: 1.2;
	padding: 11px 18px;
	text-decoration: none;
	transition: filter 120ms ease, transform 120ms ease;
}

.wcsuite-pricelist__button:hover,
.wcsuite-pricelist__button:focus {
	color: #fff;
	filter: brightness(0.92);
	text-decoration: none;
}

.wcsuite-pricelist__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.wcsuite-pricelist__item--service {
		gap: 8px;
		grid-template-columns: minmax(0, 1fr);
	}

	.wcsuite-pricelist__pricing {
		justify-content: flex-start;
		text-align: left;
	}

	.wcsuite-pricelist__divider {
		margin: 20px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcsuite-pricelist__button {
		transition: none;
	}
}

/* Team */
.wcsuite-team {
	--wcsuite-team-columns: 3;
	--wcsuite-team-gap: 28px;
	--wcsuite-team-card-background: transparent;
	--wcsuite-team-card-border: transparent;
	--wcsuite-team-image-ratio: 4 / 5;
}

.wcsuite-team__grid {
	display: grid;
	gap: var(--wcsuite-team-gap);
	grid-template-columns: repeat(var(--wcsuite-team-columns), minmax(0, 1fr));
}

.wcsuite-team__card {
	background: var(--wcsuite-team-card-background);
	border: 1px solid var(--wcsuite-team-card-border);
	border-radius: var(--wcsuite-frontend-radius);
	min-width: 0;
	overflow: hidden;
}

.wcsuite-team__media {
	aspect-ratio: var(--wcsuite-team-image-ratio);
	background: color-mix(in srgb, currentColor 5%, transparent);
	overflow: hidden;
	position: relative;
}

.wcsuite-team__image {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.wcsuite-team__image--primary {
	opacity: 1;
}

.wcsuite-team__image--hover {
	opacity: 0;
}

.wcsuite-team__content {
	padding: 18px 0 0;
}

.wcsuite-team__name {
	color: inherit;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}

.wcsuite-team__role {
	color: var(--wcsuite-frontend-muted);
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.4;
	margin-top: 5px;
}

.wcsuite-team__description {
	color: var(--wcsuite-frontend-muted);
	font-size: 0.95em;
	line-height: 1.6;
	margin-top: 12px;
}

.wcsuite-team__description > :first-child {
	margin-top: 0;
}

.wcsuite-team__description > :last-child {
	margin-bottom: 0;
}

.wcsuite-team__contacts {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 16px;
}

.wcsuite-team__contact {
	align-items: center;
	border: 1px solid var(--wcsuite-frontend-border);
	border-radius: 999px;
	color: inherit;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	text-decoration: none;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
	width: 36px;
}

.wcsuite-team__contact:hover,
.wcsuite-team__contact:focus {
	background: var(--wcsuite-frontend-accent);
	border-color: var(--wcsuite-frontend-accent);
	color: #fff;
	text-decoration: none;
}

.wcsuite-team__contact:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wcsuite-team__contact-icon {
	display: block;
	height: 18px;
	width: 18px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
	.wcsuite-team__card--has-hover-image .wcsuite-team__image {
		transition: opacity 220ms ease;
	}

	.wcsuite-team__card--has-hover-image:hover .wcsuite-team__image--primary {
		opacity: 0;
	}

	.wcsuite-team__card--has-hover-image:hover .wcsuite-team__image--hover {
		opacity: 1;
	}
}

@media (max-width: 900px) {
	.wcsuite-team--columns-3 .wcsuite-team__grid,
	.wcsuite-team--columns-4 .wcsuite-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.wcsuite-team__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcsuite-team__image,
	.wcsuite-team__contact {
		transition: none;
	}
}
