/* ==========================================================================
   GCF Brand Cards — additions on top of Mascot's service-block-style3 CSS.
   Card layout, image mask and image hover effects come from Mascot unchanged.
   ========================================================================== */

/* Brand logo in place of the icon: similar visual size to the 60px icons. */
.gcf-brand-card .gcf-brand-card__logo {
	display: flex;
	align-items: center;
	height: 60px;
}
.gcf-brand-card .gcf-brand-card__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 150px;
	max-height: 60px;
	object-fit: contain;
}

/* The icon flips on hover in the demo; a flipped logo would read backwards. */
html body .gcf-brand-card .inner-block:hover .content-box .inner-box .icon {
	transform: none;
}

/* Product count: small, uppercase, letter-spaced (category-card style). */
.gcf-brand-card .gcf-brand-card__count {
	margin: 0 0 8px;
	font-family: var(--gcf-font, inherit);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gcf-grey, #6B6B6B); /* 5.3:1 on white */
}

/* Mascot sets the description to 60% brown (about 3:1); use readable body text. */
html body .gcf-brand-card .inner-block .content-box .inner-box .service-details {
	color: var(--text-color, #555);
	/* Reserve three lines so the buttons and images line up across cards
	   whatever the description length. */
	min-height: calc(3 * 1.9em);
}

@media (prefers-reduced-motion: reduce) {
	.gcf-brand-card .inner-block .image img,
	.gcf-brand-card .icon {
		transition: none !important;
	}
}

/* Card photo: a fixed 294 px strip (Mascot's frame height), cropped by the browser only, with a
   per-card focus point ("Image focus" in the widget → --gcf-card-focus) so portrait photos keep the
   pack/logo in view at every width. Mascot's hover (first image stretched + blurred) is unchanged. */
html body .gcf-brand-card .inner-block .image img {
	height: 294px;
	max-width: none;
	object-fit: cover;
	object-position: var(--gcf-card-focus, 50% 50%);
}

/* Top-align the logo box: an empty box (spacer for a brand without a logo) would otherwise sit on
   the text baseline below its 32 px margin and push that card's text ~10 px lower. */
.gcf-brand-card .inner-box > .icon {
	vertical-align: top;
}

/* Slider controls (2026-11-10): arrows + dots below the cards, hidden when all cards fit. */
.gcf-brand-cards .swiper-container-inner { overflow: hidden; }
.gcf-bc__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}
.gcf-bc__controls[hidden] { display: none; }
.gcf-bc__dots { display: flex; align-items: center; gap: 2px; }
.gcf-bc__dot {
	position: relative;
	width: 24px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: width 0.35s ease;
}
.gcf-bc__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--gcf-grey, #6B6B6B);
	opacity: 0.5;
	transform: translate(-50%, -50%);
	transition: width 0.35s ease, background-color 0.35s ease, opacity 0.35s ease;
}
.gcf-bc__dot:hover::before { opacity: 1; }
.gcf-bc__dot[aria-current="true"] { width: 44px; }
.gcf-bc__dot[aria-current="true"]::before { width: 32px; background: var(--gcf-red, #EC1C24); opacity: 1; }
.gcf-bc__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(14, 14, 14, 0.18);
	border-radius: 999px;
	background: #fff;
	color: var(--gcf-black, #0E0E0E);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gcf-bc__arrow:hover { background: var(--gcf-red, #EC1C24); border-color: var(--gcf-red, #EC1C24); color: #fff; }
.gcf-bc__arrow:focus-visible,
.gcf-bc__dot:focus-visible {
	outline: 2px solid var(--gcf-red, #EC1C24) !important;
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.gcf-bc__dot,
	.gcf-bc__dot::before,
	.gcf-bc__arrow { transition: none; }
}

/* Keep Mascot's hover copy (first image, stretched 2x and blurred) inside the photo box. Inside the
   slider's clipped frame, its overflow made Chromium drop the right-most card's masked photo. The mask
   already crops to this box, so the hover effect looks the same. */
.gcf-brand-card .inner-block .image { overflow: hidden; }
