/* Frisk Core – Menu Pages widget and the theme mega panel it sits in
   (the demo's Home menu, frisk-html "menu-pages"). Values and steps
   (1500 / 1399 / 1299 / 1199 px) are the template's. Colours come from
   megamenu.css: dark panel by default, light under a dark header bar.
   Elementor controls override everything here. */

/* Links: columns of page names */
.gc-menu-pages {
	display: grid;
	grid-template-columns: repeat(var(--gc-mp-cols, 3), minmax(0, 1fr));
	gap: 40px 24px;
}
.gc-mp-col {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}
.gc-menu-pages .single-menu-page {
	display: block;
	color: var(--gc-mp-color, var(--white-color));
	font-family: var(--title-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 26px;
	letter-spacing: -0.02em;
	text-decoration: none;
	text-transform: none;
}
.gc-menu-pages .single-menu-page:hover,
.gc-menu-pages .single-menu-page:focus-visible,
.gc-menu-pages .single-menu-page.active {
	color: var(--gc-mp-active, var(--theme-color));
}
.gc-menu-pages .single-menu-page:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}
.gc-menu-pages .menu-tag {
	display: inline-block;
	margin-inline-start: 8px;
	padding: 4px 12px;
	border-radius: 40px;
	background-color: var(--gc-mp-tag-bg, #ff1f36);
	color: var(--white-color);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
.gc-menu-pages .menu-category {
	display: block;
	margin-top: 4px;
	color: var(--gc-mp-cat, var(--white-color));
	font-family: var(--body-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
}
.gc-menu-pages .single-menu-page:has(.menu-tag) .menu-category {
	margin-top: 4px;
}
@media (max-width: 1500px) {
	.gc-menu-pages .single-menu-page {
		font-size: 16px;
	}
	.gc-menu-pages .menu-tag {
		font-size: 10px;
	}
	.gc-menu-pages .menu-category {
		font-size: 14px;
	}
}
/* In a header's panel: the same smaller sizes whenever the panel is not wider than the 1296px grid
   (it lines up with the header's content), at any screen width. */
@container gc-mega-page (max-width: 1400px) {
	.gc-menu-pages .single-menu-page {
		font-size: 16px;
	}
	.gc-menu-pages .menu-tag {
		font-size: 10px;
	}
	.gc-menu-pages .menu-category {
		font-size: 14px;
	}
}
@media (max-width: 1299px) {
	.gc-menu-pages .single-menu-page {
		font-size: 14px;
	}
	.gc-menu-pages .menu-tag {
		margin-inline: 5px -13px;
		padding: 4px 10px;
	}
}
/* Narrower panels (laptops 1176px, lg 936px): a little smaller, so a tag stays next to the longest name. */
@container gc-mega-page (max-width: 1250px) {
	.gc-menu-pages .single-menu-page {
		font-size: 15px;
	}
	.gc-menu-pages .menu-tag {
		margin-inline-start: 6px;
		padding: 4px 9px;
	}
}
@container gc-mega-page (max-width: 1000px) {
	.gc-menu-pages {
		column-gap: 16px;
	}
	.gc-menu-pages .single-menu-page {
		font-size: 13px;
	}
	.gc-menu-pages .menu-tag {
		margin-inline-start: 4px;
		padding: 3px 7px;
	}
}

/* Panel box: the template's outer container, class "gc-mega-box" */
.e-con.gc-mega-box {
	--padding-top: 48px;
	--padding-right: 48px;
	--padding-bottom: 48px;
	--padding-left: 48px;
	--overflow: visible scroll;
	max-height: 632px;
	background-color: var(--gc-mega-bg, var(--title-color));
}
.e-con.gc-mega-box::-webkit-scrollbar {
	width: 5px;
	height: 5px;
	border-radius: 0;
}
.e-con.gc-mega-box::-webkit-scrollbar-track,
.e-con.gc-mega-box::-webkit-scrollbar-thumb {
	display: none;
}
@media (max-width: 1399px) {
	.e-con.gc-mega-box {
		max-height: 500px;
	}
}
@media (max-width: 1299px) {
	.e-con.gc-mega-box {
		--padding-top: 30px;
		--padding-right: 20px;
		--padding-bottom: 30px;
		--padding-left: 20px;
		max-height: 400px;
	}
}
@media (max-width: 1199px) {
	.e-con.gc-mega-box {
		max-height: 360px;
	}
}

/* Banner column: class "gc-mega-banner" (background image, heading, button) */
.e-con.gc-mega-banner {
	--padding-top: 0px;
	--padding-right: 46px;
	--padding-bottom: 40px;
	--padding-left: 46px;
	text-align: center;
}
.gc-mega-banner .elementor-heading-title {
	font-size: 30px;
}
.gc-mega-banner .btn {
	display: inline-flex;
	text-transform: uppercase;
}
.gc-mega-banner .btn:focus-visible {
	outline: 2px solid var(--white-color);
	outline-offset: 3px;
}
@media (max-width: 1500px) {
	.e-con.gc-mega-banner {
		--padding-right: 30px;
		--padding-left: 30px;
	}
	.gc-mega-banner .elementor-heading-title {
		font-size: 20px;
	}
	/* The button shrinks with the banner and its heading. */
	.gc-mega-banner .btn {
		padding: 13px 24px;
	}
}
@container gc-mega-page (max-width: 1400px) {
	.e-con.gc-mega-banner {
		--padding-right: 30px;
		--padding-left: 30px;
	}
	.gc-mega-banner .elementor-heading-title {
		font-size: 20px;
	}
	.gc-mega-banner .btn {
		padding: 13px 24px;
	}
}
@media (max-width: 1199px) {
	.gc-mega-banner .elementor-heading-title {
		font-size: 16px;
	}
	.gc-mega-banner .btn {
		padding: 11px 20px;
	}
}

/* Laptops and lg screens: the whole list in one view, without scrolling.
   Tighter rows and less top/bottom padding. The panel scrolls only when the
   window is shorter than the list. */
@media (min-width: 992px) and (max-width: 1399px) {
	.gc-menu-pages {
		row-gap: 24px;
	}
	.gc-mp-col {
		gap: 24px;
	}
	.gc-menu-pages .single-menu-page {
		line-height: 22px;
	}
	.gc-menu-pages .menu-category,
	.gc-menu-pages .single-menu-page:has(.menu-tag) .menu-category {
		margin-top: 2px;
		line-height: 22px;
	}
	.e-con.gc-mega-box {
		--padding-top: 32px;
		--padding-bottom: 32px;
		max-height: calc(100vh - 110px);
	}
}
@media (min-width: 992px) and (max-width: 1199px) {
	.gc-menu-pages {
		row-gap: 20px;
	}
	.gc-mp-col {
		gap: 20px;
	}
	.e-con.gc-mega-box {
		--padding-top: 24px;
		--padding-bottom: 24px;
	}
}
