/* Sketch Global Header — sticky pill, frosted glass on scroll */

:root {
	/* Light frosted glass is the default — the site's primary background is light,
	   so the pill reads light with dark text. Over a dark hero the header modules
	   flip it transparent + white text (see each hero module's CSS). */
	--skgh-bg: rgba(245, 245, 240, 0.72);
	--skgh-bg-solid: #f4f4ef;
	--skgh-bg-scrolled: rgba(245, 245, 240, 0.82);
	--skgh-border: rgba(0, 0, 0, 0.06);
	--skgh-text: #14161d;
	--skgh-muted: #6b7280;
	--skgh-cta: #e6ff4d;
	--skgh-cta-hover: #d6f52f;
	--skgh-cta-text: #14161d;
	--skgh-pill-hover: rgba(0, 0, 0, 0.06);
	--skgh-logo-tile-bg: #14161d;
	--skgh-badge-bg: #b8e6d7;
	--skgh-badge-text: #0a3d2c;
	--skgh-radius: 20px;
	--skgh-radius-tile: 13px;
	--skgh-radius-cta: 13px;
	/* CTA buttons are fully round (pill); the phone item keeps --skgh-radius-cta. */
	--skgh-radius-cta-btn: 999px;
	--skgh-logo-height: 32px;
	--skgh-sticky-offset: 10px;
	--skgh-side-gap: 10px;
	--skgh-z: 100;
	--skgh-font: var(--sk-font, "Saans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

/* Hide BeTheme header when our plugin is replacing it */
body.skgh-hide-theme-header #Header_wrapper,
body.skgh-hide-theme-header #Top_bar,
body.skgh-hide-theme-header #Action_bar,
body.skgh-hide-theme-header .header-classic #Header,
body.skgh-hide-theme-header .header-modern #Header,
body.skgh-hide-theme-header .header-stack #Header,
body.skgh-hide-theme-header .header-split #Header,
body.skgh-hide-theme-header .mfn-header-tmpl-wrapper {
	display: none !important;
}

body.skgh-active #wrap_all,
body.skgh-active #Wrapper {
	padding-top: 0 !important;
}

/* Header */
.skgh {
	position: sticky;
	top: var(--skgh-sticky-offset);
	z-index: var(--skgh-z);
	margin: var(--skgh-side-gap);
	font-family: var(--skgh-font);
	color: var(--skgh-text);
	transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The bar is now a transparent rail; the two dark pills float inside it, pushed
   to the left and right edges. */
.skgh__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Floating pills — left (logo + nav) and right (CTAs). Frosted glass by default so
   the page shows through; content behind stays legible via the light tint. */
.skgh__pill {
	display: flex;
	align-items: center;
	gap: 22px;
	background: var(--skgh-bg);
	backdrop-filter: blur(16px) saturate(150%);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	border: 1px solid var(--skgh-border);
	border-radius: var(--skgh-radius);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
	transition:
		background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Browsers without backdrop-filter get a solid light pill instead of a see-through one. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.skgh__pill { background: var(--skgh-bg-solid); }
}
.skgh__pill--nav {
	padding: 7px 26px 7px 7px;
}
.skgh__pill--actions {
	gap: 6px;
	padding: 7px 7px 7px 10px;
}

/* Frosted glass firms up once the page is scrolled */
.skgh--scrolled .skgh__pill {
	background: var(--skgh-bg-scrolled);
	backdrop-filter: blur(20px) saturate(170%);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.08),
		0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Logo — sits in a rounded near-black badge tile */
.skgh__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
}
.skgh__logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: var(--skgh-logo-tile-bg);
	border-radius: var(--skgh-radius-tile);
	overflow: hidden;
}
.skgh__logo-img {
	height: var(--skgh-logo-height) !important;
	width: auto !important;
	/* The badge clips (overflow: hidden), and max-width alone would squash a
	   logo taller than the tile into a narrower box. Cap both axes and let
	   object-fit keep the mark's ratio, so an oversized height setting scales
	   the logo down instead of stretching and cropping it. */
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}
/* Alt logo: hidden by default site-wide; hero.css opts it in on the home hero
   when the header is sitting transparently (.skgh:not(.skgh--scrolled)). */
.skgh__logo--has-alt .skgh__logo-img--alt {
	display: none;
}
.skgh__logo-text {
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.02em;
}

/* Nav */
.skgh__nav-wrap {
	display: flex;
	align-items: center;
}
.skgh__nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 26px;
}
.skgh__nav-item {
	position: relative;
}
.skgh__nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
	color: var(--skgh-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -0.005em;
	white-space: nowrap;
	transition: color 0.18s ease, opacity 0.18s ease;
}
.skgh__nav-link:hover,
.skgh__nav-item--current > .skgh__nav-link {
	color: var(--skgh-text);
	opacity: 0.65;
}
.skgh__nav-plus {
	font-weight: 400;
	margin-left: 2px;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skgh__nav-item--has-children:hover .skgh__nav-plus {
	transform: rotate(45deg);
}

/* Magic pill — a single purple pill that follows the hovered nav item (desktop) */
.skgh__nav-wrap .skgh__nav {
	position: relative;
}
.skgh__nav-pill {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	background: var(--skgh-pill-hover);
	border-radius: 9999px;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	transform: translate(0, 0);
	transition:
		transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
		width 0.34s cubic-bezier(0.4, 0, 0.2, 1),
		height 0.34s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.2s ease;
	will-change: transform, width, height;
}
.skgh__nav-wrap.skgh--pill-on .skgh__nav-pill {
	opacity: 1;
}
/* Lift the links above the pill and flip text to white while the pill sits under it */
.skgh__nav-wrap .skgh__nav-link {
	position: relative;
	z-index: 1;
}
.skgh__nav-wrap .skgh__nav-link:hover,
.skgh__nav-wrap .skgh__nav-item:focus-within > .skgh__nav-link {
	color: var(--skgh-text);
	opacity: 1;
	text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
	.skgh__nav-pill {
		transition: opacity 0.2s ease;
	}
}

/* Badge — full circle, sits inline on the same row, right after the nav label */
.skgh__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 7px;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	padding: 0 4px;
	background: var(--skgh-badge-bg);
	color: var(--skgh-badge-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	border-radius: 50%;
	text-align: center;
}

/* Submenu (hover dropdown) */
.skgh__submenu {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	min-width: 200px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-radius: 18px;
	box-shadow:
		0 16px 40px rgba(0, 0, 0, 0.12),
		0 4px 12px rgba(0, 0, 0, 0.06);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skgh__nav-item--has-children:hover > .skgh__nav-link + .skgh__submenu,
.skgh__nav-item--has-children:focus-within > .skgh__nav-link + .skgh__submenu,
.skgh__nav-item--has-children > .skgh__nav-link:hover + .skgh__submenu,
.skgh__nav-item--has-children:hover .skgh__submenu {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.skgh__submenu-item { margin: 0; }
.skgh__submenu-link {
	display: block;
	padding: 10px 14px;
	color: var(--skgh-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	border-radius: 12px;
	transition: background 0.15s ease;
}
.skgh__submenu-link:hover {
	background: rgba(0, 0, 0, 0.04);
}

/* Mega menu (rich dropdown panel) */
.skgh__mega {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	/* The panel hangs off its own trigger: the fallback pulls it left by the
	   panel padding so the first link title lines up with the nav label. JS sets
	   --skgh-shift to that same offset, clamped so the panel never runs off the
	   viewport edge. */
	transform: translateX(var(--skgh-shift, calc(var(--skgh-mega-pad) * -1))) translateY(-8px);
	--skgh-mega-pad: 38px;
	width: min(900px, calc(100vw - 32px));
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 0;
	padding: 34px var(--skgh-mega-pad);
	background: #fff;
	border-radius: 24px;
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.14),
		0 6px 16px rgba(0, 0, 0, 0.06);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 10;
}
.skgh__mega--has-featured {
	grid-template-columns: minmax(0, 1fr) 320px;
}
/* Notch pointing up to the trigger item — JS sets --skgh-notch-x so it stays
   under the trigger's centre even when the panel is clamped to the viewport. */
.skgh__mega::before {
	content: "";
	position: absolute;
	top: -7px;
	left: var(--skgh-notch-x, calc(var(--skgh-mega-pad) + 28px));
	width: 16px;
	height: 16px;
	background: #fff;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 4px 0 0 0;
}
/* Invisible bridge so hover survives the gap between link and panel */
.skgh__mega::after {
	content: "";
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 16px;
}
.skgh__nav-item--mega:hover > .skgh__mega,
.skgh__nav-item--mega:focus-within > .skgh__mega {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(var(--skgh-shift, calc(var(--skgh-mega-pad) * -1))) translateY(0);
}

/* Staggered entrance for the items + featured panel (desktop hover panel only;
   scoped to .skgh__nav-wrap so the mobile drawer copy stays visible). */
.skgh__nav-wrap .skgh__mega-item,
.skgh__nav-wrap .skgh__mega-featured {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 0.45s ease,
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.skgh__nav-wrap .skgh__nav-item--mega:hover > .skgh__mega .skgh__mega-item,
.skgh__nav-wrap .skgh__nav-item--mega:focus-within > .skgh__mega .skgh__mega-item,
.skgh__nav-wrap .skgh__nav-item--mega:hover > .skgh__mega .skgh__mega-featured,
.skgh__nav-wrap .skgh__nav-item--mega:focus-within > .skgh__mega .skgh__mega-featured {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(var(--skgh-i, 0) * 45ms + 80ms);
}
@media (prefers-reduced-motion: reduce) {
	.skgh__nav-wrap .skgh__mega-item,
	.skgh__nav-wrap .skgh__mega-featured {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.skgh__mega-cols {
	min-width: 0;
}
.skgh__mega-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--skgh-mega-cols, 1), minmax(0, 1fr));
	gap: 24px 40px;
}
.skgh__mega-item {
	margin: 0;
}
.skgh__mega-link {
	position: relative;
	display: block;
	/* Padding + matching negative margin draws a subtle hover box without
	   shifting the text from its original position. */
	padding: 11px 16px 13px;
	margin: -11px -16px -13px;
	border-radius: 14px;
	text-decoration: none;
	color: var(--skgh-text);
	transition: background 0.18s ease;
}
.skgh__mega-link:hover {
	background: rgba(0, 0, 0, 0.045);
}
/* Override BeTheme's global a:hover (underline + recolour) so the hover box is
   the only feedback. Scoped under .skgh to beat the theme's specificity. */
.skgh .skgh__mega-link:hover,
.skgh .skgh__mega-link:focus {
	text-decoration: none;
	color: var(--skgh-text);
}
/* Hover affordance — a small "go" arrow slides into the top-right corner */
.skgh__mega-link-arrow {
	position: absolute;
	top: 11px;
	right: 13px;
	width: 16px;
	height: 16px;
	color: var(--skgh-text);
	opacity: 0;
	transform: translate(-4px, 4px);
	transition:
		opacity 0.2s ease,
		transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}
.skgh__mega-link-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
}
.skgh__mega-link:hover .skgh__mega-link-arrow,
.skgh__mega-link:focus-visible .skgh__mega-link-arrow {
	opacity: 1;
	transform: translate(0, 0);
}
.skgh__mega-link-title {
	display: block;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
}
.skgh__mega-link-desc {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	color: var(--skgh-muted);
	line-height: 1.4;
}

/* AI Solutions — frosted-glass tile with an animated gradient ring, so the
   newest service reads as the standout item in the Services panel. The item
   modifier class comes from the link label (MegaMenu::render), so retitling the
   link to something other than "AI Solutions" drops this styling.

   The ring is a masked pseudo-element: a conic-gradient painted over the whole
   box, then punched hollow with mask-composite so only a 1.5px edge survives.
   Rotating it via the registered --skgh-ai-angle property keeps the corners
   filled, which a transform: rotate() on the layer itself would not. */
@property --skgh-ai-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}
@keyframes skgh-ai-ring {
	to {
		--skgh-ai-angle: 360deg;
	}
}
.skgh__mega-item--ai-solutions .skgh__mega-link {
	background:
		linear-gradient(
			135deg,
			rgba(102, 71, 255, 0.11),
			rgba(34, 211, 238, 0.09) 45%,
			rgba(233, 108, 255, 0.1)
		);
	-webkit-backdrop-filter: blur(10px) saturate(165%);
	backdrop-filter: blur(10px) saturate(165%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.7),
		0 6px 20px rgba(102, 71, 255, 0.13);
	transition: background 0.18s ease, box-shadow 0.25s ease;
}
.skgh__mega-item--ai-solutions .skgh__mega-link::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: conic-gradient(
		from var(--skgh-ai-angle, 0deg),
		#6647ff,
		#22d3ee,
		#e96cff,
		#e6ff4d,
		#6647ff
	);
	/* Hollow out the centre so only the ring paints. */
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
	animation: skgh-ai-ring 5s linear infinite;
	pointer-events: none;
}
/* Beat the shared .skgh__mega-link:hover flat grey. */
.skgh .skgh__mega-item--ai-solutions .skgh__mega-link:hover {
	background:
		linear-gradient(
			135deg,
			rgba(102, 71, 255, 0.17),
			rgba(34, 211, 238, 0.13) 45%,
			rgba(233, 108, 255, 0.15)
		);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.8),
		0 10px 28px rgba(102, 71, 255, 0.2);
}
.skgh__mega-item--ai-solutions .skgh__mega-link:hover::before {
	animation-duration: 2s;
}
@media (prefers-reduced-motion: reduce) {
	.skgh__mega-item--ai-solutions .skgh__mega-link::before,
	.skgh__mega-item--ai-solutions .skgh__mega-link:hover::before {
		animation: none;
	}
}
/* Mobile links have no negative margin, so give the tile room to breathe. */
.skgh__mobile .skgh__mega-item--ai-solutions .skgh__mega-link {
	padding: 13px 14px;
}

/* Featured promo block — the image is positioned absolutely to fill the whole
   card (cover, never contain). Text/CTA overlay on top, with a scrim for
   legibility when present. */
.skgh__mega-featured {
	position: relative;
	display: block;
	min-height: 240px;
	background: #f5f5f0;
	border-radius: 18px;
	text-decoration: none;
	color: var(--skgh-text);
	overflow: hidden;
}
.skgh__mega-featured-heading {
	position: relative;
	z-index: 2;
	padding: 22px 22px 0;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.skgh__mega-featured-text {
	position: relative;
	z-index: 2;
	padding: 0 22px;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--skgh-muted);
}
.skgh__mega-featured-cta {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 12px 22px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--skgh-text);
}
a.skgh__mega-featured:hover .skgh__mega-featured-cta {
	opacity: 0.6;
}
/* Image layer — fills the entire card. */
.skgh__mega-featured-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.05);
}
/* Top scrim so overlaid heading/text stays readable over the photo. Only
   rendered when the panel actually has text. */
.skgh__mega-featured-scrim {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 1;
	height: 62%;
	background: linear-gradient(
		180deg,
		#f5f5f0 0%,
		rgba(245, 245, 240, 0.86) 38%,
		rgba(245, 245, 240, 0) 100%
	);
	pointer-events: none;
}
/* Stacked layers: default visible, per-link images fade in over it on hover */
.skgh__mega-figimg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.skgh__mega-figimg--layer {
	opacity: 0;
	transition: opacity 0.35s ease;
	will-change: opacity;
}
.skgh__mega-figimg--layer.is-active {
	opacity: 1;
}

/* Actions / CTA */
.skgh__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
/* Phone — desktop only. Two stacked lines: availability (with a pulsing green
   "live" dot, matching the floating CTA) above the dialable number. */
.skgh__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px 6px 12px;
	border-radius: var(--skgh-radius-cta);
	color: var(--skgh-text);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease;
}
.skgh__phone:hover {
	background: var(--skgh-pill-hover);
	color: var(--skgh-text);
}
.skgh__phone-icon {
	display: inline-flex;
	flex-shrink: 0;
}
.skgh__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.skgh__phone-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--skgh-muted);
}
.skgh__phone-status::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
	animation: skgh-phone-pulse 1.8s ease-in-out infinite;
}
@keyframes skgh-phone-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
	50%      { box-shadow: 0 0 0 5px rgba(37, 211, 102, 0); }
}
.skgh__phone-number {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.005em;
}

.skgh__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--skgh-radius-cta-btn);
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.18s ease, color 0.18s ease;
	white-space: nowrap;
}
.skgh__cta-btn--primary {
	background: var(--skgh-cta);
	color: var(--skgh-cta-text);
}
.skgh__cta-btn--primary:hover {
	background: var(--skgh-cta-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
/* Secondary — plain text tab inside the pill (no border), like the reference */
.skgh__cta-btn--secondary {
	background: transparent;
	color: var(--skgh-text);
}
.skgh__cta-btn--secondary:hover {
	background: var(--skgh-pill-hover);
	color: var(--skgh-text);
}
/* When the header floats transparently over a dark hero/band, the plain-text
   secondary CTA must flip to white like the nav. Every module that makes the
   header transparent adds its own body class; we mirror the whitening here (in
   header.css, which busts by file mtime) so it always loads AND so we cover
   modules — e.g. perf-testimonials — whose own CSS whitens the nav but never had
   a secondary-CTA rule. Keep this list in sync with those modules. */
body.skhh-on-page .skgh:not(.skgh--scrolled) .skgh__cta-btn--secondary,
body.skh-on-page .skgh:not(.skgh--scrolled) .skgh__cta-btn--secondary,
body.skph-overlap-header .skgh:not(.skgh--scrolled) .skgh__cta-btn--secondary,
body.skpt-page .skgh:not(.skgh--scrolled) .skgh__cta-btn--secondary,
body.skcs-overlap-header .skgh:not(.skgh--scrolled) .skgh__cta-btn--secondary {
	color: #ffffff !important;
}
/* Same treatment for the phone item (see note above). */
body.skhh-on-page .skgh:not(.skgh--scrolled) .skgh__phone,
body.skh-on-page .skgh:not(.skgh--scrolled) .skgh__phone,
body.skph-overlap-header .skgh:not(.skgh--scrolled) .skgh__phone,
body.skpt-page .skgh:not(.skgh--scrolled) .skgh__phone,
body.skcs-overlap-header .skgh:not(.skgh--scrolled) .skgh__phone {
	color: #ffffff !important;
}
body.skhh-on-page .skgh:not(.skgh--scrolled) .skgh__phone-status,
body.skh-on-page .skgh:not(.skgh--scrolled) .skgh__phone-status,
body.skph-overlap-header .skgh:not(.skgh--scrolled) .skgh__phone-status,
body.skpt-page .skgh:not(.skgh--scrolled) .skgh__phone-status,
body.skcs-overlap-header .skgh:not(.skgh--scrolled) .skgh__phone-status {
	color: rgba(255, 255, 255, 0.7) !important;
}
.skgh__cta-arrow {
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skgh__cta-btn:hover .skgh__cta-arrow {
	transform: translate(2px, -2px);
}

/* Mobile toggle */
.skgh__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	margin-left: 4px;
}
.skgh__toggle:hover { background: rgba(0, 0, 0, 0.06); }
.skgh__toggle-bars {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 22px;
}
.skgh__toggle-bars span {
	display: block;
	height: 2px;
	background: var(--skgh-text);
	border-radius: 1px;
	transition: transform 0.25s, opacity 0.25s;
}
.skgh--menu-open .skgh__toggle-bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.skgh--menu-open .skgh__toggle-bars span:nth-child(2) {
	opacity: 0;
}
.skgh--menu-open .skgh__toggle-bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Mobile backdrop — blur page behind open menu */
.skgh__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.18);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s ease;
	z-index: -1;
}
.skgh--menu-open .skgh__backdrop {
	opacity: 1;
	pointer-events: auto;
}
@media (min-width: 981px) {
	.skgh__backdrop { display: none; }
}

/* Mobile drawer */
.skgh__mobile {
	margin-top: 8px;
	padding: 16px 18px 20px;
	background: var(--skgh-bg-solid);
	border: 1px solid var(--skgh-border);
	border-radius: 24px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
	transform-origin: top center;
	animation: skgh-mobile-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes skgh-mobile-in {
	from { opacity: 0; transform: translateY(-8px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.skgh__mobile .skgh__nav {
	flex-direction: column;
	gap: 0;
}
.skgh__mobile .skgh__nav-item,
.skgh__mobile .skgh__submenu-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.skgh__mobile .skgh__nav-item:last-child,
.skgh__mobile .skgh__submenu-item:last-child {
	border-bottom: 0;
}
.skgh__mobile .skgh__nav-link {
	padding: 14px 4px;
	font-size: 17px;
	font-weight: 600;
	width: 100%;
	box-sizing: border-box;
}
.skgh__mobile .skgh__nav-plus {
	margin-left: auto;
	font-size: 0;
	width: 14px;
	height: 14px;
	position: relative;
	transform: none !important;
}
.skgh__mobile .skgh__nav-plus::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 2px;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	opacity: 0.6;
}
.skgh__mobile .skgh__submenu {
	position: static;
	transform: none;
	opacity: 1;
	pointer-events: auto;
	box-shadow: none;
	background: transparent;
	padding: 0;
	min-width: 0;
	list-style: none;
	margin: 0;
}
.skgh__mobile .skgh__submenu-link {
	display: block;
	padding: 14px 4px;
	font-size: 16px;
	font-weight: 500;
	color: var(--skgh-text);
	border-radius: 0;
}
.skgh__mobile .skgh__submenu-link:hover {
	background: transparent;
	opacity: 0.6;
}

/* Mobile submenu slider — submenus lifted into panels by JS.
   position: relative makes this the containing block for the (absolutely
   positioned) mega panels so overflow: hidden actually clips them; otherwise
   their containing block is the sticky .skgh and they bleed off-screen. */
.skgh__mobile-nav {
	overflow: hidden;
	position: relative;
	/* Height is driven by JS to match the panel on screen — the panels are flex
	   siblings, so without it the drawer sizes to the TALLEST panel and leaves a
	   dead gap under the last item. Transition keeps the resize in step with the
	   slide. */
	transition: height 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hide every nested panel in the drawer by default; the slider re-shows them
   inside its sub-panels (rule further down, which wins on source order). Matching
   ANY descendant — not just direct children and not gated on the JS "enhanced"
   class — guarantees no submenu/mega can flash or bleed off-screen, even for an
   item that owns both a submenu and a label-keyed mega where only one is lifted. */
.skgh__mobile-nav .skgh__submenu,
.skgh__mobile-nav .skgh__mega {
	display: none;
}
.skgh__mobile-track {
	display: flex;
	align-items: flex-start;
	width: 100%;
	transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}
.skgh__mobile-panel {
	flex: 0 0 100%;
	min-width: 0;
}
.skgh__mobile-panel--sub .skgh__submenu {
	display: block;
}
/* Mega panel lifted into a mobile sub-panel — flatten to a stacked list */
.skgh__mobile-panel--sub .skgh__mega {
	display: block;
	position: static;
	width: auto;
	transform: none;
	opacity: 1;
	pointer-events: auto;
	box-shadow: none;
	background: transparent;
	border-radius: 0;
	padding: 0;
	gap: 0;
}
.skgh__mobile-panel--sub .skgh__mega::before,
.skgh__mobile-panel--sub .skgh__mega::after {
	display: none;
}
.skgh__mobile-panel--sub .skgh__mega-list {
	grid-template-columns: 1fr;
	gap: 0;
}
/* Drop the desktop hover-box negative margin: in the drawer it pushed every
   link 12px past its panel on both sides, so titles sat left of the nav labels
   and the next (off-screen) panel poked into the visible strip. */
.skgh__mobile .skgh__mega-link {
	padding: 13px 4px;
	margin: 0;
}
.skgh__mobile .skgh__mega-link-title {
	font-size: 16px;
	font-weight: 500;
}
.skgh__mobile .skgh__mega-link-desc {
	font-size: 13px;
	margin-top: 2px;
}
.skgh__mobile .skgh__mega-featured {
	margin-top: 16px;
}
.skgh__mobile .skgh__mega-featured-media {
	min-height: 180px;
}
.skgh__mobile-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 0;
	padding: 6px 4px 12px;
	margin: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--skgh-muted);
}
.skgh__mobile-back:hover {
	color: var(--skgh-text);
}
.skgh__mobile-back-arrow {
	font-size: 18px;
	line-height: 1;
	transition: transform 0.2s ease;
}
.skgh__mobile-back:hover .skgh__mobile-back-arrow {
	transform: translateX(-3px);
}
.skgh__mobile-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}
.skgh__mobile-actions .skgh__cta-btn {
	flex: 1;
	justify-content: center;
}
.skgh__mobile-cta {
	margin-top: 14px;
}
.skgh__mobile-reviews {
	margin-top: 12px;
	display: flex;
	justify-content: center;
}
/* Override the widget's own mobile-hide rule when it's used inside the drawer */
.skgh__mobile-reviews .skgr-widget {
	display: inline-flex;
}

/* Breakpoints */
@media (max-width: 980px) {
	.skgh__nav-wrap { display: none; }
	/* With the nav gone, the left pill just hugs the logo tile. */
	.skgh__pill--nav { padding: 7px; }
	.skgh__phone { display: none; }
	/* Only the first CTA survives on mobile; the toggle covers the rest. Matched by
	   sibling order rather than :first-of-type, which the phone <a> would otherwise
	   claim whenever it's enabled. */
	.skgh__actions .skgh__cta-btn ~ .skgh__cta-btn { display: none; }
	.skgh__actions .skgh__cta-btn {
		padding: 8px 14px;
		font-size: 13px;
		gap: 6px;
	}
	.skgh__actions .skgh__cta-btn .skgh__cta-arrow {
		width: 12px;
		height: 12px;
	}
	.skgh__actions { margin-left: auto; }
	.skgh__toggle { display: inline-flex; }

	/* Mobile logo height — driven by the "Logo height (mobile)" setting */
	.skgh { --skgh-logo-height: var(--skgh-logo-height-mobile, 32px); }

	/* Sticky needs ancestors with non-clipping overflow — BeTheme wrappers default
	   to overflow: hidden which kills sticky on mobile. Force them visible. */
	body.skgh-active,
	body.skgh-active #wrap_all,
	body.skgh-active #Wrapper,
	body.skgh-active #Content {
		overflow: visible;
	}
}
@media (max-width: 600px) {
	.skgh { margin: 6px; }
	.skgh__inner { gap: 6px; }
	.skgh__pill--nav { padding: 5px; }
	.skgh__pill--actions { padding: 5px 6px 5px 8px; gap: 4px; }
	.skgh__logo-badge { width: 40px; height: 40px; }
	.skgh__actions .skgh__cta-btn {
		padding: 6px 11px;
		font-size: 12px;
		gap: 5px;
	}
	.skgh__toggle { width: 36px; height: 36px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.skgh,
	.skgh *,
	.skgh *::before,
	.skgh *::after {
		animation-duration: 0.001s !important;
		transition-duration: 0.001s !important;
	}
}
