/* Centrygas front-end refinements. Component markup remains utility-first through Tailwind. */

:root {
	--cg-primary: #156101;
	--cg-primary-light: #49a52f;
	--cg-surface: #1a1a1a;
	--cg-text: #f5f5f5;
}

/* Explicit declaration keeps Material Symbols working in Elementor's editor iframe. */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: 300;
	font-style: normal;
	font-size: 1em;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
	font-feature-settings: 'liga';
	font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

html {
	background: #0d0d0d;
}

body {
	min-width: 320px;
	overflow-x: hidden;
}

.centrygas-site-shell {
	position: relative;
	isolation: isolate;
	overflow: visible;
}

.cg-sticky-header {
	position: fixed !important;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	max-width: none !important;
	padding: 12px 20px !important;
	transition: background-color 180ms ease, padding-top 180ms ease;
}

.cg-sticky-header nav {
	max-width: 1200px;
}

@media (min-width: 1024px) {
	.cg-sticky-header {
		padding-right: 48px !important;
		padding-left: 48px !important;
	}
}

/* Elementor can assign overflow to flexbox containers; that prevents sticky descendants. */
.centrygas-site-shell .site-main,
.centrygas-elementor-content,
.centrygas-elementor-content > .elementor,
.centrygas-elementor-content .e-con,
.centrygas-elementor-content .e-con-inner,
.centrygas-elementor-content .elementor-section,
.centrygas-elementor-content .elementor-container,
.centrygas-elementor-content .elementor-column,
.centrygas-elementor-content .elementor-widget-wrap {
	overflow: visible !important;
}

.cg-sticky-header[data-cg-scrolled="true"] {
	background: linear-gradient(180deg, rgba(13, 13, 13, 0.96) 0%, rgba(13, 13, 13, 0.76) 78%, transparent 100%);
	padding-top: 12px;
}

.cg-sticky-header[data-cg-scrolled="true"] nav {
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

/* JS fallback for Elementor containers that prevent native position: sticky. */
.cg-sticky-header[data-cg-fixed="true"] {
	position: fixed !important;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	max-width: none;
	padding: 12px 20px !important;
	background: linear-gradient(180deg, rgba(13, 13, 13, 0.98) 0%, rgba(13, 13, 13, 0.82) 80%, transparent 100%);
}

[data-cg-sticky-spacer] {
	height: 0;
	transition: height 180ms ease;
}

@media (min-width: 1024px) {
	.cg-sticky-header[data-cg-fixed="true"] {
		padding-right: 48px !important;
		padding-left: 48px !important;
	}
}

.centrygas-elementor-content > .elementor {
	background: transparent;
}

.centrygas-elementor-content > .elementor > .elementor-section-wrap,
.centrygas-elementor-content > .elementor > .elementor-element {
	max-width: 100%;
}

.elementor-widget-container > *:first-child {
	margin-top: 0;
}

.elementor-widget-container > *:last-child {
	margin-bottom: 0;
}

.centrygas-page a:focus-visible,
.centrygas-page button:focus-visible,
.centrygas-page input:focus-visible,
.centrygas-page textarea:focus-visible {
	outline: 2px solid var(--cg-primary-light);
	outline-offset: 3px;
}

.centrygas-page img {
	max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
