/* DBG Local Boost: additive polish only. Site palette (Elementor kit 249):
   bg #0E0E0E, text #E3E3E3, accent #E04823, font Kanit. */
:root {
	--dbg-bg: var(--e-global-color-secondary, #0E0E0E);
	--dbg-text: var(--e-global-color-text, #E3E3E3);
	--dbg-accent: var(--e-global-color-accent, #E04823);
	--dbg-font: "Kanit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--dbg-ease: cubic-bezier(.2, .7, .2, 1);
	--dbg-mbar-h: 64px;
}

/* ---------- CLS: logos have a fixed 1:1 shape (500x500 source) ---------- */
.ehp-header__site-logo,
.ehp-flex-footer__site-logo {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
}

/* ---------- Hero contrast (homepage hero widget 708f2942) ---------- */
.elementor-element-708f2942 .ehp-flex-hero__overlay {
	background-image: linear-gradient(90deg, rgba(14, 14, 14, .9) 0%, rgba(14, 14, 14, .55) 45%, rgba(14, 14, 14, 0) 80%);
}
.elementor-widget-flex-hero .ehp-flex-hero__intro,
.elementor-widget-flex-hero .ehp-flex-hero__heading,
.elementor-widget-flex-hero .ehp-flex-hero__subheading {
	text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
@media (max-width: 767px) {
	.elementor-element-708f2942 .ehp-flex-hero__overlay {
		background-image: linear-gradient(180deg, rgba(14, 14, 14, .88) 0%, rgba(14, 14, 14, .6) 55%, rgba(14, 14, 14, .15) 100%);
	}
}

/* ---------- Homepage H1 subheading ---------- */
.dbg-h1-sub {
	margin: .5em 0 0;
	font-family: var(--dbg-font);
	font-weight: 500;
	font-size: clamp(14px, 1.4vw, 18px);
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dbg-text);
	opacity: .85;
	text-align: inherit;
}

/* ---------- Tap targets >= 44px (touch / tablet & below) ---------- */
@media (max-width: 1024px), (pointer: coarse) {
	.ehp-header__navigation .ehp-header__item:is(a) {
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.ehp-header__dropdown-toggle,
	.ehp-header__button-toggle {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	a.ehp-button { min-height: 44px; } /* already display:flex in Hello Plus */
	.ehp-flex-footer__menu-item,
	.elementor-testimonial-name,
	.elementor-testimonial-job,
	.e-link-in-bio a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.ehp-flex-footer__link--social {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* ---------- Mobile quick-action bar ---------- */
.dbg-mbar { display: none; }
@media (max-width: 767px) {
	.dbg-mbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 990;
		display: grid;
		grid-template-columns: 1.4fr 1fr;
		gap: 10px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: rgba(14, 14, 14, .96);
		border-top: 1px solid rgba(227, 227, 227, .12);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
	body.dbg-has-mbar {
		padding-bottom: calc(var(--dbg-mbar-h) + 10px + env(safe-area-inset-bottom, 0px));
	}
	/* Keep the bar out of the way while the header's mobile menu is open. */
	body:has(.ehp-header__button-toggle[aria-expanded="true"]) .dbg-mbar { display: none; }
}
.dbg-mbar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border-radius: 999px;
	border: 2px solid var(--dbg-accent);
	font-family: var(--dbg-font);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
	transition: transform .15s var(--dbg-ease), background-color .2s, color .2s;
}
.dbg-mbar__btn:active { transform: scale(.97); }
.dbg-mbar__btn:focus-visible { outline: 3px solid var(--dbg-text); outline-offset: 2px; }
.dbg-mbar .dbg-mbar__btn--order,
.dbg-mbar .dbg-mbar__btn--order:hover,
.dbg-mbar .dbg-mbar__btn--order:visited {
	background: var(--dbg-accent);
	color: var(--dbg-bg);
}
.dbg-mbar .dbg-mbar__btn--call,
.dbg-mbar .dbg-mbar__btn--call:hover,
.dbg-mbar .dbg-mbar__btn--call:visited {
	background: transparent;
	color: var(--dbg-text);
}

/* ---------- Local trust strip (before footer) ---------- */
.dbg-trust {
	background: var(--dbg-bg);
	border-top: 1px solid rgba(224, 72, 35, .35);
	padding: 40px 20px;
	font-family: var(--dbg-font);
	color: var(--dbg-text);
}
.dbg-trust__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.dbg-trust__item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 16px 18px;
	border: 1px solid rgba(227, 227, 227, .12);
	border-radius: 12px;
	background: rgba(227, 227, 227, .03);
	color: var(--dbg-text);
	text-decoration: none;
	transition: border-color .25s, transform .25s var(--dbg-ease), background-color .25s;
}
/* Beat the kit's global link colour (.elementor-kit-249 a). */
.dbg-trust a.dbg-trust__item,
.dbg-trust a.dbg-trust__item:visited { color: var(--dbg-text); }
.dbg-trust a.dbg-trust__item:hover,
.dbg-trust a.dbg-trust__item:focus-visible {
	border-color: var(--dbg-accent);
	background: rgba(224, 72, 35, .08);
	color: var(--dbg-text);
}
.dbg-trust__icon { flex: 0 0 28px; color: var(--dbg-accent); }
.dbg-trust__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dbg-trust__label {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dbg-accent);
}
.dbg-trust__value { font-size: 17px; font-weight: 400; line-height: 1.35; }
@media (max-width: 1024px) {
	.dbg-trust__inner { grid-template-columns: 1fr; gap: 12px; max-width: 560px; }
	.dbg-trust { padding: 28px 20px; }
}

/* ---------- Primary order button pulse ---------- */
@keyframes dbg-pulse {
	0% { box-shadow: 0 0 0 0 rgba(224, 72, 35, .55); }
	70% { box-shadow: 0 0 0 14px rgba(224, 72, 35, 0); }
	100% { box-shadow: 0 0 0 0 rgba(224, 72, 35, 0); }
}

/* ---------- Scroll reveal (only on elements JS has tagged) ---------- */
/* Hidden state needs BOTH the html.dbg-js flag and a .dbg-reveal tag, and both are
   only ever added by dbg.js. No JS = nothing hidden. Printing always shows everything. */
@media print {
	html.dbg-js .dbg-reveal { opacity: 1 !important; transform: none !important; }
}
html.dbg-js .dbg-reveal {
	opacity: 0;
	transform: translate3d(0, 24px, 0);
	transition: opacity .7s var(--dbg-ease), transform .7s var(--dbg-ease);
	transition-delay: var(--dbg-delay, 0ms);
}
html.dbg-js .dbg-reveal.dbg-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	.ehp-header__button--primary,
	.dbg-mbar__btn--order {
		animation: dbg-pulse 2.6s ease-out 1.5s infinite;
	}
	.ehp-header__button--primary:hover,
	.ehp-header__button--primary:focus-visible { animation: none; }
}

/* ---------- Menu-card hover: lift + image zoom (mouse devices only) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.elementor-widget-cta .ehp-cta {
		transition: transform .35s var(--dbg-ease), box-shadow .35s var(--dbg-ease);
		will-change: transform;
	}
	.elementor-widget-cta .ehp-cta:hover {
		transform: translate3d(0, -6px, 0);
		box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(224, 72, 35, .35);
	}
	.elementor-widget-cta .ehp-cta__image-container { overflow: hidden; }
	.elementor-widget-cta .ehp-cta__img {
		transition: transform .6s var(--dbg-ease), filter .4s;
	}
	/* Zoom only square-cornered photos so rounded corners are never clipped square. */
	.elementor-widget-cta .ehp-cta:hover .ehp-cta__img.has-shape-sharp { transform: scale(1.06); }
	.elementor-widget-cta .ehp-cta:hover .ehp-cta__img { filter: saturate(1.12) brightness(1.04); }

	ul.products li.product {
		transition: transform .35s var(--dbg-ease);
	}
	ul.products li.product:hover { transform: translate3d(0, -6px, 0); }
	ul.products li.product a img { transition: transform .6s var(--dbg-ease); }
	ul.products li.product:hover a img { transform: scale(1.04); }
	a.dbg-trust__item:hover { transform: translate3d(0, -3px, 0); }
}

/* ---------- Reduced motion: switch everything off ---------- */
@media (prefers-reduced-motion: reduce) {
	html.dbg-js .dbg-reveal { opacity: 1; transform: none; transition: none; }
	.dbg-mbar__btn, .dbg-trust__item { transition: none; }
}

/* Visible keyboard focus on the site's buttons. */
.ehp-button:focus-visible { outline: 3px solid var(--dbg-text); outline-offset: 3px; }
