/* Brand defaults: unlayered Elementor styles override this layer. */
@layer pogi-vendor, pogi-theme;
@layer pogi-theme {
/* Keep defaults at specificity 0,1,1 so Elementor widget styles take priority. */
/* Shared styling for Pogi hero widgets and native Elementor layouts. */
html:root :where(.hp-hero) {
	--hp-hero-ink: var(--hp-color-brand-primary);
	--hp-hero-height: 640px;
	--hp-hero-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	--hp-hero-title-size: clamp(3.25rem, 6.5vw, 8rem);
	--hp-hero-image-rotation: -8deg;
	position: relative;
	box-sizing: border-box;
	display: block;
	width: 100%;
	/* margin-block: 0; */
	padding: 0 var(--hp-container-inset);
	/* color: var(--hp-hero-ink); */
	overflow: clip;
}

/* The hero owns its gutters regardless of its contents. Backgrounds remain
 * editable on the Elementor wrapper. Inner containers never add a second gutter. */
html:root :where(.hp-hero:not(.hp-hero__inner)) {
	max-width: none;
	margin-inline: 0;
}
html:root :where(.hp-hero.hp-hero__inner) {
	padding-inline: var(--hp-container-gutter);
}
html:root :where(.hp-hero .hp-hero__inner) {
	padding: 0;
}
/* One layout handles nested inner containers and direct atomic copy/media. */
html:root :where(.elementor .hp-hero .hp-hero__inner,
.elementor .hp-hero:has(> .hp-hero__copy)) {
	display: grid;
	grid-template-columns: var(--hp-hero-columns);
	align-items: center;
	gap: 0;
	min-height: var(--hp-hero-height);
}
html:root :where(.elementor .hp-hero .hp-hero__copy) {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 40px;
	width: 100%;
	max-width: 540px;
	margin: 0;
	padding: 64px 24px 64px 0;
	text-align: left;
}
html:root :where(.hp-hero .hp-hero__title,
.hp-hero .hp-hero__description,
.hp-hero .hp-hero__label,
.hp-hero .hp-hero__cta:not(:is(.e-button-base, .elementor-button))) {
	margin: 0;
	padding: 0;
}
html:root :where(.hp-hero :is(.hp-hero__title .elementor-heading-title, .hp-hero__title.e-heading-base)) {
	margin: 0;
	/* color: var(--hp-hero-ink); */
	font: 700 var(--hp-hero-title-size)/0.99 var(--hp-font-heading);
	letter-spacing: -0.035em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}
html:root :where(.elementor .hp-hero .hp-hero__copy .hp-hero__description) {
	max-width: 36ch;
	/* color: var(--hp-hero-ink); */
	font: 400 clamp(1rem, 0.9rem + 0.65vw, 1.85rem)/1.6 var(--hp-font-body);
}
html:root :where(.hp-hero .hp-hero__description p) {
	margin: 0;
	color: inherit;
	font: inherit;
}
/* Let the copy gap measure from the text's visible edges, not extra font leading.
 * Keep internal line-height and Elementor typography overrides intact. Older
 * browsers retain the existing line boxes and flex gap as a safe fallback. */
@supports (text-box: trim-both cap alphabetic) {
	html:root :where(.hp-hero .hp-hero__title.e-heading-base,
	.hp-hero .hp-hero__title .elementor-heading-title,
	.hp-hero .hp-hero__description.e-paragraph-base,
	.hp-hero p.hp-hero__description,
	.hp-hero .hp-hero__description p,
	.hp-hero .hp-hero__label.e-heading-base,
	.hp-hero .hp-hero__label .elementor-heading-title) {
		text-box: trim-both cap alphabetic;
	}
}
html:root :where(.hp-hero :is(.hp-hero__label .elementor-heading-title, .hp-hero__label.e-heading-base)) {
	margin: 0;
	/* color: var(--hp-hero-ink); */
	font: 600 14px/1.5 var(--hp-font-heading);
	letter-spacing: 0;
}
html:root :where(.hp-hero .hp-hero__cta) {
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	text-align: left;
}
html:root :where(.elementor .hp-hero .hp-hero__media) {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
}
html:root :where(.hp-hero .hp-hero__image) {
	position: absolute;
	inset: -8% -18% -18% -4%;
	width: auto;
	max-width: none;
	height: auto;
	margin: 0;
	transform: rotate(var(--hp-hero-image-rotation));
}
html:root :where(.hp-hero .hp-hero__image :is(.elementor-widget-container, a, picture)) {
	display: block;
	width: 100%;
	height: 100%;
}
html:root :where(.hp-hero .hp-hero__image img) {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
}
html:root :where(.elementor :is(.elementor-element, .hp-hero-widget).hp-hero--campaign) {
	--hp-hero-height: 560px;
	--hp-hero-title-size: clamp(2.75rem, 4.5vw, 4.75rem);
	--hp-hero-image-rotation: -5deg;
}
html:root :where(.elementor .hp-hero--campaign .hp-hero__copy) { max-width: 600px; gap: 20px; }
html:root :where(.elementor .hp-hero--campaign .hp-hero__copy .hp-hero__description) { max-width: 38ch; }
html:root :where(.hp-hero--campaign .hp-hero__image) { inset: -4% -12% -12% 0; }

/* Optional campaign photo treatment: a straight, edge-to-edge crop. */
html:root :where(.hp-hero--photo .hp-hero__image) { inset: 0; transform: none; }
html:root :where(.hp-hero--photo .hp-hero__image img) { object-fit: cover; }

@media (max-width: 1024px) {
html:root :where(.hp-hero) {
	--hp-hero-height: auto;
	--hp-hero-columns: minmax(0, 1fr) minmax(0, 1fr);
}
html:root :where(.elementor .hp-hero .hp-hero__copy) { padding-block: 48px; }
}

/* Keep copy and artwork side by side, including narrow phones. */
@media (max-width: 767px) {
	html:root :where(.hp-hero) {
		--hp-hero-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
		--hp-hero-title-size: clamp(1.65rem, 7.2vw, 3rem);
		--hp-hero-image-rotation: -3deg;
	}
	html:root :where(.elementor .hp-hero .hp-hero__copy) {
		flex: 0 1 54%;
		min-width: 0;
		max-width: 100%;
		gap: 16px;
		padding: 28px 10px 28px 0;
	}
	html:root :where(.hp-hero :is(.hp-hero__title .elementor-heading-title, .hp-hero__title.e-heading-base)) {
		line-height: 1.05;
		letter-spacing: -0.025em;
	}
	html:root :where(.elementor .hp-hero .hp-hero__copy .hp-hero__description) {
		max-width: 24ch;
		font-size: clamp(0.875rem, 2.6vw, 1rem);
		line-height: 1.5;
	}
	html:root :where(.hp-hero :is(.hp-hero__label .elementor-heading-title, .hp-hero__label.e-heading-base)) {
		font-size: 12px;
		line-height: 1.4;
	}
	html:root :where(.hp-hero :is(.hp-hero__cta .elementor-button, .hp-hero__cta.e-button-base)) {
		min-height: 44px;
		padding: 10px 12px;
		font-size: clamp(0.8125rem, 2.8vw, 0.9375rem);
		line-height: 1.35;
	}
	html:root :where(.elementor .hp-hero .hp-hero__media) {
		flex: 0 1 46%;
		min-height: 0;
	}
	html:root :where(.hp-hero .hp-hero__image) {
		inset: 0 -18% 0 -4%;
	}
	/* Atomic Image elements can sit directly in the artwork container. */
	html:root :where(.hp-hero .hp-hero__media > img) {
		position: absolute;
		width: 100%;
		height: 100%;
		max-width: none;
		object-fit: contain;
		object-position: center;
	}
	html:root :where(.elementor :is(.elementor-element, .hp-hero-widget).hp-hero--campaign) {
		--hp-hero-title-size: clamp(1.5rem, 6.5vw, 2.75rem);
	}
	html:root :where(.hp-hero--photo .hp-hero__image) { inset: 0; }
	html:root :where(.hp-hero--photo .hp-hero__media > img) { object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
html:root :where(.hp-hero :is(.hp-hero__cta .elementor-button, .hp-hero__cta.e-button-base)) { transition: none; }
html:root :where(.hp-hero :is(.hp-hero__cta .elementor-button, .hp-hero__cta.e-button-base):hover) { transform: none; }
}

/* A hero widget fills its parent; its content still uses the shared boxed width. */
html:root :where(.elementor .elementor-element:is(.elementor-widget-pogi-homepage-hero, .elementor-widget-pogi-campaign-hero)) {
 width: 100%;
 min-width: 0;
}
html:root :where(.elementor .hp-hero--no-artwork .hp-hero__inner) { grid-template-columns: minmax(0, 1fr); }
html:root :where(.hp-hero__placeholder) { padding: 32px; text-align: center; color: var(--hp-hero-ink); }

/* A top-level container holding only a hero does not need a second boxed shell. */
html:root :where(:is(.elementor, .elementor > .elementor-section-wrap) > .e-con:has(> .e-con-inner:only-child > :is(.elementor-widget-pogi-homepage-hero, .elementor-widget-pogi-campaign-hero):only-child),
:is(.elementor, .elementor > .elementor-section-wrap) > .e-con:has(> :is(.elementor-widget-pogi-homepage-hero, .elementor-widget-pogi-campaign-hero):only-child),
:is(.elementor, .elementor > .elementor-section-wrap) > .e-con > .e-con-inner:only-child:has(> :is(.elementor-widget-pogi-homepage-hero, .elementor-widget-pogi-campaign-hero):only-child)) {
	width: 100%;
	max-width: none;
	padding: 0;
}

/* A copy-only atomic hero uses the same layout as a widget without artwork. */
html:root :where(.elementor .hp-hero .hp-hero__inner:has(> .hp-hero__copy):not(:has(> .hp-hero__media)),
.elementor .hp-hero:has(> .hp-hero__copy):not(:has(> .hp-hero__media))) {
	grid-template-columns: minmax(0, 1fr);
}

}
