/* ==========================================================================
   Geo Shop — Front page

   Section structure mirrors the Blocksy "Gadgets" reference (hero + trust bar,
   bento categories, numbered strip, promo banners, product grids, pillars,
   closing CTA) in the geodiving.lv brand system.
   ========================================================================== */

.home .main-wrap {
	background: var(--geo-page);
	color: var(--geo-text);
}

/* --- Hero --- */

.geo-hero {
	position: relative;
	/* Above the following section so the overlapping trust bar stays visible */
	z-index: 2;
	padding: 9rem 0 0;
	background:
		linear-gradient(135deg, #dceaf3 0%, #eef3f7 42%, #f7fafc 100%);
	/* Visible so the trust bar can overlap into the next section */
	overflow: visible;
}

.geo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(238, 243, 247, 0.92) 0%, rgba(238, 243, 247, 0.55) 48%, rgba(238, 243, 247, 0.12) 100%);
	z-index: 1;
}

/* Fades the hero gradient into the page so the section has no hard bottom edge */
.geo-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 8rem;
	background: linear-gradient(180deg, rgba(238, 243, 247, 0) 0%, var(--geo-page) 100%);
	z-index: 1;
	pointer-events: none;
}

.geo-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 3rem;
	max-width: var(--geo-container-wide);
	margin: 0 auto;
	padding: 0 2rem 2rem;
}

.geo-hero__eyebrow {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--geo-cyan-dark);
	margin: 0 0 1rem;
}

.geo-hero__eyebrow .woocommerce-Price-amount {
	color: inherit;
	font-weight: 600;
}

.geo-hero__title {
	display: block;
	font-size: var(--geo-fs-hero);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
	color: var(--geo-text);
	text-wrap: balance;
}

.geo-hero__title > span {
	display: block;
}

.geo-hero__title-accent {
	color: var(--geo-cyan);
}

.geo-hero__subtitle {
	font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
	line-height: 1.65;
	color: var(--geo-text-soft);
	max-width: 34rem;
	margin: 0 0 2rem;
}

/* Hero entrance, staggered like the brand site */
.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 var(--geo-ease) 0.15s forwards;
}

.geo-hero--loaded .geo-hero__title--line2 {
	animation: geo-fade-up 0.9s var(--geo-ease) 0.35s forwards;
}

.geo-hero--loaded .geo-hero__title--line3 {
	animation: geo-fade-up 0.9s var(--geo-ease) 0.55s forwards;
}

@keyframes geo-fade-up {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.geo-hero__search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 32rem;
	margin: 0 0 1.75rem;
	padding: 0.4rem 0.4rem 0.4rem 1rem;
	background: #fff;
	border: 1px solid var(--geo-line-strong);
	border-radius: var(--geo-radius-pill);
	box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
	transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.geo-hero__search:focus-within {
	border-color: rgba(62, 200, 244, 0.55);
	background: #fff;
	box-shadow: 0 8px 28px rgba(26, 159, 212, 0.18);
}

.geo-hero__search-icon {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	color: var(--geo-text-muted);
	fill: none;
}

.geo-hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: none;
	background: none;
	padding: 0.5rem 0;
	color: var(--geo-text);
	font-family: var(--geo-font);
	font-size: 0.9375rem;
}

.geo-hero__search input[type="search"]::placeholder {
	color: var(--geo-text-muted);
}

.geo-hero__search input[type="search"]:focus {
	outline: none;
}

.geo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.geo-hero__media {
	position: relative;
	justify-self: end;
}

.geo-hero__media img {
	display: block;
	width: 100%;
	max-width: 34rem;
	height: auto;
	border-radius: var(--geo-radius-lg);
	box-shadow: 0 24px 48px rgba(10, 22, 40, 0.12);
}

/* --- Trust bar --- */

.geo-trust {
	position: relative;
	z-index: 3;
	max-width: var(--geo-container-wide);
	margin: 0 auto;
	padding: 0 2rem;
	transform: translateY(50%);
}

.geo-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--geo-line);
	border: 1px solid rgba(62, 200, 244, 0.22);
	border-radius: var(--geo-radius-lg);
	overflow: hidden;
	box-shadow: var(--geo-shadow-card);
}

.geo-trust__item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1.5rem 1.25rem;
	background: #fff;
}

.geo-trust__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: var(--geo-radius-md);
	border: 1px solid rgba(62, 200, 244, 0.35);
	background: rgba(62, 200, 244, 0.1);
	color: var(--geo-cyan-dark);
}

.geo-trust__icon svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
}

.geo-trust__copy h3 {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--geo-text);
	margin: 0 0 0.2rem;
}

.geo-trust__copy h3 a {
	color: inherit;
	text-decoration: none;
}

.geo-trust__copy h3 a:hover {
	color: var(--geo-cyan-dark);
}

.geo-trust__copy p {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--geo-text-muted);
	margin: 0;
}

/* --- Buy destinations (bento) --- */

.geo-destinations {
	position: relative;
	z-index: 1;
	padding: 8rem 0 5rem;
	background: var(--geo-page);
}

.geo-destinations__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	/* Fixed rows keep the wells from stretching to the tallest product photo */
	grid-template-rows: repeat(2, 18rem);
	gap: 1.5rem;
}

/* Tall lead cell on the left, wide cell top-right, two small cells below it */
.geo-destinations__cell--1 {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.geo-destinations__cell--2 {
	grid-column: 2 / span 2;
	grid-row: 1;
}

.geo-destination {
	height: 100%;
	/* Wins over .geo-animate so these cards rise like the website cards. */
	transition:
		transform 0.45s var(--geo-ease),
		border-color 0.35s ease,
		box-shadow 0.45s var(--geo-ease);
}

.geo-destination .geo-card__surface {
	padding: 1.75rem;
	gap: 1.25rem;
}

.geo-destination__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.geo-destination__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--geo-text);
	margin: 0 0 0.35rem;
}

.geo-destination__count {
	font-size: 0.8125rem;
	color: var(--geo-text-muted);
	margin: 0;
}

/* Product photos sit on a light well so they read correctly */
.geo-destination__well {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 1rem;
	border-radius: var(--geo-radius-md);
	background: var(--geo-well);
	overflow: hidden;
}

.geo-destination__well img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.7s var(--geo-ease);
}

.geo-card:hover .geo-destination__well img {
	transform: scale(1.05);
}

/* --- Numbered reasons --- */

.geo-reasons {
	position: relative;
	z-index: 1;
	padding: 0 0 5rem;
	background: var(--geo-page);
}

.geo-reasons__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.geo-reason {
	padding: 1.5rem;
	border-radius: var(--geo-radius-md);
	background: #fff;
	border: 1px solid var(--geo-line);
	box-shadow: 0 8px 20px rgba(10, 22, 40, 0.04);
	transition:
		transform 0.45s var(--geo-ease),
		border-color 0.35s ease,
		box-shadow 0.45s var(--geo-ease);
}

.geo-reason:hover {
	border-color: rgba(62, 200, 244, 0.28);
	transform: translateY(-4px);
}

.geo-reason__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--geo-text);
	margin: 0;
}

.geo-reason__rule {
	display: block;
	width: 1.75rem;
	height: 2px;
	margin: 1rem 0;
	border-radius: 1px;
	background: var(--geo-cyan);
	box-shadow: 0 0 8px rgba(62, 200, 244, 0.5);
}

.geo-reason__text {
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--geo-text-muted);
	margin: 0;
}

/* --- Promo banners --- */

.geo-promo {
	position: relative;
	z-index: 1;
	padding: 3rem 0;
	background: var(--geo-page);
}

.geo-promo__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 2rem;
	padding: clamp(2rem, 4vw, 3.5rem);
	border-radius: var(--geo-radius-xl);
	overflow: hidden;
	background:
		linear-gradient(120deg, rgba(62, 200, 244, 0.18) 0%, #fff 48%, var(--geo-page-alt) 100%);
	border: 1px solid var(--geo-line);
	box-shadow: var(--geo-shadow-card);
}

.geo-promo--reverse .geo-promo__box {
	background:
		linear-gradient(240deg, rgba(62, 200, 244, 0.14) 0%, #fff 48%, var(--geo-page-alt) 100%);
}

.geo-promo--reverse .geo-promo__media {
	order: -1;
}

.geo-promo__eyebrow {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--geo-cyan-dark);
	margin: 0 0 0.75rem;
}

.geo-promo__title {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--geo-text);
	margin: 0 0 1rem;
}

.geo-promo__desc {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--geo-text-soft);
	max-width: 32rem;
	margin: 0 0 2rem;
}

.geo-promo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.geo-promo__media {
	position: relative;
	justify-self: center;
}

.geo-promo__media img {
	display: block;
	width: 100%;
	max-width: 26rem;
	height: auto;
	border-radius: var(--geo-radius-lg);
	filter: drop-shadow(0 16px 32px rgba(10, 22, 40, 0.14));
}

/* Floating spec callout over the media, as in the reference layout */
.geo-promo__callout {
	position: absolute;
	left: 1rem;
	bottom: 1.5rem;
	max-width: 15rem;
	padding: 1rem 1.15rem;
	border-radius: var(--geo-radius-md);
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--geo-line-strong);
	box-shadow: 0 12px 28px rgba(10, 22, 40, 0.12);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.geo-promo__callout h3 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--geo-text);
	margin: 0 0 0.35rem;
}

.geo-promo__callout p {
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--geo-text-muted);
	margin: 0;
}

/* --- Product grids --- */

.geo-products {
	position: relative;
	z-index: 1;
	padding: 4rem 0;
	background: var(--geo-page);
}

.geo-products__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.geo-products__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Pillars --- */

.geo-pillars {
	position: relative;
	z-index: 1;
	padding: 4rem 0;
	background: var(--geo-page);
}

.geo-pillars__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.geo-pillar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: 2rem;
	border-radius: var(--geo-radius-lg);
	background: #fff;
	border: 1px solid var(--geo-line);
	box-shadow: 0 8px 20px rgba(10, 22, 40, 0.04);
	transition:
		transform 0.45s var(--geo-ease),
		border-color 0.35s ease,
		box-shadow 0.45s var(--geo-ease);
}

.geo-pillar:hover {
	border-color: rgba(62, 200, 244, 0.28);
	transform: translateY(-4px);
}

.geo-pillar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--geo-radius-pill);
	background: rgba(62, 200, 244, 0.1);
	border: 1px solid rgba(62, 200, 244, 0.3);
	color: var(--geo-cyan);
}

.geo-pillar__icon svg {
	width: 1.375rem;
	height: 1.375rem;
	fill: none;
}

.geo-pillar__title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--geo-text);
	margin: 0;
}

.geo-pillar__text {
	flex: 1;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--geo-text-muted);
	margin: 0;
}

/* --- Responsive --- */

@media (max-width: 1100px) {
	.geo-hero__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.geo-hero__media {
		justify-self: center;
	}

	.geo-trust__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.geo-destinations {
		padding-top: 12rem;
	}

	/* Not enough width for the bento — fall back to an even 2x2 */
	.geo-destinations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		grid-auto-rows: 15rem;
	}

	.geo-destinations__cell--1,
	.geo-destinations__cell--2 {
		grid-column: auto;
		grid-row: auto;
	}

	.geo-reasons__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.geo-products__grid,
	.geo-products__grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.geo-pillars__grid {
		grid-template-columns: 1fr;
	}

	.geo-promo__box {
		grid-template-columns: 1fr;
	}

	.geo-promo--reverse .geo-promo__media {
		order: 0;
	}
}

@media (max-width: 768px) {
	.geo-hero {
		padding-top: 7rem;
	}

	.geo-hero__inner {
		padding: 0 1.25rem 3rem;
	}

	.geo-hero__search {
		flex-wrap: wrap;
		border-radius: var(--geo-radius-lg);
		padding: 0.75rem;
	}

	.geo-hero__search input[type="search"] {
		flex-basis: 100%;
		order: -1;
	}

	/* The field and button stack, so the inline icon has nowhere to sit */
	.geo-hero__search-icon {
		display: none;
	}

	.geo-hero__search .geo-btn {
		width: 100%;
	}

	.geo-hero__actions .geo-btn {
		flex: 1;
	}

	.geo-trust {
		padding: 0 1rem;
		transform: translateY(2rem);
	}

	.geo-trust__grid {
		grid-template-columns: 1fr;
	}

	.geo-destinations {
		padding: 5rem 0 3rem;
	}

	.geo-destinations__grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-rows: 16rem;
		gap: 1.25rem;
	}

	.geo-destinations__cell--1,
	.geo-destinations__cell--2 {
		grid-row: auto;
		grid-column: auto;
	}

	.geo-reasons {
		padding-bottom: 3rem;
	}

	.geo-reasons__grid {
		grid-template-columns: 1fr;
	}

	.geo-products,
	.geo-pillars {
		padding: 2.5rem 0;
	}

	.geo-products__grid,
	.geo-products__grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.geo-promo__callout {
		position: static;
		max-width: none;
		margin-top: 1rem;
	}
}

@media (max-width: 480px) {
	.geo-products__grid,
	.geo-products__grid--3 {
		grid-template-columns: 1fr;
	}
}
