/* Getwine Homepage & Banners — front-end styles */

:root {
	--gwhb-cream: #f1eee5;
	--gwhb-cream-dark: #e9e5dc;
	--gwhb-red: #a93b38;
	--gwhb-red-dark: #93322f;
	--gwhb-green: #3d5a4a;
	--gwhb-dark: #2b2724;
	--gwhb-lime: #9bb53c;
	--gwhb-offwhite: #f7f4ec;
	--gwhb-radius: 14px;
	--gwhb-radius-sm: 10px;
}

/* --------------------------------------------------------------------- *
 * A/B variant switching (cache-safe: both variants render, JS shows one)
 * --------------------------------------------------------------------- */

.gwhb-variant {
	display: none;
}

html[data-gwhb-variant="a"] .gwhb-variant-a,
html[data-gwhb-variant="b"] .gwhb-variant-b {
	display: block;
}

/* Shared bits ---------------------------------------------------------- */

.gwhb-accent-dot {
	color: var(--gwhb-lime);
}

.gwhb-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--gwhb-lime);
	flex: 0 0 auto;
}

.gwhb-arrow {
	display: inline-block;
	transition: transform 0.15s ease;
}

a:hover .gwhb-arrow,
.gwhb-wts-link:hover .gwhb-arrow {
	transform: translateX(3px);
}

.gwhb-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: var(--gwhb-radius-sm);
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gwhb-btn-solid {
	background: var(--gwhb-offwhite);
	color: var(--gwhb-red);
}

.gwhb-btn-solid:hover {
	background: #fff;
	color: var(--gwhb-red-dark);
}

.gwhb-btn-outline {
	border: 1px solid rgba(247, 244, 236, 0.75);
	color: var(--gwhb-offwhite);
	background: transparent;
}

.gwhb-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* --------------------------------------------------------------------- *
 * Hero A: slider + static side image
 * --------------------------------------------------------------------- */

.gwhb-hero-a {
	margin-top: 24px;
	margin-bottom: 32px;
}

.gwhb-slider {
	position: relative;
	width: 100%;
	border-radius: var(--gwhb-radius);
	overflow: hidden;
}

.gwhb-slider-track {
	display: grid;
}

.gwhb-slide {
	grid-area: 1 / 1;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.gwhb-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.gwhb-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--gwhb-radius);
}

/* Plain glyph arrows; the !important resets fend off the theme's glossy
   global button styling (inset box-shadows, text-shadow, padding). */
.gwhb-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	border-radius: 0;
	padding: 0 !important;
	color: #fff;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
	transition: color 0.15s ease;
}

.gwhb-slider-arrow:hover {
	color: var(--gwhb-cream);
}

.gwhb-prev { left: 14px; }
.gwhb-next { right: 14px; }

.gwhb-slider-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.gwhb-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.gwhb-slider-dot.is-active {
	background: var(--gwhb-lime);
}

/* --------------------------------------------------------------------- *
 * Hero B: brand block
 * --------------------------------------------------------------------- */

.gwhb-brand-block {
	margin-top: 24px;
	margin-bottom: 32px;
}

.gwhb-brand-inner {
	display: flex;
	align-items: stretch;
	background: var(--gwhb-red);
	border-radius: var(--gwhb-radius);
	overflow: hidden;
}

.gwhb-image-left .gwhb-brand-inner {
	flex-direction: row-reverse;
}

.gwhb-brand-content {
	flex: 1 1 50%;
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.gwhb-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gwhb-offwhite);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 18px;
}

.gwhb-brand-title {
	color: var(--gwhb-offwhite);
	font-size: clamp(42px, 5.5vw, 76px);
	line-height: 1.02;
	font-weight: 800;
	margin: 0 0 22px;
}

.gwhb-brand-text {
	color: rgba(247, 244, 236, 0.92);
	font-size: 18px;
	line-height: 1.5;
	max-width: 34em;
	margin: 0 0 30px;
}

.gwhb-brand-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.gwhb-brand-image {
	flex: 1 1 50%;
	min-width: 0;
}

.gwhb-brand-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------------- *
 * Featured selections
 * --------------------------------------------------------------------- */

.gwhb-selections {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

/* Block colours are set per block via --gwhb-sel-bg / --gwhb-sel-fg
   inline custom properties (Homepage A/B → Featured selections). */
.gwhb-selection {
	display: block;
	background: var(--gwhb-sel-bg, var(--gwhb-green));
	border-radius: var(--gwhb-radius);
	padding: 34px 32px 30px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gwhb-selection:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(43, 39, 36, 0.18);
}

.gwhb-selection-title {
	color: var(--gwhb-sel-fg, var(--gwhb-offwhite));
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 10px;
}

.gwhb-selection-text {
	color: var(--gwhb-sel-fg, var(--gwhb-offwhite));
	opacity: 0.85;
	margin: 0 0 22px;
	font-size: 16px;
}

.gwhb-selection-link {
	color: var(--gwhb-sel-fg, var(--gwhb-offwhite));
	font-weight: 700;
	font-size: 16px;
}

/* --------------------------------------------------------------------- *
 * Shop by Category
 * --------------------------------------------------------------------- */

.gwhb-categories {
	margin-bottom: 48px;
}

.gwhb-section-header h2 {
	font-size: 34px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--gwhb-dark);
	margin: 0 0 24px;
}

.gwhb-category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.gwhb-category-card {
	display: block;
	background: #fff;
	border-radius: var(--gwhb-radius);
	padding: 18px 18px 22px;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(43, 39, 36, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gwhb-category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(43, 39, 36, 0.14);
}

.gwhb-category-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--gwhb-radius-sm);
	object-fit: cover;
}

.gwhb-category-name {
	font-size: 19px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--gwhb-dark);
	margin: 16px 0 4px;
}

.gwhb-category-count {
	color: #7a756c;
	margin: 0;
	font-size: 14px;
}

/* --------------------------------------------------------------------- *
 * Icon bar
 * --------------------------------------------------------------------- */

.gwhb-iconbar {
	background: var(--gwhb-cream-dark);
	padding: 34px 0;
	margin-bottom: 40px;
}

.gwhb-iconbar-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.gwhb-iconbar-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	text-decoration: none;
}

.gwhb-iconbar-icon {
	flex: 0 0 56px;
}

.gwhb-iconbar-icon img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 50%;
}

.gwhb-iconbar-content h3 {
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gwhb-dark);
	margin: 0 0 6px;
}

.gwhb-iconbar-content p {
	color: #5d574e;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

/* --------------------------------------------------------------------- *
 * Banners
 * --------------------------------------------------------------------- */

.gwhb-banners {
	margin: 0 auto 28px;
}

.gwhb-banners-homepage {
	margin-top: 0;
}

.gwhb-banners-injected {
	margin-top: 20px;
}

/* Vertical margins are configurable per banner type (Website Banners →
   Spacing) and emitted as inline CSS overriding this fallback.
   Banners are hidden until JS picks ONE at random per page view. */
.gwhb-banner {
	display: none;
	margin-bottom: 16px;
	text-decoration: none;
}

/* NOTE: every .gwhb-banner-* variant rule below must NOT set `display`
   on the base (non .is-shown) selector, or hidden banners reappear. */
.gwhb-banner.is-shown {
	display: block;
}

.gwhb-banner-text.is-shown {
	display: flex;
}

.gwhb-banner-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--gwhb-radius);
}

.gwhb-banner-text {
	align-items: center;
	gap: 24px;
	background: var(--gwhb-banner-bg, var(--gwhb-green));
	border-radius: var(--gwhb-radius);
	padding: 22px 30px;
	transition: filter 0.15s ease;
}

.gwhb-banner-text:hover {
	filter: brightness(1.06);
}

.gwhb-banner-text-inner {
	display: flex;
	align-items: baseline;
	gap: 18px;
	flex: 1 1 auto;
	flex-wrap: wrap;
}

.gwhb-banner-title {
	color: var(--gwhb-banner-fg, var(--gwhb-offwhite));
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
}

.gwhb-banner-copy {
	color: var(--gwhb-banner-fg, rgba(247, 244, 236, 0.88));
	font-size: 16px;
	opacity: 0.92;
}

.gwhb-banner-btn {
	flex: 0 0 auto;
	flex-shrink: 0;
	white-space: nowrap;
	padding: 11px 24px;
	border-color: var(--gwhb-banner-border, rgba(247, 244, 236, 0.75));
	color: var(--gwhb-banner-fg, var(--gwhb-offwhite));
}

/* --------------------------------------------------------------------- *
 * Where to Start
 * --------------------------------------------------------------------- */

.gwhb-wts {
	background: var(--gwhb-cream);
	border-bottom: 1px solid rgba(43, 39, 36, 0.07);
}

.gwhb-wts-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 11px 16px;
	font-size: 15px;
}

.gwhb-wts-title {
	color: var(--gwhb-dark);
	font-weight: 800;
}

.gwhb-wts-text {
	color: #5d574e;
}

.gwhb-wts-link {
	color: var(--gwhb-red);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gwhb-wts-link:hover {
	color: var(--gwhb-red-dark);
}

/* --------------------------------------------------------------------- *
 * Custom sections
 * --------------------------------------------------------------------- */

.gwhb-custom-section {
	margin-bottom: 40px;
}

/* --------------------------------------------------------------------- *
 * Responsive
 * --------------------------------------------------------------------- */

@media (max-width: 900px) {
	.gwhb-brand-inner {
		flex-direction: column;
	}

	.gwhb-image-left .gwhb-brand-inner {
		flex-direction: column;
	}

	.gwhb-brand-content {
		padding: 38px 28px;
	}

	.gwhb-selections {
		grid-template-columns: 1fr;
	}

	.gwhb-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gwhb-iconbar-inner {
		grid-template-columns: 1fr;
	}

	.gwhb-banner-text {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.gwhb-banner-text-inner {
		flex-direction: column;
		gap: 6px;
	}
}

@media (max-width: 520px) {
	.gwhb-category-grid {
		grid-template-columns: 1fr;
	}
}
