/*
Theme Name: Ghost Moon Media for GeneratePress
Description: A lightweight corporate child theme for Ghost Moon Media LLC.
Author: Ghost Moon Media LLC
Template: generatepress
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghost-moon-media-gp
*/

:root,
.gmm-section,
.gmm-header,
.gmm-footer,
.gmm-legal {
	--gmm-bg: #0b0f17;
	--gmm-surface: #131a26;
	--gmm-accent: #6366f1;
	--gmm-text: #e2e8f0;
	--gmm-muted: #94a3b8;
	--gmm-cyan: #38bdf8;
	--gmm-line: rgba(255, 255, 255, 0.08);
	--gmm-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:has(body.gmm-corporate) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(body.gmm-corporate) { scroll-behavior: auto; }
}

body.gmm-corporate,
.gmm-section,
.gmm-header,
.gmm-footer,
.gmm-legal {
	background-color: var(--gmm-bg);
	color: var(--gmm-text);
	font-family: var(--gmm-font);
	font-size: 1rem;
	line-height: 1.65;
}

.gmm-corporate {
	color-scheme: dark;
}

.gmm-page {
	min-height: 50vh;
}

.gmm-inner-container,
.gmm-main .gmm-section .gmm-inner-container {
	box-sizing: border-box;
	width: min(calc(100% - 2 * clamp(1rem, 4vw, 2.5rem)), 1140px);
	max-width: 1140px;
	margin-inline: auto;
}

.gmm-section {
	padding-block: clamp(3.5rem, 8vw, 6.25rem);
	scroll-margin-block-start: 1.25rem;
}

.gmm-section + .gmm-section,
.gmm-footer {
	border-block-start: 1px solid var(--gmm-line);
}

.gmm-section h1,
.gmm-section h2,
.gmm-section h3,
.gmm-legal h1,
.gmm-legal h2,
.gmm-legal h3 {
	margin: 0;
	color: var(--gmm-text);
	font-family: var(--gmm-font);
	font-weight: 700;
	letter-spacing: -0.038em;
	line-height: 1.12;
	text-wrap: balance;
}

.gmm-section h2,
.gmm-legal h2 {
	font-size: clamp(1.85rem, 4vw, 3rem);
}

.gmm-section p,
.gmm-legal p {
	margin: 0;
	color: var(--gmm-muted);
}

.gmm-corporate :focus-visible,
.gmm-footer :focus-visible {
	outline: 2px solid var(--gmm-cyan);
	outline-offset: 4px;
}

.gmm-main:focus {
	outline: 0;
}

.gmm-skip-link {
	position: fixed;
	z-index: 100000;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	padding: 0.7rem 1rem;
	transform: translateY(-200%);
	border-radius: 0.375rem;
	background: var(--gmm-text);
	color: var(--gmm-bg);
}

.gmm-skip-link:focus {
	transform: none;
	color: var(--gmm-bg);
}

/* Header */
.gmm-header {
	border-block-end: 1px solid var(--gmm-line);
}

.gmm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1.25rem;
	min-height: 76px;
}

.gmm-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 44px;
	color: var(--gmm-text);
	font-size: 0.83rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-decoration: none;
}

.gmm-brand:hover,
.gmm-brand:focus {
	color: #fff;
}

.gmm-brand-mark {
	display: block;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: radial-gradient(circle at 68% 32%, var(--gmm-bg) 0 46%, transparent 49%),
		linear-gradient(140deg, var(--gmm-cyan), var(--gmm-accent));
}

.gmm-nav ul,
.gmm-footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem clamp(0.9rem, 3vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gmm-nav a,
.gmm-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gmm-muted);
	font-size: 0.92rem;
	font-weight: 550;
	text-decoration: none;
}

.gmm-nav a:hover,
.gmm-nav a:focus,
.gmm-footer a:hover,
.gmm-footer a:focus {
	color: var(--gmm-cyan);
}

/* Landing page */
.gmm-main .gmm-section > .wp-block-group__inner-container,
.gmm-main .gmm-section :is(.gmm-inner-container, .gmm-services-grid, .gmm-service-card, .gmm-contact-copy) > .wp-block-group__inner-container {
	display: contents;
}

.gmm-hero {
	position: relative;
	display: grid;
	place-items: center;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(25rem, 40vw, 35rem);
	padding-block: clamp(4rem, 7vw, 6.5rem);
	background: radial-gradient(ellipse at 50% -45%, #244477, #121c35 43%, var(--gmm-bg) 83%);
	text-align: center;
}

.gmm-hero::before {
	position: absolute;
	z-index: -1;
	inset-block-end: 52%;
	left: 50%;
	width: min(146vw, 1370px);
	aspect-ratio: 2.38;
	transform: translateX(-50%);
	border: 1px solid rgba(139, 215, 252, 0.22);
	border-radius: 50%;
	box-shadow: 0 0 0 clamp(1.25rem, 3vw, 2.75rem) rgba(56, 189, 248, 0.045),
		0 0 0 clamp(2.5rem, 6vw, 5.5rem) rgba(99, 102, 241, 0.05),
		0 2rem 6rem rgba(56, 189, 248, 0.11);
	content: "";
}

.gmm-hero .gmm-hero-inner {
	display: grid;
	justify-items: center;
	max-width: 1140px;
}

.gmm-hero .gmm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1.2rem;
	color: #ade2ff;
	font-size: clamp(0.67rem, 1.2vw, 0.79rem);
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.4;
}

.gmm-hero .gmm-eyebrow::before {
	flex: 0 0 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--gmm-cyan);
	box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18);
	content: "";
}

.gmm-hero .gmm-hero-title {
	max-width: 100%;
	margin-inline: auto;
	color: #f1f6fc;
	font-size: clamp(2.65rem, 7vw, 6rem);
	font-weight: 750;
	letter-spacing: -0.068em;
	line-height: 1.02;
	text-wrap: balance;
}

.gmm-hero .gmm-hero-deck {
	width: min(100%, 49ch);
	max-width: 100%;
	margin: 1.15rem auto 0;
	color: #b5c2d5;
	font-size: clamp(1.07rem, 2.2vw, 1.35rem);
	text-wrap: balance;
}

.gmm-hero .gmm-hero-actions {
	justify-content: center;
	margin: 1.65rem auto 0;
}

.gmm-hero .gmm-hero-actions a.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7rem 1.35rem;
	border: 1px solid #b8e8fc;
	border-radius: 0.45rem;
	background: #a5e3fa;
	color: #0b1d2d;
	font: 700 0.94rem/1.35 var(--gmm-font);
	text-decoration: none;
}

.gmm-hero .gmm-hero-actions a.wp-block-button__link:hover,
.gmm-hero .gmm-hero-actions a.wp-block-button__link:focus-visible {
	background: #e0f5ff;
	color: #0b1d2d;
}

.gmm-services {
	background: #101622;
}

.gmm-services .gmm-inner-container h2 {
	max-width: none;
}

.gmm-services .gmm-inner-container .gmm-services-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(0.9rem, 2.4vw, 1.5rem);
	align-items: stretch;
	width: 100%;
	max-width: none;
	margin-block: clamp(1.3rem, 2.8vw, 2rem) 0;
}

.gmm-service-card {
	padding: clamp(1.25rem, 2.7vw, 2rem);
	border: 1px solid var(--gmm-line, rgba(255, 255, 255, 0.08));
	border-radius: 0.75rem;
	background: var(--gmm-surface, #131a26);
	color: var(--gmm-text, #e2e8f0);
}

.gmm-service-card h3 {
	font-size: clamp(1.16rem, 2vw, 1.5rem);
	letter-spacing: -0.022em;
	text-wrap: initial;
}

.gmm-service-card p {
	margin-block-start: 0.65rem;
}

.gmm-services .gmm-services-grid .gmm-service-card {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(1rem, 2.8vw, 1.75rem);
	border: 1px solid #28344d;
	border-block-start: 2px solid #4c83a5;
	background: linear-gradient(150deg, #172235, var(--gmm-surface) 76%);
}

.gmm-services .gmm-services-grid .gmm-service-card :is(h3, p) {
	max-width: none;
}

.gmm-services .gmm-services-grid .gmm-service-card p {
	margin-block-start: 0.75rem;
}

.gmm-about-inner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(1.5rem, 5vw, 4.5rem);
	border: 1px solid #28344d;
	border-radius: 1rem;
	background: linear-gradient(115deg, #141c2d, #101521 72%);
}

.gmm-about-inner::after {
	position: absolute;
	z-index: -1;
	inset-block-start: 50%;
	inset-inline-end: -5%;
	width: clamp(12rem, 32vw, 26rem);
	aspect-ratio: 1;
	transform: translateY(-50%);
	border: 1px solid rgba(99, 102, 241, 0.22);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.13), transparent 72%);
	box-shadow: 0 0 0 1.8rem rgba(99, 102, 241, 0.05), 0 0 0 3.6rem rgba(99, 102, 241, 0.04);
	content: "";
}

.gmm-about .gmm-about-inner h2 {
	max-width: 24ch;
	margin-inline: 0 !important;
}

.gmm-about p,
.gmm-contact-copy p {
	font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.gmm-about .gmm-about-inner p {
	max-width: 58ch;
	margin-block-start: 1rem;
	margin-inline: 0 !important;
}

.gmm-contact {
	background: radial-gradient(ellipse at 50% 115%, #162440, var(--gmm-bg) 72%);
	text-align: center;
}

.gmm-contact-copy p {
	max-width: 42ch;
	margin: 0.75rem auto 0;
	text-wrap: balance;
}

.gmm-contact-details {
	margin: 0.8rem 0 0;
	font-style: normal;
	overflow-wrap: anywhere;
}

.gmm-contact-details a {
	display: inline-block;
	max-width: 100%;
	min-height: 44px;
	padding-block: 0.25rem;
	color: #8bd7fc;
	font-size: clamp(1.12rem, 3vw, 2.25rem);
	font-weight: 650;
	letter-spacing: -0.023em;
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.23em;
}

.gmm-legal a {
	color: #8bd7fc;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.gmm-contact-details a:hover,
.gmm-legal a:hover {
	color: var(--gmm-text);
}

/* Legal pages and footer */
.gmm-legal {
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

.gmm-legal .gmm-legal-inner {
	max-width: 850px;
}

.gmm-legal-inner article {
	padding: clamp(1.25rem, 5vw, 3.25rem);
	border: 1px solid #28344d;
	border-block-start: 2px solid var(--gmm-cyan);
	border-radius: 0.75rem;
	background: var(--gmm-surface);
}

.gmm-legal h1 {
	margin-block-end: 1.5rem;
	font-size: clamp(2.4rem, 6vw, 4rem);
}

.gmm-legal h1 + p strong {
	color: #c4cfdf;
	font-size: 0.9rem;
	font-weight: 600;
}

.gmm-legal h2 {
	margin-block: 2rem 0.55rem;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--gmm-line);
	font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.gmm-legal p + p {
	margin-block-start: 1rem;
}

.gmm-legal ul,
.gmm-legal ol {
	color: var(--gmm-muted);
}

.gmm-legal-contact {
	margin: 0;
	color: var(--gmm-muted);
	font-style: normal;
	overflow-wrap: anywhere;
}

.gmm-footer {
	padding-block: 2.25rem 1.25rem;
	background: #0a0e16;
}

.gmm-footer-main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0.8rem 2rem;
}

.gmm-footer-contact {
	display: grid;
	justify-items: start;
	gap: 0.15rem;
	margin: 0;
	color: var(--gmm-muted);
	font-size: 0.92rem;
	font-style: normal;
	overflow-wrap: anywhere;
}

.gmm-footer-contact strong,
.gmm-legal-contact strong {
	color: var(--gmm-text);
	font-weight: 650;
}

.gmm-footer-contact a {
	color: var(--gmm-muted);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.gmm-footer .gmm-copyright {
	margin-block: 1.5rem 0;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--gmm-line);
	color: var(--gmm-muted);
	font-size: 0.85rem;
}

@media (min-width: 781px) {
	.gmm-services .gmm-inner-container .gmm-services-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	@supports (grid-template-rows: subgrid) {
		.gmm-services .gmm-services-grid .gmm-service-card {
			display: grid;
			grid-row: span 2;
			grid-template-rows: subgrid;
			row-gap: 0.75rem;
		}

		.gmm-services .gmm-services-grid .gmm-service-card p {
			margin-block-start: 0;
		}
	}
}

@media (max-width: 780px) {
	.gmm-hero::before {
		inset-block-end: 63%;
	}

	.gmm-about-inner::after {
		inset-inline-end: -7rem;
		opacity: 0.55;
	}
}

@media (max-width: 500px) {
	.gmm-header-inner {
		flex-wrap: wrap;
		justify-content: center;
		min-height: 0;
		padding-block: 0.45rem;
	}

	.gmm-nav {
		flex-basis: 100%;
	}

	.gmm-nav ul {
		justify-content: center;
	}
}
