/**
 * ORAAH Elementor DOM compatibility layer.
 *
 * Elementor may render boxed Flexbox Containers with an .e-con-inner wrapper.
 * ORAAH 3.1 layout classes were placed on the outer container, which meant
 * the wrapper—not the layout class—became the direct parent of the widgets.
 * These rules mirror every critical layout on that wrapper and are loaded
 * after Elementor's generated post CSS.
 */

/*
 * When the wrapper exists, the outer container must not also act as the
 * grid/flex parent. Otherwise the single .e-con-inner wrapper occupies only
 * the first grid column and the entire page is squeezed into that column.
 */
.oraah-elementor-page .e-con-boxed[class*="oraah-e-"],
.oraah-elementor-global-header .e-con-boxed[class*="oraah-e-"],
.oraah-elementor-global-footer .e-con-boxed[class*="oraah-e-"],
.oraah-proposal-modal .e-con-boxed[class*="oraah-e-"] {
	display: block !important;
}

/* Keep imported ORAAH container wrappers neutral and full width. */
.oraah-elementor-page .elementor-element[class*="oraah-e-"] > .e-con-inner,
.oraah-elementor-global-header .elementor-element[class*="oraah-e-"] > .e-con-inner,
.oraah-elementor-global-footer .elementor-element[class*="oraah-e-"] > .e-con-inner,
.oraah-proposal-modal .elementor-element[class*="oraah-e-"] > .e-con-inner,
.oraah-elementor-global-header .ss-container > .e-con-inner,
.oraah-elementor-global-footer .ss-container > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Full-width outer bands. */
.oraah-e-section > .e-con-inner,
.oraah-e-global-announcement > .e-con-inner,
.oraah-e-global-header-main > .e-con-inner,
.oraah-e-global-footer-main > .e-con-inner,
.oraah-e-cta > .e-con-inner,
.oraah-e-simple-hero > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
}

/* Global announcement: force the intended dark bar and horizontal content. */
.oraah-elementor-global-header .oraah-e-global-announcement {
	background: var(--ss-ink) !important;
	color: var(--ss-cream) !important;
}

.oraah-e-global-announcement-inner,
.oraah-e-global-announcement-inner > .e-con-inner {
	display: flex !important;
	min-height: 38px !important;
	align-items: center !important;
	justify-content: center !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 1.1rem !important;
}

.oraah-e-announcement-copy,
.oraah-e-announcement-button {
	width: auto !important;
	flex: 0 0 auto !important;
}

.oraah-e-announcement-copy,
.oraah-e-announcement-copy .elementor-widget-container,
.oraah-e-announcement-copy p {
	color: var(--ss-cream) !important;
}

/* Global header: logo, menu and proposal button must share one row. */
.oraah-e-global-header-main {
	background: rgba(244, 239, 231, 0.96) !important;
}

.oraah-e-global-header-inner,
.oraah-e-global-header-inner > .e-con-inner {
	display: grid !important;
	grid-template-columns: minmax(155px, 220px) minmax(0, 1fr) auto !important;
	align-items: center !important;
	justify-content: stretch !important;
	gap: clamp(1rem, 2.5vw, 2.4rem) !important;
	min-height: var(--ss-header-height) !important;
}

.oraah-e-global-logo-widget {
	grid-column: 1 !important;
	align-self: center !important;
	justify-self: start !important;
}

.oraah-e-global-nav-widget {
	grid-column: 2 !important;
	align-self: center !important;
	justify-self: stretch !important;
}

.oraah-e-header-proposal {
	grid-column: 3 !important;
	align-self: center !important;
	justify-self: end !important;
	width: auto !important;
}

/* Shared bounded content container. */
.oraah-e-inner {
	display: flex !important;
	width: min(calc(100% - 48px), var(--ss-container)) !important;
	max-width: var(--ss-container) !important;
	margin-inline: auto !important;
	flex-direction: column !important;
	align-items: stretch !important;
}

.oraah-e-inner > .e-con-inner {
	display: flex !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	flex-direction: column !important;
	align-items: stretch !important;
}

/* Section headings. */
.oraah-e-heading,
.oraah-e-heading > .e-con-inner {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 0.9rem !important;
	text-align: center !important;
}

.oraah-e-heading--left,
.oraah-e-heading--left > .e-con-inner {
	align-items: flex-start !important;
	text-align: start !important;
}

/* Button rows. */
.oraah-e-actions,
.oraah-e-actions > .e-con-inner {
	display: flex !important;
	width: auto !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0.85rem !important;
}

.oraah-e-actions--center,
.oraah-e-actions--center > .e-con-inner {
	justify-content: center !important;
}

/* Reusable grids. */
.oraah-e-grid,
.oraah-e-grid > .e-con-inner {
	display: grid !important;
	width: 100% !important;
	align-items: stretch !important;
	gap: clamp(1rem, 2.1vw, 1.65rem) !important;
}

.oraah-e-grid--3,
.oraah-e-grid--3 > .e-con-inner {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.oraah-e-grid--4,
.oraah-e-grid--4 > .e-con-inner {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Cards need the wrapper to stretch, otherwise content and buttons collapse. */
.oraah-e-card,
.oraah-e-card > .e-con-inner {
	display: flex !important;
	height: 100% !important;
	min-width: 0 !important;
	flex-direction: column !important;
	align-items: stretch !important;
}

.oraah-e-info-card > .e-con-inner {
	flex: 1 1 auto !important;
}

/* Homepage hero: restore the two-column composition visible in the preview. */
.oraah-e-hero-grid,
.oraah-e-hero-grid > .e-con-inner {
	display: grid !important;
	grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr) !important;
	align-items: center !important;
	gap: clamp(2.5rem, 6vw, 6rem) !important;
}

.oraah-e-hero-copy,
.oraah-e-hero-copy > .e-con-inner {
	display: flex !important;
	min-width: 0 !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: clamp(1.15rem, 2.2vw, 1.75rem) !important;
}

.oraah-e-hero-art,
.oraah-e-hero-art > .e-con-inner {
	display: flex !important;
	min-width: 0 !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
}

.oraah-e-hero-art > .e-con-inner {
	position: relative !important;
}

/* Two-column service, page-hero, editorial and contact compositions. */
.oraah-e-split,
.oraah-e-split > .e-con-inner,
.oraah-e-page-hero-grid,
.oraah-e-page-hero-grid > .e-con-inner,
.oraah-e-editorial-split,
.oraah-e-editorial-split > .e-con-inner,
.oraah-e-contact-grid,
.oraah-e-contact-grid > .e-con-inner {
	display: grid !important;
	align-items: center !important;
	gap: clamp(2.8rem, 7vw, 7.2rem) !important;
}

.oraah-e-split,
.oraah-e-split > .e-con-inner,
.oraah-e-page-hero-grid,
.oraah-e-page-hero-grid > .e-con-inner {
	grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr) !important;
}

.oraah-e-editorial-split,
.oraah-e-editorial-split > .e-con-inner {
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
	align-items: start !important;
}

.oraah-e-contact-grid,
.oraah-e-contact-grid > .e-con-inner {
	grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr) !important;
	align-items: start !important;
}

.oraah-e-split-copy,
.oraah-e-split-copy > .e-con-inner,
.oraah-e-page-hero-copy,
.oraah-e-page-hero-copy > .e-con-inner,
.oraah-e-rich-copy,
.oraah-e-rich-copy > .e-con-inner {
	display: flex !important;
	min-width: 0 !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 1.25rem !important;
}

.oraah-e-simple-hero {
	display: flex !important;
	align-items: center !important;
}

.oraah-e-simple-hero > .e-con-inner {
	display: flex !important;
	min-height: inherit !important;
	align-items: center !important;
}

.oraah-e-simple-hero-inner,
.oraah-e-simple-hero-inner > .e-con-inner {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 1.2rem !important;
}

/* CTA is intentionally centred in the final 3.1/3.2 design. */
.oraah-e-cta-inner {
	display: flex !important;
	max-width: 940px !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1rem !important;
	text-align: center !important;
}

.oraah-e-cta-inner > .e-con-inner {
	display: flex !important;
	width: 100% !important;
	max-width: none !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1rem !important;
	text-align: center !important;
}

/* Editable global footer. */
.oraah-e-global-footer-grid,
.oraah-e-global-footer-grid > .e-con-inner {
	display: grid !important;
	grid-template-columns: 1.3fr 0.65fr 0.9fr 0.95fr !important;
	align-items: start !important;
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.oraah-e-global-footer-column,
.oraah-e-global-footer-column > .e-con-inner {
	display: flex !important;
	align-items: flex-start !important;
	flex-direction: column !important;
	gap: 0.95rem !important;
}

.oraah-e-global-footer-bottom,
.oraah-e-global-footer-bottom > .e-con-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-direction: row !important;
	gap: 1rem !important;
}

/* Editable proposal-popup content. */
.oraah-e-proposal-content,
.oraah-e-proposal-content > .e-con-inner {
	display: flex !important;
	width: 100% !important;
	align-items: flex-start !important;
	flex-direction: column !important;
	gap: 0 !important;
}

@media (max-width: 1160px) {
	.oraah-e-grid--4,
	.oraah-e-grid--4 > .e-con-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 1040px) {
	.oraah-e-hero-grid,
	.oraah-e-hero-grid > .e-con-inner,
	.oraah-e-split,
	.oraah-e-split > .e-con-inner,
	.oraah-e-page-hero-grid,
	.oraah-e-page-hero-grid > .e-con-inner {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr) !important;
		gap: 3rem !important;
	}
}

@media (max-width: 940px) {
	.oraah-e-global-header-inner,
	.oraah-e-global-header-inner > .e-con-inner {
		grid-template-columns: minmax(145px, 190px) auto !important;
		justify-content: space-between !important;
		gap: 1rem !important;
	}

	.oraah-e-global-logo-widget {
		grid-column: 1 !important;
	}

	.oraah-e-global-nav-widget {
		grid-column: 2 !important;
		justify-self: end !important;
		width: auto !important;
	}

	.oraah-e-header-proposal {
		display: none !important;
	}

	.oraah-e-hero-grid,
	.oraah-e-hero-grid > .e-con-inner,
	.oraah-e-split,
	.oraah-e-split > .e-con-inner,
	.oraah-e-page-hero-grid,
	.oraah-e-page-hero-grid > .e-con-inner,
	.oraah-e-editorial-split,
	.oraah-e-editorial-split > .e-con-inner,
	.oraah-e-contact-grid,
	.oraah-e-contact-grid > .e-con-inner {
		grid-template-columns: 1fr !important;
	}

	.oraah-e-hero-copy,
	.oraah-e-hero-copy > .e-con-inner,
	.oraah-e-page-hero-copy,
	.oraah-e-page-hero-copy > .e-con-inner {
		align-items: center !important;
		text-align: center !important;
	}

	.oraah-e-actions,
	.oraah-e-actions > .e-con-inner {
		justify-content: center !important;
	}

	.oraah-e-grid--3,
	.oraah-e-grid--3 > .e-con-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.oraah-e-global-footer-grid,
	.oraah-e-global-footer-grid > .e-con-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 700px) {
	.oraah-e-inner {
		width: min(calc(100% - 32px), var(--ss-container)) !important;
	}

	.oraah-e-inner > .e-con-inner {
		width: 100% !important;
	}

	.oraah-e-global-announcement-inner,
	.oraah-e-global-announcement-inner > .e-con-inner {
		gap: 0.65rem !important;
		padding-block: 0.35rem !important;
	}

	.oraah-e-global-header-inner,
	.oraah-e-global-header-inner > .e-con-inner {
		grid-template-columns: minmax(125px, 160px) auto !important;
		min-height: 74px !important;
	}

	.oraah-e-grid--3,
	.oraah-e-grid--3 > .e-con-inner,
	.oraah-e-grid--4,
	.oraah-e-grid--4 > .e-con-inner {
		grid-template-columns: 1fr !important;
	}

	.oraah-e-global-footer-grid,
	.oraah-e-global-footer-grid > .e-con-inner {
		grid-template-columns: 1fr !important;
		gap: 2.1rem !important;
	}

	.oraah-e-global-footer-bottom,
	.oraah-e-global-footer-bottom > .e-con-inner {
		align-items: flex-start !important;
		justify-content: center !important;
		flex-direction: column !important;
		padding-block: 1.35rem !important;
	}
}

@media (max-width: 430px) {
	.oraah-e-actions,
	.oraah-e-actions > .e-con-inner {
		width: 100% !important;
	}
}
