/* Finclix Client Portal — shop presentation for service products. Scoped to .fcp-* classes. */

/* ---------- "How it works" intro ---------- */
.fcp-shop-intro {
	margin: 0 0 40px;
	padding: 32px;
	border-radius: 14px;
	background: var(--theme-color1, #144443);
	color: rgba(255, 255, 255, 0.82);
}
.fcp-shop-intro__eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-color3, #c8f169);
}
.fcp-shop-intro__title {
	margin: 0 0 24px;
	color: #fff;
	font-size: clamp(24px, 3vw, 32px);
}
.fcp-shop-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fcp-shop-step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
}
.fcp-shop-step__num {
	flex: 0 0 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--theme-color3, #c8f169);
	color: var(--theme-color2, #133b3a);
	font-weight: 700;
	line-height: 36px;
	text-align: center;
}
.fcp-shop-step__body strong {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 16px;
}
.fcp-shop-step__body span {
	font-size: 14px;
	line-height: 1.55;
}

/* Sorting / per-page controls add nothing for a short list of services. */
.fcp-services-shop .tm-wc-archive-before-loop .woocommerce-result-count,
.fcp-services-shop .tm-wc-archive-before-loop .woocommerce-perpage,
.fcp-services-shop .tm-wc-archive-before-loop .woocommerce-ordering {
	display: none;
}

/* ---------- Service cards ---------- */
.fcp-service-card .tm-woo-product-item-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(11, 49, 48, 0.1);
	border-radius: 14px;
	background: #fff;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.fcp-service-card .tm-woo-product-item-inner:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgba(11, 49, 48, 0.35);
}
.fcp-service-card .product-header-wrapper .thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.fcp-service-card .product-details {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 22px 24px;
	text-align: left;
}
.fcp-service-card .product-details .product-title {
	order: 1;
	margin: 0 0 10px;
	font-size: 18px;
}
.fcp-service-card .product-details .price {
	order: 2;
	margin: 0 0 14px;
}
.fcp-service-card .product-details .fcp-card-desc {
	order: 3;
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.6;
}
.fcp-service-card .product-details .fcp-card-needs {
	order: 4;
	margin: 0 0 20px;
}
.fcp-service-card .product-details .product-categories {
	order: 5;
}

/* Theme hides the loop button until hover and floats it over the image: show it as the card's CTA. */
.woocommerce .products .tm-woo-product-item.fcp-service-card.product .tm-woo-product-item-inner .product-details .product-add-to-cart.woo-cart-holder {
	position: static;
	top: auto;
	bottom: auto;
	order: 10;
	width: 100%;
	height: auto;
	margin-top: auto;
}
.woocommerce .products .tm-woo-product-item.fcp-service-card.product .tm-woo-product-item-inner .product-details .product-add-to-cart.woo-cart-holder a.fcp-start-request {
	display: block;
	width: 100%;
	visibility: visible;
	opacity: 1;
	transform: none;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 13px;
	text-align: center;
}

.fcp-service-card .fcp-price-note {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(200, 241, 105, 0.35);
	color: var(--headings-color, #0b3130);
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.6;
}

.fcp-card-needs__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--headings-color, #0b3130);
}
.fcp-card-needs ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.fcp-card-needs li {
	position: relative;
	margin: 0 0 4px;
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.5;
}
.fcp-card-needs li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--theme-color3, #c8f169) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23133b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Branded tile for services without a product image. */
.fcp-service-tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 20px;
	box-sizing: border-box;
	background:
		radial-gradient(circle at 85% 15%, rgba(200, 241, 105, 0.22), transparent 45%),
		linear-gradient(135deg, var(--theme-color1, #144443), var(--theme-color2, #133b3a));
	color: var(--theme-color3, #c8f169);
}
.fcp-service-tile__name {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
}

/* Single product page CTA spacing. */
.fcp-single-cta .fcp-start-request {
	min-width: 220px;
	text-align: center;
}

@media (max-width: 991px) {
	.fcp-shop-steps {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.fcp-shop-intro {
		padding: 24px 20px;
	}
}

/* Equal card heights: fixed-size sections so buttons line up across a row. */
.fcp-service-card .product-details .product-title {
	min-height: 2.6em;
	line-height: 1.3;
}
.fcp-service-card .product-details .fcp-card-desc {
	display: -webkit-box;
	min-height: 4.8em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	line-height: 1.6;
}
.fcp-service-card .product-details .fcp-card-needs {
	width: 100%;
	min-height: 124px;
}
.fcp-card-needs--none p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}
.fcp-service-card .fcp-card-needs li {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ---------- Service page calls to action ---------- */
.fcp-page-cta {
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.82);
	background:
		radial-gradient(circle at 90% 10%, rgba(200, 241, 105, 0.18), transparent 50%),
		linear-gradient(135deg, var(--theme-color1, #144443), var(--theme-color2, #133b3a));
}
.fcp-page-cta p {
	margin: 0;
}
.fcp-page-cta .fcp-page-cta__eyebrow {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-color3, #c8f169);
}
.fcp-page-cta .fcp-page-cta__title {
	margin-bottom: 10px;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}
.fcp-page-cta .fcp-page-cta__text {
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.6;
}
.fcp-page-cta a.fcp-page-cta__button,
.fcp-page-cta a.fcp-page-cta__button:visited {
	display: inline-block;
	padding: 15px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--theme-color3, #c8f169);
	color: var(--theme-color2, #133b3a);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.fcp-page-cta a.fcp-page-cta__button:hover,
.fcp-page-cta a.fcp-page-cta__button:focus-visible {
	background: #fff;
	color: var(--theme-color2, #133b3a);
	transform: translateY(-1px);
}

/* Sidebar card */
.fcp-page-cta--card {
	width: 100%;
	margin: 24px 0 0;
	padding: 28px 26px;
	border-radius: 14px;
}
.fcp-page-cta--card a.fcp-page-cta__button {
	display: block;
	width: 100%;
}

/* Banner after content */
.fcp-page-cta--banner {
	width: calc(100% - 32px);
	max-width: 1316px;
	margin: 56px auto 80px;
	padding: 40px 48px;
	border-radius: 16px;
}
.fcp-page-cta--banner .fcp-page-cta__inner {
	display: flex;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
}
.fcp-page-cta--banner .fcp-page-cta__title {
	font-size: clamp(22px, 2.4vw, 28px);
}
.fcp-page-cta--banner .fcp-page-cta__text {
	max-width: 620px;
	margin-bottom: 0;
}
.fcp-page-cta--banner a.fcp-page-cta__button {
	flex: 0 0 auto;
}

@media (max-width: 767px) {
	.fcp-page-cta--banner {
		padding: 28px 22px;
	}
	.fcp-page-cta--banner .fcp-page-cta__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}
}
