/* ============================================================
 *  GruffyGoat Custom Widgets — Shared Styles
 * ============================================================ */

/* ----------------------------------------
 *  Widget 1 — Hero Scroll Grid
 * ---------------------------------------- */

.gg-hero-grid {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	overflow: hidden;
}

.gg-hero-grid__sticky {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

/* Image grid — starts zoomed in so center cell fills viewport */
.gg-hero-grid__images {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	padding: 0;
	will-change: transform;
}

.gg-hero-grid__cell {
	overflow: hidden;
	position: relative;
}

.gg-hero-grid__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Text content + overlay — on top of the grid */
.gg-hero-grid__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gg-hero-grid__overlay {
	position: absolute;
	inset: 0;
}

.gg-hero-grid__text {
	position: relative;
	text-align: center;
	max-width: 900px;
	padding: 0 24px;
}

.gg-hero-grid__subtitle {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: 16px;
	font-size: 14px;
}

.gg-hero-grid__title {
	font-size: clamp(36px, 6vw, 80px);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 24px;
}

.gg-hero-grid__description {
	font-size: clamp(14px, 1.5vw, 18px);
	line-height: 1.6;
	margin-bottom: 32px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.gg-hero-grid__buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.gg-hero-grid__btn {
	display: inline-block;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: opacity 0.3s, background-color 0.3s;
	cursor: pointer;
}

.gg-hero-grid__btn:hover {
	opacity: 0.85;
}

.gg-hero-grid__btn--secondary {
	border: 1px solid;
}

/* Mobile: keep 3-col grid but only show center column */
@media (max-width: 767px) {
	.gg-hero-grid__images {
		width: 300% !important;
		left: -100% !important;
	}
}


/* ----------------------------------------
 *  Widget 2 — Sticky Stacking Cards
 * ---------------------------------------- */

.gg-stacking-cards {
	position: relative;
	width: 100%;
}

.gg-stacking-cards__header {
	max-width: 800px;
	margin: 0 auto 48px;
	padding: 0 24px;
}

.gg-stacking-cards__subtitle {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 13px;
	margin-bottom: 12px;
}

.gg-stacking-cards__title {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 16px;
}

.gg-stacking-cards__description {
	font-size: clamp(14px, 1.3vw, 18px);
	line-height: 1.6;
}

.gg-stacking-cards__list {
	width: 100%;
}

.gg-stacking-cards__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	margin-bottom: 24px;
	will-change: transform;
	transform-origin: center top;
}

/* Image on the left */
.gg-stacking-cards__card--img-left {
	direction: rtl; /* Quick swap: image first in visual order */
}

.gg-stacking-cards__card--img-left > * {
	direction: ltr;
}

.gg-stacking-cards__card-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* padding controlled via Elementor widget control */
}

.gg-stacking-cards__card-label {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 13px;
	margin-bottom: 12px;
}

.gg-stacking-cards__card-title {
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 16px;
}

.gg-stacking-cards__card-description {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.6;
	margin-bottom: 24px;
}

.gg-stacking-cards__card-btn {
	display: inline-block;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid;
	transition: opacity 0.3s, background-color 0.3s;
	align-self: flex-start;
}

.gg-stacking-cards__card-btn:hover {
	opacity: 0.75;
}

.gg-stacking-cards__card-image {
	position: relative;
	overflow: hidden;
	min-height: 300px;
}

.gg-stacking-cards__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Mobile: single column */
@media (max-width: 767px) {
	.gg-stacking-cards__card {
		grid-template-columns: 1fr;
	}

	.gg-stacking-cards__card--img-left {
		direction: ltr;
	}

	.gg-stacking-cards__card-image {
		order: -1;
		min-height: 200px;
	}

	.gg-stacking-cards__card-content {
		padding: 24px 20px;
	}
}


/* ----------------------------------------
 *  Widget 3 — Sticky Stacking Content
 * ---------------------------------------- */

.gg-sticky-content {
	position: relative;
	width: 100%;
}

.gg-sticky-content__wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	width: 100%;
	align-items: start;
}

.gg-sticky-content__left {
	padding-top: 24px;
}

.gg-sticky-content__subtitle {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 13px;
	margin-bottom: 12px;
}

.gg-sticky-content__title {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 20px;
}

.gg-sticky-content__description {
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.6;
	margin-bottom: 32px;
}

.gg-sticky-content__btn {
	display: inline-block;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid;
	transition: opacity 0.3s, background-color 0.3s;
}

.gg-sticky-content__btn:hover {
	opacity: 0.75;
}

.gg-sticky-content__right {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-bottom: 40vh;
}

.gg-sticky-content__item {
	border: 1px solid;
	will-change: transform;
	transform-origin: center top;
}

.gg-sticky-content__item-icon {
	display: block;
	margin-bottom: 12px;
	line-height: 1;
}

.gg-sticky-content__item-title {
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 8px;
}

.gg-sticky-content__item-description {
	font-size: clamp(13px, 1.2vw, 15px);
	line-height: 1.6;
}

/* Mobile: single column, left content not sticky */
@media (max-width: 767px) {
	.gg-sticky-content__wrapper {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.gg-sticky-content__left {
		position: static !important;
	}

	.gg-sticky-content__right {
		padding-bottom: 24px;
	}
}
