/*
 * GMG - theme styles. theme.json sets colours, fonts and base typography; this file does layout and
 * components. Order: tokens, base, header, page hero, content sections, block styles, service cards,
 * contact band, footer, motion.
 */

:root {
	--gmg-sky: #4bc2ff;
	--gmg-sky-soft: rgba(75, 194, 255, 0.14);
	--gmg-blue: #0a72bd;
	--gmg-night: #16191d;
	--gmg-night-2: #1e2227;
	--gmg-text: #3d434a;
	--gmg-muted: #5f6873;
	--gmg-line: #e2e7ed;
	--gmg-light: #f4f7fa;
	--gmg-on-dark: #c5cdd6;
	--gmg-on-dark-muted: #9aa5b1;
	--gmg-radius: 16px;
	--gmg-radius-sm: 10px;
	--gmg-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 12px -4px rgba(16, 24, 40, 0.08);
	--gmg-shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 48px -16px rgba(16, 24, 40, 0.22);
	--gmg-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--gmg-section: clamp(4rem, 8vw, 7rem);
	--gmg-wide: 1200px;
	--gmg-header-h: 76px;
	--gmg-font-head: var(--wp--preset--font-family--heading, "Barlow Condensed", sans-serif);
	--gmg-font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--gmg-grid: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px;
}

@media (max-width: 1024px) {
	:root { --gmg-header-h: 64px; }
}

/* ------------------------------------------------------------------ base */

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--gmg-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

.gmg-svg {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

:focus-visible {
	outline: 3px solid var(--gmg-sky);
	outline-offset: 3px;
}

::selection {
	background: var(--gmg-sky);
	color: var(--gmg-night);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	border-radius: var(--gmg-radius-sm);
	background: var(--gmg-sky);
	color: var(--gmg-night);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

.eyebrow,
.is-style-gmg-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.9rem;
	font-family: var(--gmg-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--gmg-blue);
}

.eyebrow::before,
.is-style-gmg-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	flex: none;
	background: currentColor;
}

.is-style-gmg-eyebrow.has-text-align-center {
	justify-content: center;
}

/* Buttons outside block content (templates) look like the block buttons. */
.gmg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.85em 1.6em;
	border: 2px solid var(--gmg-sky);
	border-radius: 999px;
	background: var(--gmg-sky);
	color: var(--gmg-night);
	font-family: var(--gmg-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.gmg-btn:hover {
	border-color: #7dd3ff;
	background: #7dd3ff;
	color: var(--gmg-night);
	transform: translateY(-1px);
}

.gmg-btn--small {
	padding: 0.6em 1.2em;
	font-size: 0.9375rem;
}

.gmg-btn--ghost {
	border-color: rgba(255, 255, 255, 0.28);
	background: transparent;
	color: #fff;
}

.gmg-btn--ghost:hover {
	border-color: var(--gmg-sky);
	background: transparent;
	color: #fff;
}

.gmg-btn .gmg-svg {
	color: var(--gmg-sky);
}

/* ------------------------------------------------------------------ header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(22, 25, 29, 0.94);
	color: #fff;
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: box-shadow 0.25s;
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	max-width: var(--gmg-wide);
	height: var(--gmg-header-h);
	margin: 0 auto;
	padding: 0 var(--gmg-gutter);
	box-sizing: content-box;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	color: #fff;
	text-decoration: none;
}

.site-logo__img {
	display: block;
	width: auto;
	height: 34px;
}

.site-footer .site-logo {
	color: #fff;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
}

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.site-nav .menu > li > a {
	display: block;
	padding: 0.6rem 0.85rem;
	border-radius: 8px;
	color: #e6ebf0;
	font-size: 0.96875rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.site-nav .menu > li > a:hover,
.site-nav .menu > li.is-open > a {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a,
.site-nav .menu > .current-menu-parent > a {
	color: var(--gmg-sky);
}

.site-nav .menu-item-has-children > a {
	padding-right: 0.25rem;
}

.submenu-toggle {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 2rem;
	margin-right: 0.25rem;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	color: #c5cdd6;
	cursor: pointer;
}

.submenu-toggle .gmg-svg {
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s;
}

.menu-item-has-children:hover > .submenu-toggle .gmg-svg,
.menu-item-has-children.is-open > .submenu-toggle .gmg-svg {
	transform: rotate(180deg);
}

.site-nav .sub-menu {
	position: absolute;
	top: calc(100% + 0.6rem);
	left: 0;
	z-index: 10;
	min-width: 19rem;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

/* keeps the menu open while the pointer crosses the gap */
.site-nav .sub-menu::before {
	content: "";
	position: absolute;
	inset: -0.75rem 0 auto;
	height: 0.75rem;
}

@media (min-width: 1025px) {
	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu,
	.site-nav .menu-item-has-children.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

.site-nav .sub-menu a {
	display: block;
	padding: 0.7rem 0.9rem;
	border-radius: 9px;
	color: var(--gmg-night);
	font-size: 0.96875rem;
	font-weight: 500;
	text-decoration: none;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu .current-menu-item > a {
	background: var(--gmg-light);
	color: var(--gmg-blue);
}

.site-nav__contact {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
	font-weight: 600;
	font-size: 0.96875rem;
	text-decoration: none;
	white-space: nowrap;
}

.header-phone .gmg-svg {
	color: var(--gmg-sky);
}

.header-phone:hover {
	color: var(--gmg-sky);
}

.nav-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: none;
	color: #fff;
	cursor: pointer;
}

.nav-toggle .gmg-svg {
	width: 22px;
	height: 22px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: block;
}

@media (max-width: 1180px) and (min-width: 1025px) {
	.header-phone span { display: none; }
}

@media (max-width: 1024px) {
	/* backdrop-filter would make the header the containing block of the fixed menu panel */
	.site-header {
		background: var(--gmg-night);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.site-logo__img { height: 28px; }

	.nav-toggle { display: grid; }

	.site-nav {
		position: fixed;
		inset: var(--gmg-header-h) 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2rem;
		margin: 0;
		padding: 1.5rem var(--gmg-gutter) 2.5rem;
		overflow-y: auto;
		background: var(--gmg-night);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}

	.admin-bar .site-nav { top: calc(var(--gmg-header-h) + 46px); }

	.is-nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.is-nav-open { overflow: hidden; }

	.site-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav .menu > li {
		flex-wrap: wrap;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.site-nav .menu > li > a {
		flex: 1;
		padding: 1rem 0;
		font-family: var(--gmg-font-head);
		font-size: 1.625rem;
		font-weight: 600;
	}

	.site-nav .menu > li > a:hover { background: none; }

	.submenu-toggle { display: none; }

	.site-nav .sub-menu {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		margin: -0.25rem 0 1rem;
		padding: 0 0 0 1rem;
		border-left: 2px solid rgba(75, 194, 255, 0.4);
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: inherit;     /* "visible" would keep the links clickable while the menu is closed */
		transform: none;
	}

	.site-nav .sub-menu::before { display: none; }

	.site-nav .sub-menu a {
		padding: 0.55rem 0;
		color: var(--gmg-on-dark);
		font-size: 1.0625rem;
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu .current-menu-item > a {
		background: none;
		color: var(--gmg-sky);
	}

	.site-nav__contact {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.header-phone {
		justify-content: center;
		padding: 0.85rem;
		border: 2px solid rgba(255, 255, 255, 0.2);
		border-radius: 999px;
	}

	.site-nav__contact .gmg-btn { padding: 0.95em 1.6em; font-size: 1rem; }
}

/* ------------------------------------------------------------------ page hero */

.page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 7vw, 6rem) var(--gmg-gutter) clamp(3.5rem, 7vw, 6rem);
	background:
		radial-gradient(48rem 26rem at 90% 0%, rgba(75, 194, 255, 0.16), transparent 65%),
		var(--gmg-grid),
		var(--gmg-night);
	color: var(--gmg-on-dark);
}

.page-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	max-width: var(--gmg-wide);
	margin: 0 auto;
}

.page-hero--plain .page-hero__inner {
	grid-template-columns: minmax(0, 1fr);
}

.page-hero--plain .page-hero__text {
	max-width: 52rem;
}

.page-hero__title {
	margin: 0.75rem 0 1.25rem;
	color: #fff;
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
	line-height: 1.02;
	text-wrap: balance;
}

.page-hero__lead {
	max-width: 40rem;
	margin: 0;
	color: #b8c2cc;
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.6;
}

.page-hero .eyebrow {
	color: var(--gmg-sky);
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.page-hero__media {
	position: relative;
	margin: 0;
}

.page-hero__media::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 2px solid rgba(75, 194, 255, 0.55);
	border-radius: var(--gmg-radius);
}

.page-hero__img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--gmg-radius);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
	background: #fff;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--gmg-on-dark-muted);
	font-size: 0.875rem;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.5rem;
	color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs a {
	color: var(--gmg-on-dark);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--gmg-sky);
}

@media (max-width: 860px) {
	.page-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.page-hero__media { margin-right: 1.25rem; }
}

/* ------------------------------------------------------------------ content and sections */

.entry-content {
	padding: var(--gmg-section) var(--gmg-gutter);
}

/* pages built from full-width sections carry their own spacing */
.entry-content:has(> .alignfull:first-child) { padding-top: 0; }
.entry-content:has(> .alignfull:last-child) { padding-bottom: 0; }

.entry-content > .alignfull {
	margin-inline: calc(-1 * var(--gmg-gutter));
	max-width: none;
}

.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

.entry-content > .wp-block-group.alignfull {
	padding: var(--gmg-section) var(--gmg-gutter);
}

.entry-content :where(h1, h2, h3) {
	text-wrap: balance;
}

.entry-content :where(p, li) {
	text-wrap: pretty;
}

.entry-content :where(h2, h3, h4):first-child,
.entry-content .is-style-gmg-eyebrow + :where(h1, h2, h3) {
	margin-top: 0;
}

.gmg-section-head {
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.gmg-section-head > :where(h2, h3) {
	margin-bottom: 0;
}

.gmg-section-head > p:not(.is-style-gmg-eyebrow) {
	max-width: 62ch;
	margin-top: 1rem;
	color: var(--gmg-muted);
}

.is-style-gmg-lead {
	color: var(--gmg-muted);
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.6;
}

.wp-block-columns {
	gap: clamp(1.5rem, 4vw, 4rem);
}

.wp-block-columns.gmg-grid-tight {
	gap: 1.5rem;
}

/* sections */

.is-style-gmg-section-light {
	background: var(--gmg-light);
}

.is-style-gmg-section-dark,
.is-style-gmg-hero {
	color: var(--gmg-on-dark);
	background:
		radial-gradient(56rem 30rem at 88% 0%, rgba(75, 194, 255, 0.16), transparent 65%),
		var(--gmg-grid),
		var(--gmg-night);
}

:is(.is-style-gmg-section-dark, .is-style-gmg-hero) :is(h1, h2, h3, h4) {
	color: #fff;
}

:is(.is-style-gmg-section-dark, .is-style-gmg-hero) .is-style-gmg-eyebrow {
	color: var(--gmg-sky);
}

:is(.is-style-gmg-section-dark, .is-style-gmg-hero) .is-style-gmg-lead {
	color: #b8c2cc;
}

:is(.is-style-gmg-section-dark, .is-style-gmg-hero) a:where(:not(.wp-element-button)) {
	color: var(--gmg-sky);
}

:is(.is-style-gmg-section-dark, .is-style-gmg-hero) .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

:is(.is-style-gmg-section-dark, .is-style-gmg-hero) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--gmg-sky);
	background: transparent;
}

/* home hero */

.entry-content > .is-style-gmg-hero.alignfull {
	padding-top: clamp(3.5rem, 8vw, 7rem);
	padding-bottom: clamp(6rem, 11vw, 9rem);
}

.is-style-gmg-hero h1 {
	margin: 0.5rem 0 1.5rem;
	font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.75rem);
	line-height: 0.98;
}

/* long Croatian words need the full width before the image moves beside the text */
@media (max-width: 1024px) {
	.is-style-gmg-hero > .wp-block-columns { flex-wrap: wrap !important; }
	.is-style-gmg-hero > .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.is-style-gmg-hero .gmg-hero-media { max-width: 36rem; }
}

.is-style-gmg-hero .wp-block-buttons {
	margin-top: 2.25rem;
}

.gmg-hero-media {
	position: relative;
	padding: 0 0 2.5rem 2.5rem;
}

.gmg-hero-media::before {
	content: "";
	position: absolute;
	inset: 1.5rem -1.25rem 1rem 1.25rem;
	border: 2px solid rgba(75, 194, 255, 0.5);
	border-radius: var(--gmg-radius);
}

.gmg-hero-media > .wp-block-image {
	margin: 0;
}

.gmg-hero-media > .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: var(--gmg-radius);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
	object-fit: cover;
}

.gmg-hero-media > .wp-block-image:first-child img {
	aspect-ratio: 4 / 3;
}

.gmg-hero-media > .wp-block-image + .wp-block-image {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 38%;
	margin: 0;
}

.gmg-hero-media > .wp-block-image + .wp-block-image img {
	aspect-ratio: 1;
	border: 5px solid var(--gmg-night);
}

@media (max-width: 781px) {
	.gmg-hero-media { margin-top: 1rem; padding: 0 0 2rem 1.75rem; }
	.gmg-hero-media::before { right: -0.5rem; }
	.entry-content .wp-block-column > .wp-block-buttons.is-content-justification-right { justify-content: flex-start; }
}

/* highlights bar under the hero */

.entry-content > .gmg-highlights.alignfull {
	position: relative;
	z-index: 1;
	padding-top: 0;
	padding-bottom: 0;
	background: linear-gradient(180deg, var(--gmg-night) 0 50%, var(--gmg-light) 50% 100%);
}

.entry-content > .gmg-highlights + .alignfull {
	padding-top: clamp(3rem, 6vw, 5rem);
}

.gmg-highlights > .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin-block: 0;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--gmg-radius);
	background: #fff;
	box-shadow: var(--gmg-shadow);
}

.gmg-highlights .wp-block-column {
	--gmg-pad: 0px;
}

.gmg-highlights h3 {
	margin: 0 0 0.35rem;
	font-size: 1.375rem;
}

.gmg-highlights p {
	margin: 0;
	color: var(--gmg-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

@media (max-width: 960px) {
	.gmg-highlights > .wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	.gmg-highlights > .wp-block-columns { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }

	.gmg-highlights .gmg-icon {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 1rem;
		align-content: start;
	}

	.gmg-highlights .gmg-icon::before {
		grid-row: 1 / span 2;
		width: 44px;
		height: 44px;
		margin: 0;
		border-radius: 12px;
	}

	.gmg-highlights .gmg-icon::after {
		top: 10px;
		left: 10px;
		width: 24px;
		height: 24px;
	}

	.gmg-highlights h3 { font-size: 1.25rem; }
}

/* ------------------------------------------------------------------ block styles */

/* cards */

.is-style-gmg-card {
	--gmg-pad: clamp(1.5rem, 3vw, 2.25rem);
	box-sizing: border-box;
	padding: var(--gmg-pad);
	border: 1px solid var(--gmg-line);
	border-radius: var(--gmg-radius);
	background: #fff;
	box-shadow: var(--gmg-shadow-sm);
}

.wp-block-column > .is-style-gmg-card:only-child {
	height: 100%;
}

.is-style-gmg-card > :first-child {
	margin-top: 0;
}

.is-style-gmg-card > :last-child {
	margin-bottom: 0;
}

.is-style-gmg-card h3 {
	margin-bottom: 0.75rem;
}

.is-style-gmg-section-dark .is-style-gmg-card {
	border-color: rgba(255, 255, 255, 0.08);
	background: var(--gmg-night-2);
	box-shadow: none;
}

/* icons: add the class gmg-icon gmg-icon--<name> to a group or column */

.gmg-icon {
	--gmg-pad: 0px;
	position: relative;
}

.is-style-gmg-card.gmg-icon {
	--gmg-pad: clamp(1.5rem, 3vw, 2.25rem);
}

.gmg-icon::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: var(--gmg-sky-soft);
}

.gmg-icon::after {
	content: "";
	position: absolute;
	top: calc(var(--gmg-pad) + 12px);
	left: calc(var(--gmg-pad) + 12px);
	width: 28px;
	height: 28px;
	background: var(--gmg-blue);
	-webkit-mask: var(--gmg-icon) center / contain no-repeat;
	mask: var(--gmg-icon) center / contain no-repeat;
}

.is-style-gmg-section-dark .gmg-icon::before { background: rgba(75, 194, 255, 0.12); }
.is-style-gmg-section-dark .gmg-icon::after { background: var(--gmg-sky); }

.gmg-icon--bolt { --gmg-icon: url(../icons/bolt.svg); }
.gmg-icon--cube { --gmg-icon: url(../icons/cube.svg); }
.gmg-icon--clipboard { --gmg-icon: url(../icons/clipboard-check.svg); }
.gmg-icon--gauge { --gmg-icon: url(../icons/gauge.svg); }
.gmg-icon--solar { --gmg-icon: url(../icons/solar.svg); }
.gmg-icon--layers { --gmg-icon: url(../icons/layers.svg); }
.gmg-icon--award { --gmg-icon: url(../icons/award.svg); }
.gmg-icon--network { --gmg-icon: url(../icons/network.svg); }
.gmg-icon--shield { --gmg-icon: url(../icons/shield.svg); }
.gmg-icon--briefcase { --gmg-icon: url(../icons/briefcase.svg); }

/* lists */

.entry-content :where(ul, ol):where(.is-style-gmg-check, .is-style-gmg-check-2col, .is-style-gmg-cards, .is-style-gmg-tags) {
	padding-left: 0;
	list-style: none;
}

.is-style-gmg-check li,
.is-style-gmg-check-2col li {
	position: relative;
	padding-left: 2.1rem;
}

.is-style-gmg-check li + li {
	margin-top: 0.7rem;
}

.is-style-gmg-check li::before,
.is-style-gmg-check-2col li::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--gmg-sky-soft) url(../icons/check-blue.svg) center / 0.8rem no-repeat;
}

.is-style-gmg-section-dark :is(.is-style-gmg-check, .is-style-gmg-check-2col) li::before {
	background-color: rgba(75, 194, 255, 0.12);
	background-image: url(../icons/check-sky.svg);
}

.is-style-gmg-check-2col {
	columns: 2 20rem;
	column-gap: clamp(2rem, 5vw, 4rem);
	margin: 0;
}

.is-style-gmg-check-2col li {
	break-inside: avoid;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--gmg-line);
}

.is-style-gmg-check-2col li::before {
	top: 1.1rem;
}

.is-style-gmg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
	gap: 1.25rem;
	margin: 0;
	counter-reset: gmg-card;
}

.is-style-gmg-cards li {
	position: relative;
	padding: 1.5rem 1.5rem 1.6rem;
	border: 1px solid var(--gmg-line);
	border-radius: var(--gmg-radius);
	background: #fff;
	box-shadow: var(--gmg-shadow-sm);
	color: var(--gmg-night);
	font-weight: 500;
	line-height: 1.45;
	counter-increment: gmg-card;
	transition: transform 0.25s, box-shadow 0.25s;
}

.is-style-gmg-cards li:hover {
	transform: translateY(-3px);
	box-shadow: var(--gmg-shadow);
}

ol.is-style-gmg-cards li::before {
	content: counter(gmg-card, decimal-leading-zero);
	display: block;
	margin-bottom: 0.9rem;
	color: var(--gmg-sky);
	font-family: var(--gmg-font-head);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
}

ul.is-style-gmg-cards li::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 1rem;
	border-radius: 11px;
	background: var(--gmg-sky-soft) url(../icons/check-blue.svg) center / 1.1rem no-repeat;
}

.is-style-gmg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.is-style-gmg-tags li {
	padding: 0.4rem 0.95rem;
	border: 1px solid var(--gmg-line);
	border-radius: 999px;
	background: #fff;
	color: var(--gmg-night);
	font-size: 0.9375rem;
	font-weight: 500;
}

/* buttons */

.wp-block-button__link {
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: var(--gmg-night);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--gmg-blue);
	color: var(--gmg-blue);
}

.wp-block-button.is-style-gmg-arrow > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--gmg-blue);
}

.wp-block-button.is-style-gmg-arrow > .wp-block-button__link::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	transition: transform 0.2s;
}

.wp-block-button.is-style-gmg-arrow > .wp-block-button__link:hover {
	color: var(--gmg-night);
	transform: none;
}

.wp-block-button.is-style-gmg-arrow > .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* images */

.wp-block-image img {
	border-radius: var(--gmg-radius-sm);
}

.is-style-gmg-framed {
	position: relative;
	margin: 0 1.25rem 1.25rem 0;
}

.is-style-gmg-framed::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 2px solid var(--gmg-sky);
	border-radius: var(--gmg-radius);
}

.is-style-gmg-framed img {
	position: relative;
	display: block;
	width: 100%;
	border-radius: var(--gmg-radius);
	box-shadow: var(--gmg-shadow);
}

/* galleries: even tiles; a click opens the lightbox */

.entry-content .wp-block-gallery.has-nested-images {
	--wp--style--unstable-gallery-gap: 1rem;
	gap: 1rem;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	overflow: hidden;
	border-radius: var(--gmg-radius-sm);
	background: #fff;
}

.entry-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	aspect-ratio: 4 / 3;
	height: auto;
	border-radius: 0;
	transition: transform 0.5s;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.04);
}

/* quote */

.entry-content .wp-block-quote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--gmg-sky);
}

.entry-content .wp-block-quote p {
	color: var(--gmg-night);
	font-family: var(--gmg-font-head);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
}

.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--gmg-muted);
	font-size: 0.9375rem;
	font-style: normal;
}

/* facts table */

.is-style-gmg-facts table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content .is-style-gmg-facts :where(td, th) {
	padding: 1rem 1.5rem 1rem 0;
	border: 0;
	border-bottom: 1px solid var(--gmg-line);
	text-align: left;
	vertical-align: top;
}

.is-style-gmg-facts tr:first-child td {
	border-top: 1px solid var(--gmg-line);
}

.is-style-gmg-facts td:first-child {
	width: 32%;
	color: var(--gmg-muted);
	font-size: 0.9375rem;
	font-weight: 600;
}

.is-style-gmg-facts td:last-child {
	color: var(--gmg-night);
}

@media (max-width: 600px) {
	.is-style-gmg-facts td { display: block; width: auto !important; }
	.entry-content .is-style-gmg-facts td:first-child { padding-bottom: 0.25rem; border-bottom: 0; }
	.entry-content .is-style-gmg-facts tr:first-child td:last-child { border-top: 0; }
	.entry-content .is-style-gmg-facts td:last-child { padding-top: 0; }
}

/* text pages (privacy policy) */

.gmg-prose h2 {
	margin-top: 2.75rem;
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
}

.gmg-prose li + li {
	margin-top: 0.6rem;
}

/* ------------------------------------------------------------------ service cards */

.gmg-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
	gap: 1.5rem;
}

.gmg-service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gmg-line);
	border-radius: var(--gmg-radius);
	background: #fff;
	box-shadow: var(--gmg-shadow-sm);
	transition: transform 0.25s, box-shadow 0.25s;
}

.gmg-service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--gmg-shadow);
}

.gmg-service-card:focus-within {
	outline: 3px solid var(--gmg-sky);
	outline-offset: 3px;
}

.gmg-service-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--gmg-night);
}

@media (max-width: 560px) {
	.gmg-service-card__media { aspect-ratio: 2 / 1; }
}

.gmg-service-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}

.gmg-service-card:hover .gmg-service-card__media img {
	transform: scale(1.05);
}

.gmg-service-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0 1.5rem 1.6rem;
}

.gmg-service-card__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-top: -28px;
	border: 4px solid #fff;
	border-radius: 16px;
	background: var(--gmg-sky);
	color: var(--gmg-night);
}

.gmg-service-card__icon .gmg-svg {
	width: 26px;
	height: 26px;
}

.gmg-service-card__title {
	margin: 0.25rem 0 0;
	font-size: 1.625rem;
}

.gmg-service-card__title a {
	color: var(--gmg-night);
	text-decoration: none;
}

/* the whole card is the link */
.gmg-service-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gmg-service-card__title a:focus-visible {
	outline: none;
}

.gmg-service-card__text {
	margin: 0;
	color: var(--gmg-muted);
	font-size: 0.96875rem;
	line-height: 1.55;
}

.gmg-service-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--gmg-blue);
	font-weight: 600;
}

.gmg-service-card__more .gmg-svg {
	transition: transform 0.2s;
}

.gmg-service-card:hover .gmg-service-card__more .gmg-svg {
	transform: translateX(4px);
}

.related-services {
	padding: var(--gmg-section) var(--gmg-gutter);
	background: var(--gmg-light);
}

.related-services__inner {
	max-width: var(--gmg-wide);
	margin: 0 auto;
}

.related-services h2 {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* ------------------------------------------------------------------ contact band */

.cta-band {
	padding: clamp(3.5rem, 7vw, 5.5rem) var(--gmg-gutter);
	background:
		linear-gradient(rgba(22, 25, 29, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(22, 25, 29, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
		var(--gmg-sky);
	color: var(--gmg-night);
}

.cta-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	max-width: var(--gmg-wide);
	margin: 0 auto;
}

.cta-band .eyebrow {
	color: var(--gmg-night);
}

.cta-band h2 {
	margin: 0 0 1rem;
	color: var(--gmg-night);
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
}

.cta-band__text p:last-child {
	max-width: 34rem;
	margin: 0;
	font-size: 1.125rem;
}

.cta-band__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-tile {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--gmg-night);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
}

.contact-tile:hover {
	background: #fff;
	color: var(--gmg-night);
	transform: translateX(4px);
}

.contact-tile > .gmg-svg {
	box-sizing: content-box;
	width: 22px;
	height: 22px;
	padding: 11px;
	border-radius: 12px;
	background: var(--gmg-night);
	color: var(--gmg-sky);
}

.contact-tile small {
	display: block;
	color: #2d4a5c;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 860px) {
	.cta-band__inner { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
	padding: clamp(3.5rem, 6vw, 5rem) var(--gmg-gutter) 2rem;
	background: #101215;
	color: var(--gmg-on-dark-muted);
	font-size: 0.9375rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 2.5rem;
	max-width: var(--gmg-wide);
	margin: 0 auto;
}

.site-footer__brand p {
	max-width: 18rem;
	margin: 1.25rem 0 0;
	color: var(--gmg-on-dark);
	font-family: var(--gmg-font-head);
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.2;
}

.site-footer h2 {
	margin: 0 0 1.25rem;
	color: #fff;
	font-family: var(--gmg-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-footer ul {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--gmg-on-dark);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--gmg-sky);
}

.site-footer__contact li {
	display: flex;
	gap: 0.75rem;
	line-height: 1.45;
}

.site-footer__contact .gmg-svg {
	margin-top: 0.1em;
	color: var(--gmg-sky);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	max-width: var(--gmg-wide);
	margin: clamp(2.5rem, 5vw, 4rem) auto 0;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #7d8894;
	font-size: 0.8125rem;
	line-height: 1.6;
}

.site-footer__legal p {
	max-width: 80ch;
	margin: 0;
}

@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.site-footer__grid { gap: 2.25rem 1.5rem; }
	.site-footer__brand,
	.site-footer__col:last-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ motion */

[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	[data-reveal] { opacity: 1; transform: none; }
}

@media print {
	[data-reveal] { opacity: 1; transform: none; }

	.site-header,
	.cta-band,
	.related-services,
	.site-footer__grid { display: none; }
	.page-hero, .is-style-gmg-hero, .is-style-gmg-section-dark { background: none; color: #000; }
	.page-hero__title, :is(.is-style-gmg-section-dark, .is-style-gmg-hero) :where(h1, h2, h3) { color: #000; }
}
