/* ==========================================================================
   Geo Shop — Brand core

   Shared components ported from `geo-diving-custom/assets/css/core.css` so the
   shop matches geodiving.lv: buttons, section rhythm, cards, CTA, scroll
   reveal. Loaded after style.min.css so it wins on equal specificity.
   ========================================================================== */

/* --- Type --- */

body,
button,
input,
select,
textarea,
optgroup,
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.btn--primary,
.btn--secondary {
	font-family: var(--geo-font);
}

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

#studio-companion-notice {
	display: none;
}

/* --- Soft backdrop --- */

.geo-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.geo-backdrop__glow {
	position: absolute;
	border-radius: 50%; 
	filter: blur(80px);
}

.geo-backdrop__glow--left {
	left: 50%;
	top: 5rem;
	width: 980px;
	height: 460px;
	transform: translateX(-50%);
	background: linear-gradient(to top right, rgba(62, 200, 244, 0.18), transparent);
}

.geo-backdrop__glow--right {
	right: 3rem;
	bottom: 2.5rem;
	width: 420px;
	height: 220px;
	background: linear-gradient(to bottom left, rgba(26, 159, 212, 0.12), transparent);
	filter: blur(64px);
}

/* --- Buttons --- */

.geo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--geo-radius-pill);
	padding: 0.625rem 1.25rem;
	font-family: var(--geo-font);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.2s ease,
		box-shadow 0.25s ease,
		opacity 0.25s ease;
}

.geo-btn svg {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 0;
	flex-shrink: 0;
}

.geo-btn--primary {
	background: linear-gradient(135deg, var(--geo-cyan), var(--geo-cyan-dark));
	color: var(--geo-navy-dark);
	box-shadow: var(--geo-shadow-btn);
}

.geo-btn--ghost {
	background: transparent;
	border: 1px solid var(--geo-line-strong);
	color: var(--geo-text);
	box-shadow: none;
}

.geo-btn--quiet {
	background: var(--geo-surface);
	border: 1px solid var(--geo-line);
	color: var(--geo-text-soft);
}

.geo-btn--lg {
	padding: 0.75rem 2rem;
}

button.geo-btn {
	font: inherit;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
}

/* Hover only on fine pointers — avoids a sticky tap highlight on mobile */
@media (hover: hover) and (pointer: fine) {
	.geo-btn--primary:hover {
		opacity: 0.92;
		transform: translateY(-1px);
		box-shadow: var(--geo-shadow-btn-hover);
		color: var(--geo-navy-dark);
	}

	.geo-btn--ghost:hover {
		background: var(--geo-surface-hover);
		border-color: rgba(26, 159, 212, 0.45);
		color: var(--geo-ink);
	}

	.geo-btn--quiet:hover {
		background: rgba(62, 200, 244, 0.12);
		border-color: rgba(62, 200, 244, 0.4);
		color: var(--geo-ink);
	}
}

.geo-btn:focus-visible {
	outline: 2px solid var(--geo-cyan);
	outline-offset: 3px;
}

/* --- Section layout --- */

.geo-section {
	position: relative;
	z-index: 1;
	max-width: var(--geo-container);
	margin: 0 auto;
	padding: 0 1rem;
}

.geo-section--wide {
	max-width: var(--geo-container-wide);
}

.geo-section--narrow {
	max-width: var(--geo-container-narrow);
}

.geo-section__head {
	text-align: center;
	margin-bottom: 4rem;
}

/* Left-aligned head with a trailing action, as used above product grids */
.geo-section__head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	text-align: left;
	margin-bottom: 2.5rem;
}

.geo-section__head--split .geo-section__desc {
	margin-left: 0;
	margin-right: 0;
}

.geo-section__label {
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--geo-cyan-dark);
	margin: 0 0 0.75rem;
}

.geo-section__title {
	font-size: var(--geo-fs-title);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	color: var(--geo-text);
}

.geo-section__desc {
	max-width: 28rem;
	margin: 0.75rem auto 0;
	font-size: 0.875rem;
	color: var(--geo-text-muted);
	line-height: 1.65;
}

/* --- Card (brand service-card treatment, reused for categories) --- */

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

.geo-card {
	position: relative;
	height: 100%;
	border-radius: var(--geo-radius-lg);
	padding: 1.5px;
	overflow: hidden;
	cursor: pointer;
	transition:
		transform 0.45s var(--geo-ease),
		box-shadow 0.45s var(--geo-ease);
}

.geo-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--geo-shadow-card);
}

.geo-card__glow {
	position: absolute;
	width: 15rem;
	height: 15rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--geo-cyan) 0%, var(--geo-cyan-dark) 50%, var(--geo-cyan) 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(--geo-navy-card);
	border: 1px solid var(--geo-line);
}

.geo-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--geo-radius-pill);
	background: var(--geo-surface-hover);
	border: 1px solid var(--geo-line-strong);
	opacity: 0;
	transform: translate(-6px, 6px);
	transition:
		opacity 0.35s ease,
		transform 0.35s var(--geo-ease),
		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: var(--geo-ink);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- CTA --- */

.geo-cta {
	position: relative;
	z-index: 1;
	padding: 5rem 0 6rem;
	background: var(--geo-page);
}

.geo-cta__box {
	position: relative;
	border-radius: var(--geo-radius-xl);
	background: linear-gradient(160deg, rgba(62, 200, 244, 0.16) 0%, #fff 45%, rgba(228, 235, 242, 0.9) 100%);
	border: 1px solid var(--geo-line);
	box-shadow: var(--geo-shadow-card);
	padding: 3rem 2rem;
	text-align: center;
	overflow: hidden;
}

.geo-cta__noise {
	position: absolute;
	inset: 0;
	z-index: 2;
	background-image: url("../img/noise.svg");
	opacity: 0.08;
	pointer-events: none;
}

.geo-cta__content {
	position: relative;
	z-index: 3;
}

.geo-cta__title {
	font-size: var(--geo-fs-title);
	font-weight: 600;
	margin: 0 0 1.5rem;
	color: var(--geo-text);
}

.geo-cta__title-accent {
	background: linear-gradient(to right, var(--geo-cyan-dark), var(--geo-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.geo-cta__desc {
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	font-size: 0.9375rem;
	color: var(--geo-text-muted);
	line-height: 1.65;
}

.geo-cta__actions {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

/* --- Scroll reveal --- */

.geo-animate {
	opacity: 0;
	transform: translateY(36px);
	transition:
		opacity 0.75s var(--geo-ease),
		transform 0.75s var(--geo-ease);
	will-change: opacity, transform;
}

.geo-animate--visible {
	opacity: 1;
	transform: translateY(0);
}

/* Product hover: animate only the hovered card, never dim siblings. */
.products .product,
.products:has(.product:hover) .product:not(:hover),
.product:hover ~ .product {
	opacity: 1;
}

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

@media (prefers-reduced-motion: reduce) {
	.geo-animate {
		opacity: 1;
		transform: none;
		animation: none;
		transition: none;
	}

	.geo-card,
	.geo-card__glow,
	.geo-card__arrow {
		transition: none;
	}

	.geo-card:hover {
		transform: none;
	}

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

	.geo-card:hover .geo-card__arrow {
		opacity: 1;
		transform: none;
	}
}

/* --- Responsive --- */

@media (max-width: 768px) {
	.geo-section__head {
		margin-bottom: 2.5rem;
	}

	.geo-cta {
		padding: 3.5rem 0 4rem;
	}

	.geo-cta__box {
		padding: 2rem 1.25rem;
	}
}
