/* ==========================================================================
   INERGIX – base tokens, layout and typography
   ========================================================================== */

:root {
	--ix-primary: #00aeef;
	--ix-primary-ink: #00719b;
	--ix-primary-hover: #0093c9;
	--ix-on-primary: #061634;
	--ix-navy: #061634;
	--ix-dark: #061634;
	--ix-text: #333333;
	--ix-muted: #767676;
	--ix-muted-strong: #6a6a6a;
	--ix-light: #a5a5a5;
	--ix-bg: #f4f4f4;
	--ix-border: rgba(0, 0, 0, 0.11);
	--ix-radius: 20px;
	--ix-container: 1540px;
	--ix-font: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html,
	body {
		scroll-behavior: auto;
	}
}

body.inergix-theme {
	margin: 0;
	font-family: var(--ix-font);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
	color: var(--ix-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ix-dark);
}

p {
	margin: 0;
}

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

input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

.ix-container {
	width: 100%;
	max-width: var(--ix-container);
	margin: 0 auto;
	padding: 0 15px;
}

/* Screen-reader only text (accessible headings, labels) */
.ix-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ix-main {
	padding-top: 40px;
	padding-bottom: 40px;
}

.ix-section {
	margin-bottom: 90px;
}

.ix-site {
	overflow-x: hidden;
}

/* Headings shared by homepage sections */
.ix-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.ix-sec-title {
	font-size: 36px;
	font-weight: 700;
	line-height: 46px;
	color: var(--ix-dark);
	letter-spacing: 0;
}

.ix-sec-title u {
	text-decoration: none;
	padding-bottom: 2px;
	background-image: linear-gradient(90deg, #00aeef 0%, #0a3a63 100%);
	background-repeat: no-repeat;
	background-position: 0 94%;
	background-size: 100% 2px;
}

/* Buttons */
.ix-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 5px 20px;
	border: 0;
	border-radius: 35px;
	font-size: 13px;
	font-weight: 600;
	line-height: 15.6px;
	text-transform: capitalize;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ix-btn--soft {
	background: #f3f3f3;
	color: #3e3e3e;
}

.ix-btn--soft:hover {
	background: var(--ix-dark);
	color: #fff;
}

.ix-btn--primary {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
}

.ix-btn--primary:hover {
	background: #0093c9;
}

.ix-btn--white {
	background: #fff;
	color: var(--ix-text);
}

.ix-btn--white:hover {
	background: var(--ix-dark);
	color: #fff;
}

/* Icons */
.ix-icon {
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
}

/* Blog archive heading (Astra prints none on the posts page) */
.ix-archive-head {
	margin: 0 0 32px;
}

.ix-archive-title {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ix-dark);
}

@media (max-width: 768px) {
	.ix-archive-head {
		margin-bottom: 24px;
	}

	.ix-archive-title {
		font-size: 30px;
	}
}

/* Blog empty state — shown while no article is published */
.ix-blog-empty {
	padding: 56px 32px;
	border: 1px solid var(--ix-border);
	border-radius: var(--ix-radius);
	background: var(--ix-bg);
	text-align: center;
}

.ix-blog-empty__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ix-muted);
}

@media (max-width: 768px) {
	.ix-blog-empty {
		padding: 36px 20px;
	}

	.ix-blog-empty__text {
		font-size: 15px;
	}
}

/* Scroll to top ------------------------------------------------------------
   Astra prints the button on every page. Its default 31.5px blue square sits
   in the bottom-right corner; here it becomes a white, centred floating
   button with a visible focus ring and a comfortable 48px touch target. */
#ast-scroll-top.ast-scroll-top-icon {
	position: fixed;
	top: auto;
	right: auto;
	bottom: 24px;
	left: 50%;
	z-index: 90;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	background: #fff;
	color: var(--ix-dark);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
	line-height: 1;
	transform: translateX(-50%);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease,
		box-shadow 0.2s ease, transform 0.2s ease;
	animation: ix-to-top-in 0.24s ease-out;
	-webkit-tap-highlight-color: transparent;
}

#ast-scroll-top.ast-scroll-top-icon:hover {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
	box-shadow: 0 12px 28px rgba(0, 174, 239, 0.32);
	transform: translate(-50%, -3px);
}

#ast-scroll-top.ast-scroll-top-icon:active {
	transform: translate(-50%, -1px) scale(0.96);
}

#ast-scroll-top.ast-scroll-top-icon:focus {
	border: 1px solid rgba(0, 0, 0, 0.08);
}

#ast-scroll-top.ast-scroll-top-icon:focus-visible {
	border: 1px solid rgba(0, 0, 0, 0.08);
	outline: 3px solid rgba(0, 174, 239, 0.4);
	outline-offset: 3px;
}

#ast-scroll-top.ast-scroll-top-icon .ast-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

#ast-scroll-top.ast-scroll-top-icon .ast-icon.icon-arrow svg {
	width: 20px;
	height: 20px;
	margin: 0;
	transform: rotate(180deg);
}

#ast-scroll-top.ast-scroll-top-icon .ast-icon.icon-arrow svg path {
	fill: currentColor;
}

@keyframes ix-to-top-in {
	from {
		opacity: 0;
		transform: translate(-50%, 8px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0) scale(1);
	}
}

@media (max-width: 1024px) {
	#ast-scroll-top.ast-scroll-top-icon {
		bottom: calc(71px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	#ast-scroll-top.ast-scroll-top-icon {
		animation: none;
		transition: none;
	}
}

/* Never float over the checkout call to action. */
.woocommerce-checkout #ast-scroll-top.ast-scroll-top-icon {
	display: none !important;
}

/* Accessibility helpers */
.screen-reader-text,
.skip-link.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	display: block;
	width: auto;
	height: auto;
	padding: 12px 18px;
	background: #fff;
	color: var(--ix-dark);
	border-radius: 8px;
	clip: auto;
	z-index: 100000;
	top: 10px;
	left: 10px;
}

/* Elementor / Gutenberg alignment safeguards */
.ix-content > .elementor,
.ix-content > .wp-block-group {
	max-width: none;
}

/* Strict lazy loading ------------------------------------------------------
   Every image is deferred by PHP and swapped in by #ix-lazy-loader when it
   touches the viewport. The fade makes that swap visible while scrolling. */
@keyframes ix-lazy-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

img.ix-lazy-done {
	animation: ix-lazy-fade 0.4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
	img.ix-lazy-done {
		animation: none;
	}
}

