/* ==========================================================================
   Geo Diving custom — Front page
   ========================================================================== */

/* --- Hero --- */

.geo-hero {
	position: relative;
	z-index: 1;
	min-height: 75vh;
	min-height: 75dvh;
	display: grid;
	align-items: center;
	background-color: var(--wp--preset--color--navy-dark, #050d18);
	background-image: linear-gradient(135deg, #051525 0%, #0a2844 40%, #061828 100%);
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

.geo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(5, 13, 24, 0.92) 0%,
		rgba(5, 13, 24, 0.65) 45%,
		rgba(5, 13, 24, 0.35) 100%
	);
	z-index: 1;
}

.geo-hero__text {
	position: relative;
	z-index: 2;
	margin: 4rem auto;
	padding: 8rem 2rem 4rem;
	width: 100%;
	max-width: min(1320px, 100%);
}

.geo-hero__title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 1.25rem;
	max-width: 680px;
}

.geo-hero__title-accent {
	color: var(--wp--preset--color--cyan, #3ec8f4);
}

.geo-hero__subtitle {
	font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
	color: rgba(255, 255, 255, 0.8);
	max-width: 560px;
	line-height: 1.65;
	margin: 0;
}

.geo-hero__title--line1,
.geo-hero__title--line2,
.geo-hero__title--line3 {
	opacity: 0;
	transform: translateY(28px);
}

.geo-hero--loaded .geo-hero__title--line1 {
	animation: geo-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.geo-hero--loaded .geo-hero__title--line2 {
	animation: geo-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.geo-hero--loaded .geo-hero__title--line3 {
	animation: geo-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes geo-fade-up {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Service Cards --- */

.geo-services {
	position: relative;
	z-index: 1;
	padding: 0 2rem 3rem;
	margin-top: -2rem;
	width: 100%;
	max-width: 100%;
}

.geo-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	max-width: min(1320px, 100%);
	margin: 0 auto;
	width: 100%;
}

.geo-card__link {
	display: block;
	text-decoration: none;
	height: 100%;
}

.geo-card {
	position: relative;
	border-radius: 1rem;
	padding: 1.5px;
	overflow: hidden;
	cursor: pointer;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.geo-card:hover {
	transform: translateY(-8px);
	box-shadow:
		0 20px 48px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(62, 200, 244, 0.12);
}

.geo-card__glow {
	position: absolute;
	width: 15rem;
	height: 15rem;
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		var(--wp--preset--color--cyan, #3ec8f4) 0%,
		var(--wp--preset--color--cyan-dark, #1a9fd4) 50%,
		var(--wp--preset--color--cyan, #3ec8f4) 100%
	);
	filter: blur(48px);
	opacity: 0;
	pointer-events: none;
	z-index: 0;
	transform: translate(-50%, -50%);
	transition: opacity 0.3s ease;
}

.geo-card--glow-active .geo-card__glow {
	opacity: 0.85;
}

.geo-card__surface {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: calc(1.125rem - 2px);
	overflow: hidden;
	background: var(--wp--preset--color--navy-card, #0d1f35);
}

.geo-card__bg {
	position: absolute;
	inset: 0;
	background-color: var(--wp--preset--color--navy-card, #0d1f35);
	background-size: cover;
	background-position: center;
	z-index: 0;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.geo-card:hover .geo-card__bg {
	transform: scale(1.06);
}

.geo-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(5, 13, 24, 0.15) 0%,
		rgba(5, 13, 24, 0.92) 100%
	);
	z-index: 1;
	transition: background 0.4s ease;
}

.geo-card:hover .geo-card__overlay {
	background: linear-gradient(
		180deg,
		rgba(5, 13, 24, 0.2) 0%,
		rgba(5, 13, 24, 0.88) 100%
	);
}

.geo-card__body {
	position: relative;
	z-index: 2;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: space-between;
	gap: 1.25rem;
}

.geo-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.geo-card__icon {
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(62, 200, 244, 0.35);
	border-radius: 0.875rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(5, 13, 24, 0.55);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition:
		border-color 0.3s ease,
		background 0.3s ease,
		transform 0.3s ease;
}

.geo-card:hover .geo-card__icon {
	border-color: rgba(62, 200, 244, 0.65);
	background: rgba(5, 13, 24, 0.7);
	transform: scale(1.05);
}

.geo-card__icon svg {
	width: 1.375rem;
	height: 1.375rem;
	stroke: var(--wp--preset--color--cyan, #3ec8f4);
	fill: none;
	stroke-width: 1.5;
}

.geo-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	opacity: 0;
	transform: translate(-6px, 6px);
	transition:
		opacity 0.35s ease,
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.3s ease,
		border-color 0.3s ease;
}

.geo-card:hover .geo-card__arrow {
	opacity: 1;
	transform: translate(0, 0);
	background: rgba(62, 200, 244, 0.15);
	border-color: rgba(62, 200, 244, 0.35);
}

.geo-card__arrow svg {
	width: 1.125rem;
	height: 1.125rem;
	stroke: #fff;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.geo-card__content {
	margin-top: auto;
	padding-top: 5rem;
}

.geo-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.875rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.geo-card__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.geo-card__list li {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.78);
	padding: 0.15rem 0 0.15rem 1.125rem;
	position: relative;
	line-height: 1.5;
	transition: color 0.3s ease;
}

.geo-card:hover .geo-card__list li {
	color: rgba(255, 255, 255, 0.92);
}

.geo-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: var(--wp--preset--color--cyan, #3ec8f4);
	box-shadow: 0 0 8px rgba(62, 200, 244, 0.5);
}

/* --- Responsive --- */

@media (max-width: 1100px) {
	.geo-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.geo-hero {
		min-height: 100svh;
	}

	.geo-hero__text {
		padding: 7rem 1.25rem 3rem;
	}

	.geo-services {
		padding: 0 1rem 2rem;
		margin-top: -2rem;
	}

	.geo-services__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.geo-card {
		min-height: auto;
	}

	.geo-card__surface {
		min-height: 20rem;
	}
}

