/**
 * Edwin Site Widgets — Global tokens & isolation reset.
 * Loaded as a dependency of every widget stylesheet.
 */

:root {
	--edwin-charcoal: #1A1A1A;
	--edwin-charcoal-soft: #2B2B2B;
	--edwin-gray: #6E6E6E;
	--edwin-gray-light: #F2F2F2;
	--edwin-border: #E2E2E2;
	--edwin-white: #FFFFFF;
	--edwin-orange: #F97316;
	--edwin-orange-hover: #EA580C;

	--edwin-font: inherit;
	--edwin-radius-sm: 6px;
	--edwin-radius-md: 12px;
	--edwin-radius-lg: 20px;
	--edwin-space-1: 8px;
	--edwin-space-2: 16px;
	--edwin-space-3: 24px;
	--edwin-space-4: 32px;
	--edwin-space-5: 40px;
	--edwin-space-6: 48px;
	--edwin-space-8: 64px;
	--edwin-transition: all 0.3s ease;
}

/* ==========================================================================
   Isolation: never let Hello Elementor / theme / global Elementor kit
   styles leak color, spacing, or typography into Edwin widgets.
   ========================================================================== */
.edwin-widget,
.edwin-widget * {
	box-sizing: border-box;
}

.edwin-widget {
	--edwin-text: var(--edwin-charcoal);
	--edwin-bg: var(--edwin-white);
	position: relative;
	color: var(--edwin-text) !important;
	text-align: left;
	max-width: 100%;
	overflow-x: clip;
}

.elementor-page .edwin-widget,
.e-con .edwin-widget,
.elementor-widget-container .edwin-widget {
	color: var(--edwin-text) !important;
}

.edwin-widget p,
.edwin-widget span,
.edwin-widget li,
.edwin-widget div {
	color: inherit;
}

.edwin-widget h1,
.edwin-widget h2,
.edwin-widget h3,
.edwin-widget h4,
.edwin-widget h5,
.edwin-widget h6 {
	margin: 0;
	color: inherit;
	font-family: inherit;
}

.edwin-widget a {
	text-decoration: none;
	transition: var(--edwin-transition);
}

.edwin-widget img {
	max-width: 100%;
	display: block;
}

/* Icon safety net — Elementor's Icon control can render either a webfont
   <i> (sized via font-size) or an inline <svg> (which ignores font-size
   entirely and falls back to its raw intrinsic pixel size, ~500px, if
   nothing constrains it). Cap every icon at a sane default so a widget
   that forgets to size a specific icon still fails safely. Individual
   widgets override this with their own explicit, !important sizes. */
.edwin-widget i,
.edwin-widget svg {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
}

.edwin-widget svg {
	width: 1em;
	height: 1em;
	max-width: 48px;
	max-height: 48px;
	fill: currentColor;
	flex-shrink: 0;
}

.edwin-widget button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

.edwin-widget ul,
.edwin-widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.edwin-widget *:focus-visible {
	outline: 2px solid var(--edwin-orange) !important;
	outline-offset: 2px;
}

/* Shared button primitive reused by Hero/Services CTAs */
.edwin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--edwin-space-1);
	font-weight: 700;
	line-height: 1.2;
	border-radius: var(--edwin-radius-sm);
	padding: 18px 32px;
	transition: var(--edwin-transition);
	white-space: nowrap;
}

.edwin-btn svg,
.edwin-btn i {
	flex-shrink: 0;
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	max-width: none;
	max-height: none;
}

.edwin-btn--primary {
	background: var(--edwin-orange) !important;
	color: var(--edwin-white) !important;
	box-shadow: 0 8px 20px -6px rgba(249, 115, 22, 0.55);
}

.edwin-btn--primary:hover {
	background: var(--edwin-orange-hover) !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -6px rgba(249, 115, 22, 0.6);
}

.edwin-btn--secondary {
	background: transparent !important;
	color: var(--edwin-white) !important;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.edwin-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: var(--edwin-white);
	transform: translateY(-2px);
}
