/**
 * Variant CSS: offer--photo-service-cards
 *
 * Services as three photo-topped cards: image, then kicker, title, line and a
 * link. The only photo-led offer variant (the others are icon/text/metric), so
 * it sells services visually — for businesses where the result shows in a photo.
 * Images are swapped by the photo system (in order). Text stays --ink
 * (polarity-aware); kicker, em and the link take --accent. Cards stack to one
 * column on mobile. Part of the `offer` role.
 */

body.aibt-universal .universal-offer--photo-service-cards {
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
}

/* Intro. */
body.aibt-universal .universal-offer--photo-service-cards .universal-offer__intro {
	margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 auto var(--space-sm) auto !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

/* Cards row. */
body.aibt-universal .universal-offer--photo-service-cards .universal-offer__cards {
	gap: clamp(1.2rem, 3vw, 2rem) !important;
	align-items: stretch !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--decor-radius, 16px);
	background: color-mix(in srgb, var(--ink) 3%, var(--bg-main, transparent));
	border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
	box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.4);
	transition: transform var(--duration-fast, 0.18s) var(--ease-default, ease),
		box-shadow var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 28px 52px -28px rgba(0, 0, 0, 0.46);
}

/* Photo flush to card top. */
body.aibt-universal .universal-offer--photo-service-cards .universal-offer__photo {
	margin: 0 !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Card body. */
body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: clamp(1.2rem, 2.5vw, 1.6rem) !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-xs, 0.35rem) 0 !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-title {
	font-family: var(--font-display) !important;
	font-size: clamp(1.2rem, 2.2vw, 1.45rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--ink) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.74;
	margin: 0 0 var(--space-md) 0 !important;
}

/* Push the link to the bottom so cards align. */
body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-cta-wrap {
	margin-top: auto !important;
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-cta .wp-block-button__link {
	padding: 0 !important;
	background: transparent !important;
	color: var(--accent) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: var(--text-sm) !important;
	border: none !important;
	transition: gap var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-cta .wp-block-button__link:hover {
	color: var(--accent-hover, var(--accent)) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Keyboard focus ring — the card link had hover but no visible focus affordance. */
body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* One column on mobile. */
@media (max-width: 781px) {
	body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card {
		flex-basis: 100% !important;
	}
}

/* Reduced motion — the card lift + link gap transition should not animate. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card,
	body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card-cta .wp-block-button__link {
		transition: none;
	}
	body.aibt-universal .universal-offer--photo-service-cards .universal-offer__card:hover {
		transform: none;
	}
}

/* A8/A9 left-shift fix (2026-06-08): centered intro element(s) were max-width-capped by
   WP constrained layout but pinned left by horizontal margin:0. Force margin-inline:auto.
   Section class doubled -> specificity (0,4,1) beats h2.__headline-style rules; harmless on
   already-centered elements (auto margins compute to 0). Only left/right are overridden. */
body.aibt-universal .universal-offer--photo-service-cards.universal-offer--photo-service-cards .universal-offer__headline { margin-inline: auto !important; }
