/*
 * Giltech Product Categories – Elementor widget styles.
 * Everything is scoped under .gwpc-section so it cannot leak into the theme or other widgets.
 * Values reproduce giltech-product-categories-premium-ui-v2.html exactly.
 * Elementor style controls override them (their selectors are more specific).
 */

.gwpc-section,
.gwpc-section *,
.gwpc-section *::before,
.gwpc-section *::after {
	box-sizing: border-box;
}

.gwpc-section {
	--gwpc-ease: cubic-bezier(.2, .72, .2, 1);
	--gwpc-glow: rgba(49, 95, 168, .055);
	position: relative;
	width: 100%;
	padding: 52px clamp(15px, 4vw, 58px) 56px;
	overflow: hidden;
	color: #17191D;
	font-family: "DM Sans", Manrope, Arial, sans-serif;
	line-height: normal;
	text-align: start;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* Soft blue glow in the top-right corner (kept as its own layer so the background control still works). */
.gwpc-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(circle at 92% 8%, var(--gwpc-glow), transparent 22rem);
	pointer-events: none;
}

/* Edge-to-edge: CSS fallback, the script then sets exact pixel values. */
.gwpc-section.gwpc-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.gwpc-section .gwpc-inner {
	position: relative;
	z-index: 1;
	max-width: 1360px;
	margin: 0 auto;
}

/* ---------- Header ---------- */
.gwpc-section .gwpc-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 35px;
	padding-bottom: 22px;
	border-bottom: 1px solid #E0E2E4;
}

.gwpc-section .gwpc-kicker {
	margin: 0 0 9px;
	color: #E30613;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.gwpc-section .gwpc-title {
	margin: 0;
	padding: 0;
	color: #17191D;
	font-family: inherit;
	font-size: clamp(36px, 4.3vw, 56px);
	font-weight: 400;
	line-height: .96;
	letter-spacing: -.05em;
	text-transform: none;
}

.gwpc-section .gwpc-head-copy {
	max-width: 480px;
	margin: 0;
	color: #75797F;
	font-size: 13px;
	line-height: 1.8;
}

/* ---------- Grid ---------- */
.gwpc-section .gwpc-grid {
	display: grid;
	grid-template-columns: 1.18fr .82fr .82fr;
	grid-auto-rows: 250px;
	gap: 10px;
	margin-top: 16px;
}

.gwpc-section .gwpc-card,
.gwpc-section .gwpc-card:visited,
.gwpc-section .gwpc-card:hover,
.gwpc-section .gwpc-card:focus {
	color: #fff;
	text-decoration: none;
}

.gwpc-section .gwpc-card {
	position: relative;
	display: block;
	min-width: 0;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background-color: #ddd;
	box-shadow: 0 10px 25px rgba(20, 22, 24, .04);
	isolation: isolate;
	cursor: pointer;
}

.gwpc-section div.gwpc-card {
	cursor: default;
}

.gwpc-section .gwpc-card--feature {
	grid-row: span 2;
}

/* Bottom-fade overlay */
.gwpc-section .gwpc-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(8, 10, 12, .02) 20%, rgba(8, 10, 12, .82) 100%);
	pointer-events: none;
}

/* Red -> blue bar that draws in on hover */
.gwpc-section .gwpc-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	z-index: 4;
	background: linear-gradient(90deg, var(--gwpc-line-a, #E30613), var(--gwpc-line-b, #315FA8));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .42s var(--gwpc-ease);
	pointer-events: none;
}

.gwpc-section .gwpc-card:hover::after {
	transform: scaleX(1);
}

.gwpc-section .gwpc-card:focus-visible {
	outline: 2px solid #E30613;
	outline-offset: -3px;
}

.gwpc-section .gwpc-card .gwpc-card-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center;
	transition: transform .7s var(--gwpc-ease), filter .7s var(--gwpc-ease);
}

.gwpc-section .gwpc-card:hover .gwpc-card-img {
	transform: scale(1.06);
	filter: saturate(1.06);
}

/* ---------- Number + corner arrow ---------- */
.gwpc-section .gwpc-topbar {
	position: absolute;
	top: 13px;
	left: 13px;
	right: 13px;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.gwpc-section .gwpc-num,
.gwpc-section .gwpc-arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

.gwpc-section .gwpc-num {
	background: rgba(255, 255, 255, .92);
	color: #17191D;
	font-size: 9px;
	font-weight: 500;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.gwpc-section .gwpc-arrow {
	margin-left: auto;
	background: rgba(255, 255, 255, .9);
	color: #17191D;
	font-size: 14px;
	transition: transform .25s var(--gwpc-ease), background .25s, color .25s;
}

.gwpc-section .gwpc-card:hover .gwpc-arrow {
	transform: translate(2px, -2px);
	background: #E30613;
	color: #fff;
}

/* ---------- Card text ---------- */
.gwpc-section .gwpc-copy {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 3;
}

.gwpc-section .gwpc-line {
	width: 34px;
	height: 2px;
	margin-bottom: 9px;
	background: linear-gradient(90deg, var(--gwpc-line-a, #E30613), var(--gwpc-line-b, #315FA8));
}

.gwpc-section .gwpc-small {
	display: block;
	margin: 0 0 5px;
	color: rgba(255, 255, 255, .68);
	font-size: 8px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.gwpc-section .gwpc-card-title {
	margin: 0 0 6px;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -.03em;
	text-transform: none;
}

.gwpc-section .gwpc-desc {
	max-width: 290px;
	margin: 0;
	color: rgba(255, 255, 255, .8);
	font-size: 10.5px;
	line-height: 1.62;
}

.gwpc-section .gwpc-card--feature .gwpc-card-title {
	font-size: 30px;
}

.gwpc-section .gwpc-card--feature .gwpc-desc {
	max-width: 360px;
	font-size: 11.5px;
}

.gwpc-section .gwpc-pill {
	display: flex;
	align-items: center;
	gap: 5px;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	margin-top: 9px;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px;
	background: rgba(255, 255, 255, .11);
	color: rgba(255, 255, 255, .84);
	font-size: 7px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.gwpc-section .gwpc-pill-arrow {
	color: #fff;
}

/* ---------- Entrance animation (optional via switch) ---------- */
.gwpc-section.gwpc-animate .gwpc-card {
	opacity: 0;
	transform: translateY(18px);
	animation: gwpcCardIn .65s var(--gwpc-ease) forwards;
}

.gwpc-section.gwpc-animate .gwpc-card:nth-child(1)    { animation-delay: .03s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(2)    { animation-delay: .09s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(3)    { animation-delay: .15s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(4)    { animation-delay: .21s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(5)    { animation-delay: .27s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(6)    { animation-delay: .33s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(7)    { animation-delay: .39s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(8)    { animation-delay: .45s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(9)    { animation-delay: .51s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(10)   { animation-delay: .57s; }
.gwpc-section.gwpc-animate .gwpc-card:nth-child(n+11) { animation-delay: .63s; }

@keyframes gwpcCardIn {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Bottom bar ---------- */
.gwpc-section .gwpc-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 15px;
	padding-top: 16px;
	border-top: 1px solid #E0E2E4;
}

.gwpc-section .gwpc-note {
	color: #75797F;
	font-size: 10px;
	line-height: 1.5;
}

.gwpc-section .gwpc-note-title {
	display: inline-block;
	margin-right: 4px;
	color: #17191D;
	font-size: 12px;
}

/* ---------- Button (same look + hover as the HTML) ---------- */
.gwpc-section .gwpc-btn,
.gwpc-section .gwpc-btn:visited,
.gwpc-section .gwpc-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 39px;
	margin: 0;
	padding: 0 15px;
	border: 0;
	border-radius: 9px;
	background: #17191D;
	box-shadow: none;
	color: #fff;
	font-size: 8px;
	font-weight: 400;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .25s var(--gwpc-ease), transform .25s var(--gwpc-ease);
}

.gwpc-section .gwpc-btn:hover {
	background: #E30613;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

.gwpc-section .gwpc-btn:focus-visible {
	outline: 2px solid #E30613;
	outline-offset: 3px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1050px) {
	.gwpc-section .gwpc-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 255px;
	}
}

/* ---------- Large phone / small tablet ---------- */
@media (max-width: 760px) {
	.gwpc-section .gwpc-head {
		display: block;
	}

	.gwpc-section .gwpc-head-copy {
		max-width: 690px;
		margin-top: 12px;
	}

	.gwpc-section .gwpc-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 235px;
		gap: 8px;
	}

	.gwpc-section .gwpc-card--feature {
		grid-column: span 2;
		grid-row: span 1;
	}

	.gwpc-section .gwpc-card--feature .gwpc-card-title {
		font-size: 25px;
	}

	.gwpc-section .gwpc-card--feature .gwpc-desc {
		font-size: 10.5px;
	}
}

/* ---------- Phone ---------- */
@media (max-width: 520px) {
	.gwpc-section {
		padding: 38px 12px 42px;
	}

	.gwpc-section .gwpc-title {
		font-size: 36px;
	}

	.gwpc-section .gwpc-head-copy {
		font-size: 11.5px;
	}

	.gwpc-section .gwpc-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 265px;
		gap: 8px;
	}

	.gwpc-section .gwpc-card--feature {
		grid-column: auto;
		grid-row: span 1;
	}

	.gwpc-section .gwpc-card--feature .gwpc-card-title {
		font-size: 24px;
	}

	.gwpc-section .gwpc-desc {
		font-size: 10px;
	}

	.gwpc-section .gwpc-bottom {
		display: block;
	}

	.gwpc-section .gwpc-btn {
		display: flex;
		width: 100%;
		margin-top: 10px;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.gwpc-section.gwpc-animate .gwpc-card {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.gwpc-section *,
	.gwpc-section *::before,
	.gwpc-section *::after {
		transition: none !important;
	}
}
