/**
 * Sites archive hero — white card layout matching reference design.
 */

/* -------------------------------------------------------------------------
 * Info row
 * ---------------------------------------------------------------------- */

.gpl-sites-hero__info {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	position: relative;
	z-index: 1;
}

.gpl-sites-hero__info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: var(--gpl-orange);
	font-size: 15px;
	line-height: 1;
	flex-shrink: 0;
}

.gpl-sites-hero__counts {
	margin: 0 !important;
	font-family: var(--mt-font__main);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--mt-color__heading);
}

.gpl-sites-hero__counts-title,
.gpl-sites-hero__counts-meta {
	font-weight: 500;
	color: var(--mt-color__heading);
}

/* -------------------------------------------------------------------------
 * Heading + CTA
 * ---------------------------------------------------------------------- */

.gpl-sites-hero__heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	position: relative;
	z-index: 1;
}

.gpl-sites-hero__heading-text {
	flex: 1 1 auto;
	min-width: 0;
}

.gpl-sites-hero__title,
.gpl-sites-hero__page-header .page-header__title,
.woocommerce-shop .page-header .page-header__title {
	margin: 0 !important;
	font-family: var(--mt-font__main) !important;
	font-size: clamp(1.75rem, 2.4vw, 2.5rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	color: var(--mt-color__heading) !important;
	letter-spacing: -0.02em;
}

.gpl-sites-hero__title-line {
	display: block;
}

.gpl-sites-hero__title-line--main {
	margin: 0;
}

.gpl-sites-hero__title-line--sub {
	position: relative;
	display: inline-block;
	margin-top: 2px;
	padding-bottom: 12px;
	font-weight: 800;
}

.gpl-sites-hero__title-line--sub::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: var(--gpl-orange);
}

.gpl-sites-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
	margin-top: 0;
	padding: 14px 22px;
	border-radius: 8px;
	background: var(--gpl-orange);
	color: #fff !important;
	font-family: var(--mt-font__main);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--gpl-orange) 28%, transparent);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gpl-sites-hero__cta:hover,
.gpl-sites-hero__cta:focus {
	background: color-mix(in srgb, var(--gpl-orange) 85%, #000);
	color: #fff !important;
	box-shadow: 0 10px 22px color-mix(in srgb, var(--gpl-orange) 34%, transparent);
	outline: none;
}

.gpl-sites-hero__cta:focus-visible {
	outline: 2px solid var(--mt-color__heading);
	outline-offset: 2px;
}

.gpl-sites-hero__cta-icon {
	font-size: 0.95rem;
	line-height: 1;
}

.gpl-sites-hero__heading-row--category {
	align-items: center;
	flex-wrap: wrap;
}

.gpl-sites-hero__heading-row--category .page-header__title {
	flex: 1 1 auto;
}

/* -------------------------------------------------------------------------
 * Description + Also check
 * ---------------------------------------------------------------------- */

.gpl-sites-hero__body {
	position: relative;
	z-index: 1;
	margin-bottom: 30px;
}

.gpl-sites-hero__desc {
	margin: 0 0 28px !important;
	max-width: 52rem;
	font-family: var(--mt-font__main);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--gpl-blue);
}

.gpl-sites-hero__also-check {
	margin: 0;
	padding: 0;
}

.gpl-sites-hero__also-check-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid color-mix(in srgb, var(--gpl-orange) 35%, #fff);
	border-radius: 10px;
	background: color-mix(in srgb, var(--gpl-orange) 8%, #fff);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gpl-sites-hero__also-check-toggle:hover,
.gpl-sites-hero__also-check-toggle:focus {
	background: color-mix(in srgb, var(--gpl-orange) 12%, #fff);
	border-color: color-mix(in srgb, var(--gpl-orange) 50%, #fff);
	outline: none;
}

.gpl-sites-hero__also-check-toggle:focus-visible {
	outline: 2px solid var(--gpl-orange);
	outline-offset: 2px;
}

.gpl-sites-hero__also-check-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--gpl-orange);
	color: #fff;
	font-size: 0.75rem;
	flex-shrink: 0;
}

.gpl-sites-hero__also-check-label {
	flex: 1 1 auto;
	font-family: var(--mt-font__main);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--mt-color__heading);
	line-height: 1.2;
}

.gpl-sites-hero__also-check-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--gpl-orange);
	font-size: 0.75rem;
	transition: transform 0.2s ease;
}

.gpl-sites-hero__also-check.is-open .gpl-sites-hero__also-check-chevron {
	transform: rotate(180deg);
}

.gpl-sites-hero__also-check-panel {
	margin-top: 18px;
}

.gpl-sites-hero__also-check-panel[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Cards grid
 * ---------------------------------------------------------------------- */

.gpl-sites-hero__cards,
#menu-publisher-list-pages.gpl-sites-hero__cards,
#menu-publisher-list-pages-1.gpl-sites-hero__cards {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	width: 100%;
}

.gpl-sites-hero__card-item,
#menu-publisher-list-pages.gpl-sites-hero__cards > .menu-item,
#menu-publisher-list-pages-1.gpl-sites-hero__cards > .menu-item {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
}

/* Reset legacy ::before emoji icons from style.css */
.gpl-sites-hero__cards > .menu-item::before,
#menu-publisher-list-pages.gpl-sites-hero__cards > .menu-item::before,
#menu-publisher-list-pages-1.gpl-sites-hero__cards > .menu-item::before {
	content: none !important;
	display: none !important;
}

.gpl-sites-hero__card {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	height: 100%;
	padding: 14px 14px 14px 14px;
	border: 1px solid color-mix(in srgb, var(--mt-color__heading) 12%, #fff);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(7, 22, 56, 0.04);
	text-decoration: none !important;
	color: var(--mt-color__heading) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gpl-sites-hero__card:hover,
.gpl-sites-hero__card:focus {
	border-color: color-mix(in srgb, var(--gpl-orange) 35%, #fff);
    box-shadow: 0 5px 15px rgba(7, 22, 56, 0.1);
    color: var(--mt-color__heading) !important;
    outline: none;
}

.gpl-sites-hero__card:focus-visible {
	outline: 2px solid var(--gpl-orange);
	outline-offset: 2px;
}

.gpl-sites-hero__card:hover .gpl-sites-hero__card-arrow,
.gpl-sites-hero__card:focus .gpl-sites-hero__card-arrow {
	transform: translateX(3px);
	background: color-mix(in srgb, var(--gpl-orange) 18%, #fff);
}

.gpl-sites-hero__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--gpl-orange) 10%, #fff);
	color: var(--gpl-orange);
	position: relative;
}

.gpl-sites-hero__card-icon::before {
	content: "\f0c1";
	font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 1rem;
	line-height: 1;
	color: var(--gpl-orange);
}

.gpl-sites-hero__card-label {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--mt-font__main);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--mt-color__heading);
}

.gpl-sites-hero__card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--gpl-orange) 10%, #fff);
	color: var(--gpl-orange);
	font-size: 0.7rem;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Card icons by menu item ID */
.gpl-sites-hero__cards .menu-item-66391 .gpl-sites-hero__card-icon::before { content: "\f005"; }
.gpl-sites-hero__cards .menu-item-66392 .gpl-sites-hero__card-icon::before {
	content: "100";
	font-family: var(--mt-font__main);
	font-weight: 800;
	font-size: 0.7rem;
	letter-spacing: -0.04em;
}
.gpl-sites-hero__cards .menu-item-66637 .gpl-sites-hero__card-icon::before { content: "\f06c"; }
.gpl-sites-hero__cards .menu-item-66638 .gpl-sites-hero__card-icon::before { content: "\f522"; }
.gpl-sites-hero__cards .menu-item-76769 .gpl-sites-hero__card-icon::before { content: "\f0c1"; }
.gpl-sites-hero__cards .menu-item-726257 .gpl-sites-hero__card-icon::before { content: "\f004"; }
.gpl-sites-hero__cards .menu-item-66944 .gpl-sites-hero__card-icon::before { content: "\f03a"; }
.gpl-sites-hero__cards .menu-item-110207 .gpl-sites-hero__card-icon::before { content: "\f09e"; }
.gpl-sites-hero__cards .menu-item-178698 .gpl-sites-hero__card-icon::before { content: "\f002"; }
.gpl-sites-hero__cards .menu-item-193071 .gpl-sites-hero__card-icon::before {
	content: "\f379";
	font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands";
	font-weight: 400;
}
.gpl-sites-hero__cards .menu-item-218391 .gpl-sites-hero__card-icon::before { content: "\f0e7"; }
.gpl-sites-hero__cards .menu-item-283603 .gpl-sites-hero__card-icon::before { content: "\f0ac"; }

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.gpl-sites-hero__cards,
	#menu-publisher-list-pages.gpl-sites-hero__cards,
	#menu-publisher-list-pages-1.gpl-sites-hero__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.woocommerce-shop .elementor-element-17c786f .elementor-widget-shortcode,
	.woocommerce-shop .elementor-element-18b5334d .elementor-widget-shortcode,
	.post-type-archive-product .elementor-element-17c786f .elementor-widget-shortcode,
	.post-type-archive-product .elementor-element-18b5334d .elementor-widget-shortcode {
		padding: 28px 28px 8px;
	}

	.woocommerce-shop .elementor-element-16a1336e,
	.woocommerce-shop .elementor-element-44c679d2,
	.post-type-archive-product .elementor-element-16a1336e,
	.post-type-archive-product .elementor-element-44c679d2 {
		padding: 0 28px 8px !important;
	}

	.woocommerce-shop .elementor-element-2f62fb0c,
	.woocommerce-shop .elementor-element-618e9c42,
	.post-type-archive-product .elementor-element-2f62fb0c,
	.post-type-archive-product .elementor-element-618e9c42 {
		padding: 8px 28px 32px !important;
	}
}

@media (max-width: 767px) {
	.gpl-sites-hero__heading-row {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.gpl-sites-hero__cta {
		width: 100%;
		white-space: normal;
		text-align: center;
	}

	.gpl-sites-hero__cards,
	#menu-publisher-list-pages.gpl-sites-hero__cards,
	#menu-publisher-list-pages-1.gpl-sites-hero__cards {
		grid-template-columns: 1fr;
	}

	.gpl-sites-hero__title,
	.gpl-sites-hero__page-header .page-header__title,
	.woocommerce-shop .page-header .page-header__title {
		font-size: 1.625rem !important;
	}

	.gpl-sites-hero__desc {
		font-size: 0.9375rem;
		margin-bottom: 22px !important;
	}

	.woocommerce-shop .elementor-element-17c786f .elementor-widget-shortcode,
	.woocommerce-shop .elementor-element-18b5334d .elementor-widget-shortcode,
	.post-type-archive-product .elementor-element-17c786f .elementor-widget-shortcode,
	.post-type-archive-product .elementor-element-18b5334d .elementor-widget-shortcode {
		padding: 22px 18px 6px;
		border-radius: 14px 14px 0 0;
	}

	.woocommerce-shop .elementor-element-16a1336e,
	.woocommerce-shop .elementor-element-44c679d2,
	.post-type-archive-product .elementor-element-16a1336e,
	.post-type-archive-product .elementor-element-44c679d2 {
		padding: 0 18px 6px !important;
	}

	.woocommerce-shop .elementor-element-2f62fb0c,
	.woocommerce-shop .elementor-element-618e9c42,
	.post-type-archive-product .elementor-element-2f62fb0c,
	.post-type-archive-product .elementor-element-618e9c42 {
		padding: 6px 18px 24px !important;
		border-radius: 0 0 14px 14px;
		margin-bottom: 20px !important;
	}

	.woocommerce-shop .elementor-element-17c786f .elementor-widget-shortcode::after,
	.woocommerce-shop .elementor-element-18b5334d .elementor-widget-shortcode::after,
	.post-type-archive-product .elementor-element-17c786f .elementor-widget-shortcode::after,
	.post-type-archive-product .elementor-element-18b5334d .elementor-widget-shortcode::after,
	.woocommerce-shop .elementor-element-16a1336e::after,
	.woocommerce-shop .elementor-element-44c679d2::after,
	.post-type-archive-product .elementor-element-16a1336e::after,
	.post-type-archive-product .elementor-element-44c679d2::after {
		opacity: 0.35;
		transform: scale(0.85);
	}
}
