/* =========================================================
   LIVERY ELEMENTOR KIT — CSS Bridge
   ========================================================= */

/* 1. Override Elementor Global Colors with Theme Tokens
   Elementor outputs Hex colors for these variables. We override them 
   so the frontend uses our Semantic Tokens (which support Light/Dark automatically).
*/
:root,
body,
.elementor-kit {
	--e-global-color-livery-primary: var(--primary) !important;
	--e-global-color-livery-secondary: var(--secondary) !important;
	--e-global-color-livery-accent: var(--accent) !important;
	--e-global-color-livery-text: var(--text) !important;
	--e-global-color-livery-text-muted: var(--text-muted) !important;
	--e-global-color-livery-bg: var(--bg) !important;
	--e-global-color-livery-surface: var(--surface) !important;
	--e-global-color-livery-border: var(--border) !important;
	--e-global-color-livery-heading: var(--heading) !important;
	--e-global-color-livery-brand: var(--brand-surface) !important;
	--e-global-color-livery-ink: var(--on-secondary) !important;
}

/* 2. Component Utility Classes (for Elementor Editor 'CSS Classes' input) 
   We extend the existing theme styles to these alias classes to prevent code duplication.
*/

/* Sections */
.livery-section--a {
	background-color: var(--section-a);
}
.livery-section--b {
	background-color: var(--section-b);
}
.livery-section--brand {
	background-color: var(--brand-surface);
	color: var(--on-brand);
	--focus: var(--yellow-400);
	--link: var(--on-brand);
}
.livery-section--brand h1, .livery-section--brand h2, .livery-section--brand h3, .livery-section--brand h4, .livery-section--brand h5, .livery-section--brand h6 {
	color: var(--on-brand);
}
.livery-section--contact {
	background-color: var(--contact-bg);
	color: var(--contact-fg);
}
.livery-section--contact h1, .livery-section--contact h2, .livery-section--contact h3, .livery-section--contact h4, .livery-section--contact h5, .livery-section--contact h6 {
	color: var(--contact-fg);
}

/* Headings */
.livery-h--stripe {
	position: relative;
	padding-bottom: 24px;
}
.livery-h--stripe::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	background: var(--livery);
	transform: skewX(-12deg);
}
.livery-eyebrow {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

/* Paragraphs */
.livery-lead {
	font-size: 1.125rem;
	line-height: 1.6;
}
@media (min-width: 768px) {
	.livery-lead { font-size: 1.25rem; }
}
.livery-contact-line {
	display: flex;
	align-items: center;
	min-height: 44px;
	gap: 12px;
}
.livery-contact-line a {
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}
.livery-contact-line a:hover {
	text-decoration: underline;
}
.livery-contact-line a[href^="tel:"]::before,
.livery-contact-line a[href^="mailto:"]::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	background-color: var(--primary);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	vertical-align: middle;
	margin-right: 12px;
}
.livery-contact-line a[href^="tel:"]::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}
.livery-contact-line a[href^="mailto:"]::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

/* Images & Cards */
.livery-img--zoom {
	overflow: hidden;
	border-radius: var(--radius-md);
}
.livery-img--zoom img {
	transition: transform 0.4s ease-out;
}
/* Disable hover zoom in elementor editor */
html:not(.elementor-editor-active) .livery-img--zoom:hover img {
	transform: scale(1.03);
}

.livery-img--round img {
	border-radius: 50%;
	border: 3px solid var(--secondary);
}

.livery-card {
	background-color: var(--surface);
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	padding: 28px;
	box-shadow: none;
}
.livery-card--info {
	background-color: var(--surface);
	color: var(--text);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--blue-800);
	border-image: var(--livery) 1 100%;
	border-left: 4px solid transparent;
	background-image: linear-gradient(var(--surface), var(--surface)), var(--livery);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	border-right: 0; border-top: 0; border-bottom: 0;
}

/* Buttons */
.livery-btn--primary .elementor-button {
	background-color: var(--btn-primary-bg) !important;
	color: var(--btn-primary-fg) !important;
	border-radius: var(--radius-sm) !important;
}
.livery-btn--primary .elementor-button:hover {
	background-color: var(--primary-hover) !important;
}

.livery-btn--secondary .elementor-button {
	background-color: var(--btn-secondary-bg) !important;
	color: var(--btn-secondary-fg) !important;
}
.livery-btn--secondary .elementor-button:hover {
	background-color: var(--secondary-hover) !important;
}

.livery-btn--accent .elementor-button {
	background-color: var(--btn-accent-bg) !important;
	color: var(--btn-accent-fg) !important;
}
.livery-btn--accent .elementor-button:hover {
	background-color: var(--accent-hover) !important;
}

.livery-btn--ghost .elementor-button {
	background-color: transparent !important;
	color: var(--white) !important;
	border: 2px solid var(--white) !important;
}
.livery-btn--ghost .elementor-button:hover {
	background-color: var(--on-brand-hover) !important;
}

/* Stripes */
.has-livery-stripe-bottom {
	position: relative;
}
.has-livery-stripe-bottom::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 10px;
	background: var(--livery);
}
