/* Shared navigation for the storefront and template catalogue. */
.header-row {
	position: relative;
	min-height: 52px;
	gap: 24px;
}
.header-actions {
	flex-shrink: 0;
}
.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}
.site-nav a {
	padding: 10px 12px;
	border-radius: 10px;
	color: #4a5872;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
	color: #2563eb;
	background: #eff6ff;
}
/* "Services" dropdown: a button that opens a small panel of the service
   pages. Opens on click (and on hover where there is a mouse); on phones,
   inside the open menu, the panel is always shown as an indented list. */
.nav-group {
	position: relative;
}
.nav-group-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: #3b4763;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition:
		color 0.2s,
		background 0.2s;
}
.nav-group-toggle svg {
	transition: transform 0.2s;
}
.nav-group-toggle:hover,
.nav-group.is-open .nav-group-toggle,
.nav-group-toggle.is-current {
	color: #4c1d95;
	background: linear-gradient(120deg, rgba(59, 130, 246, 0.14), rgba(168, 85, 247, 0.16), rgba(236, 72, 153, 0.12));
}
.nav-group.is-open .nav-group-toggle svg {
	transform: rotate(180deg);
}
.nav-group-toggle:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 4px;
}
.nav-group-menu {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	z-index: 50;
	flex-direction: column;
	gap: 2px;
	min-width: 240px;
	padding: 8px;
	transform: translateX(-50%);
	border: 1px solid rgba(124, 58, 237, 0.14);
	border-radius: 16px;
	background: linear-gradient(160deg, #ffffff, #f5f3ff);
	box-shadow: 0 24px 50px rgba(79, 70, 229, 0.18);
}
/* Bridges the 10px gap so the panel stays open while the pointer crosses it. */
.nav-group-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}
.nav-group.is-open .nav-group-menu {
	display: flex;
}
@media (hover: hover) and (min-width: 961px) {
	.nav-group:hover .nav-group-menu {
		display: flex;
	}
}
header .site-nav .nav-group-menu a,
.site-nav .nav-group-menu a {
	border-radius: 10px;
}
.site-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #dce3ee;
	border-radius: 12px;
	background: white;
	color: #08111f;
	cursor: pointer;
}
.site-nav a:focus-visible,
.site-menu-toggle:focus-visible,
.site-footer a:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 4px;
}
.site-footer {
	margin-top: 64px;
	padding: 48px 0 24px;
	border-top: 1px solid #e1e7f0;
	color: #4a5872;
	font-size: 0.875rem;
}
.site-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
}
/* Contact lines under the footer logo, and the marketplace line. */
.site-footer-contact {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer-contact li,
.site-footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.site-footer-contact svg {
	flex: none;
	color: #7c3aed;
}
.site-footer-contact a {
	color: #08111f;
	font-weight: 600;
}
.site-footer-markets {
	margin-top: 4px;
	color: #6b7790;
	font-size: 0.82rem;
	line-height: 1.6;
}
.site-footer-markets a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.site-footer-grid nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.site-footer h3 {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #08111f;
}
.site-footer-brand p {
	max-width: 280px;
	line-height: 1.7;
	margin: 14px 0;
}
.site-footer-logo {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #08111f;
}
.site-footer-logo span {
	color: #2563eb;
}
.site-footer a:hover {
	color: #2563eb;
}
.site-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #e1e7f0;
}
.site-footer-bottom nav {
	display: flex;
	gap: 24px;
}
.site-footer-pay {
	color: #6b7790;
}
@media (max-width: 960px) {
	.header-row {
		gap: 12px;
	}
	.header-actions {
		margin-left: auto;
	}
	.site-menu-toggle {
		display: inline-flex;
	}
	.site-nav {
		display: none;
		position: absolute;
		top: calc(100% + 12px);
		left: 16px;
		right: 16px;
		padding: 12px;
		background: white;
		border: 1px solid #e1e7f0;
		border-radius: 16px;
		box-shadow: 0 16px 40px #08111f1a;
	}
	.site-nav.is-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}
	.site-nav a {
		padding: 14px;
	}
	/* Phone menu: "Services" becomes a small heading over an indented list. */
	.nav-group-toggle {
		width: 100%;
		padding: 14px 14px 4px;
		color: #8a94a8;
		font-size: 0.72rem;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		cursor: default;
		pointer-events: none;
	}
	.nav-group-toggle svg {
		display: none;
	}
	.nav-group-toggle:hover,
	.nav-group.is-open .nav-group-toggle,
	.nav-group-toggle.is-current {
		color: #8a94a8;
		background: none;
	}
	.nav-group-menu,
	.nav-group.is-open .nav-group-menu {
		display: flex;
		position: static;
		min-width: 0;
		padding: 0 0 0 10px;
		transform: none;
		border: 0;
		background: none;
		box-shadow: none;
	}
}
@media (max-width: 640px) {
	.site-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px 20px;
	}
	.site-footer-brand {
		grid-column: 1 / -1;
	}
	.site-footer-brand p {
		max-width: 100%;
	}
	/* Thumb-sized rows: each link gets a 44px tap area instead of 22px. */
	.site-footer-grid nav {
		gap: 0;
	}
	.site-footer-grid nav a,
	.site-footer-bottom nav a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	/* The marketplace links share one line; keep them inline. */
	.site-footer-grid nav .site-footer-markets a {
		display: inline;
		min-height: 0;
	}
	.site-footer-markets {
		margin-top: 10px;
	}
	.site-footer-bottom nav {
		flex-wrap: wrap;
		gap: 0 20px;
	}
	.site-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}
