/**
 * Emerald base styles.
 * Consumes the CSS variables generated in dynamic-styles.css.
 */

body {
	margin: 0;
	background-color: var(--emerald-background-color, #ffffff);
	color: var(--emerald-text-color, #1a1a1a);
	font-family: var(--emerald-body-font-family, 'Source Sans 3', sans-serif);
	font-size: var(--emerald-body-font-size, 16px);
	font-weight: var(--emerald-body-font-weight, 400);
	line-height: var(--emerald-body-line-height, 1.6);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--emerald-heading-color, #0d0d0d);
	font-family: var(--emerald-heading-font-family, 'Manrope', sans-serif);
	font-weight: var(--emerald-heading-font-weight, 700);
	line-height: var(--emerald-heading-line-height, 1.2);
}

a {
	color: var(--emerald-link-color, #0066ff);
	text-decoration: none;
}

a:hover {
	color: var(--emerald-link-hover-color, #0047b3);
}

.emerald-container {
	width: 100%;
	max-width: 1300px;
	margin-inline: auto;
	padding-inline: 12px;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--emerald-surface-color, #f2f2f2);
}

/* ---------------------------------------------------------------- */
/* Header (in flow, transparent — pull the hero up under it)         */
/* ---------------------------------------------------------------- */
.emerald-header {
	position: relative;
	z-index: 50;
	padding: 12px 0;
	background: transparent;
}

/* Scroll-up reveal: header detaches and slides back in only when the user
   scrolls up; scrolling down hides it again. Classes come from main.js. */
.emerald-header.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 12px 0;
	transform: translateY(-100%);
	will-change: transform;
}

/* Transitions are enabled one frame later, so parking the header offscreen
   at the moment it goes fixed can't animate (that was the visible jump). */
.emerald-header.is-sticky.is-animated {
	transition: transform 0.3s ease;
}

.emerald-header.is-sticky.is-visible {
	transform: translateY(0);
}

/* Going fixed pulls the header out of the document; JS sets the height so
   this padding keeps the page from jumping up. */
body.emerald-header-stuck {
	padding-top: var(--emerald-header-h, 0px);
}

/* Darker glass while floating over page content — the nav and logo are white
   and the page body is light. */
.emerald-header.is-sticky .emerald-header__inner {
	background: rgba(18, 40, 34, 0.55);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: 0 10px 30px rgba(31, 45, 42, 0.18);
}

.admin-bar .emerald-header.is-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .emerald-header.is-sticky {
		top: 46px;
	}
}

/* Under 600px the admin bar is absolute, so it scrolls away with the page. */
@media screen and (max-width: 600px) {
	.admin-bar .emerald-header.is-sticky {
		top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.emerald-header.is-sticky.is-animated {
		transition: none;
	}
}

.emerald-header__inner {
	display: flex;
	align-items: center;
	/* justify-content: space-between; */
	justify-content: center;
	gap: 24px;
	min-height: 56px;
	padding: 10px 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
}

.emerald-header__brand {
	display: flex;
	align-items: center;
}

.emerald-brand img {
	display: block;
	max-height: 68px;
	width: auto;
}

.emerald-brand--text {
	color: #ffffff;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.02em;
}

.emerald-header__actions {
	/* display: flex; */
	display: none;
	align-items: center;
	gap: 28px;
}

/* Nav */
.emerald-nav .emerald-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.emerald-menu a {
	color: rgba(255, 255, 255, 0.92);
	font-size: 15px;
	line-height: 1;
	transition: color 0.15s ease;
}

.emerald-menu a:hover,
.emerald-menu .current-menu-item > a {
	color: #ffffff;
}

/* CTA pill */
.emerald-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	background:
		linear-gradient(var(--emerald-accent-color, #1d5f51), var(--emerald-accent-color, #1d5f51)) padding-box,
		linear-gradient(168.44deg, rgba(255, 255, 255, 0.462) -8.7%, rgba(255, 255, 255, 0) 112.65%) border-box;
	color: #ffffff;
	font-size: 15px;
	line-height: 1;
	transition: filter 0.15s ease;
}

.emerald-cta:hover {
	filter: brightness(0.92);
	color: #ffffff;
}

.emerald-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	color: #ffffff;
}

/* ---------------------------------------------------------------- */
/* Primary button (Elementor widget)                                 */
/* ---------------------------------------------------------------- */
.emerald-btn-wrap {
	display: flex;
}

.emerald-btn {
	--emerald-btn-bg: var(--emerald-primary-color, #41a48f);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 4px 4px 4px 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	background:
		linear-gradient(var(--emerald-btn-bg), var(--emerald-btn-bg)) padding-box,
		linear-gradient(168.44deg, rgba(255, 255, 255, 0.462) -8.7%, rgba(255, 255, 255, 0) 112.65%) border-box;
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	box-shadow: 0 12px 30px rgba(65, 164, 143, 0.28);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.emerald-btn:hover,
.emerald-btn:focus,
.emerald-btn:active {
	color: #ffffff;
}

.emerald-btn:hover {
	filter: brightness(0.96);
	transform: translateY(-1px);
}

.emerald-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	color: inherit;
}

.emerald-btn__icon svg {
	width: 55%;
	height: 55%;
}

/* ---------------------------------------------------------------- */
/* Badge (Elementor widget)                                          */
/* ---------------------------------------------------------------- */
.emerald-badge-wrap {
	display: flex;
}

.emerald-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 8px;
	border: 1px solid rgba(255, 255, 255, 0.33);
	border-radius: 10px;
	background: rgba(29, 95, 81, 0.4);
	color: var(--emerald-text-color, #1f2d2a);
	font-family: var(--emerald-body-font-family, 'Source Sans 3', sans-serif);
	font-size: 14px;
	font-weight: 400;
}

/* ---------------------------------------------------------------- */
/* Hover banner (Elementor widget)                                   */
/* ---------------------------------------------------------------- */
/* Fill the flex/grid slot so side-by-side banners match in width & height. */
.elementor-widget-emerald_hover_banner,
.elementor-widget-emerald_hover_banner .elementor-widget-container {
	width: 100%;
	height: 100%;
}

.emerald-hover-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	min-height: 360px;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 18px;
	background-color: var(--emerald-secondary-color, #1d5f51);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: min-height 0.4s ease, align-items 0.4s ease;
}

.emerald-hover-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(4, 18, 15, 0.65) 100%);
	pointer-events: none;
}

.emerald-hover-banner__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 28px;
}

.emerald-hover-banner__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.emerald-hover-banner__title {
	margin: 0;
	flex: 1 1 auto;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.emerald-hover-banner__toggle {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	cursor: pointer;
	transition: transform 0.3s ease, background 0.2s ease;
}

.emerald-hover-banner__toggle svg {
	display: block;
	width: 20px;
	height: 20px;
}

.emerald-hover-banner__reveal {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transform: translateY(8px);
	transition: grid-template-rows 0.4s ease, opacity 0.4s ease, transform 0.4s ease, margin-top 0.4s ease;
	margin-top: 0;
}

.emerald-hover-banner__reveal-inner {
	overflow: hidden;
	min-height: 0;
}

.emerald-hover-banner:hover .emerald-hover-banner__reveal,
.emerald-hover-banner:focus-within .emerald-hover-banner__reveal {
	grid-template-rows: 1fr;
	opacity: 1;
	transform: translateY(0);
	margin-top: 16px;
}

.emerald-hover-banner__subtitle {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.85);
}

/* Mobile / touch: collapsed by default, chevron expands content. */
@media (max-width: 1024px), (hover: none) {
	.emerald-hover-banner {
		min-height: 220px;
		align-items: flex-end;
	}

	.emerald-hover-banner.is-open {
		min-height: 360px;
		align-items: flex-start;
	}

	.emerald-hover-banner__toggle {
		display: inline-flex;
	}

	.emerald-hover-banner__top {
		cursor: pointer;
	}

	.emerald-hover-banner__title {
		cursor: pointer;
		user-select: none;
	}

	.emerald-hover-banner.is-open .emerald-hover-banner__toggle {
		transform: rotate(180deg);
	}

	.emerald-hover-banner:hover .emerald-hover-banner__reveal,
	.emerald-hover-banner:focus-within .emerald-hover-banner__reveal {
		grid-template-rows: 0fr;
		opacity: 0;
		transform: translateY(8px);
		margin-top: 0;
	}

	.emerald-hover-banner.is-open .emerald-hover-banner__reveal {
		grid-template-rows: 1fr;
		opacity: 1;
		transform: translateY(0);
		margin-top: 16px;
	}
}

/* ---------------------------------------------------------------- */
/* Testimonials slider (Elementor widget)                            */
/* ---------------------------------------------------------------- */
.emerald-testimonials {
	position: relative;
	overflow-x: clip;
}

.emerald-testimonials .swiper {
	padding-bottom: 8px;
	overflow: hidden;
}

.emerald-testimonials .swiper-slide {
	height: auto;
}

.emerald-testimonial-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	box-sizing: border-box;
	padding: 34px 26px 40px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.33);
	border-radius: 20px;
	background: rgba(29, 95, 81, 0.15);
	-webkit-backdrop-filter: blur(8.6px);
	backdrop-filter: blur(8.6px);
	box-shadow: 0 8px 32px 0 rgba(31, 45, 42, 0.08);
}

.emerald-testimonial-card__avatar {
	width: 120px;
	height: 120px;
	border-radius: 999px !important;
	margin-bottom: 22px;
	object-fit: cover;
}

.emerald-testimonials .swiper-pagination {
	position: static;
	margin-top: 22px;
}

.emerald-testimonials .swiper-pagination-bullet-active {
	background: var(--emerald-primary-color, #41a48f);
}

.emerald-testimonials .swiper-button-prev,
.emerald-testimonials .swiper-button-next {
	display: none;
	background: var(--emerald-accent-color, #1d5f51);
    border-radius: 50%;
    color: #ffffff;
}

/* Mobile: active card centered & large; neighbors smaller + blurred. */
@media (max-width: 767px) {
	.emerald-testimonials .swiper {
		overflow: visible;
		padding-inline: 8px;
	}

	.emerald-testimonials .swiper-slide {
		opacity: 0.55;
		transform: scale(0.86);
		filter: blur(3px);
		transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
	}

	.emerald-testimonials .swiper-slide-active {
		opacity: 1;
		transform: scale(1);
		filter: none;
		z-index: 2;
	}

	.emerald-testimonials .swiper-button-prev,
	.emerald-testimonials .swiper-button-next {
		display: flex;
		width: 40px;
		height: 40px;
		margin-top: 0;
		top: 50%;
		transform: translateY(-50%);
		background: var(--emerald-accent-color, #1d5f51);
		border-radius: 50%;
		color: #ffffff;
	}

	.emerald-testimonials .swiper-button-prev::after,
	.emerald-testimonials .swiper-button-next::after {
		font-size: 14px;
		font-weight: 700;
	}

	.emerald-testimonials .swiper-button-prev {
		left: 0;
	}

	.emerald-testimonials .swiper-button-next {
		right: 0;
	}
}

.emerald-testimonial-card__name {
	margin: 0;
	color: var(--emerald-heading-color, #1f2d2a);
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
}

.emerald-testimonial-card__role {
	margin: 6px 0 18px;
	color: var(--emerald-muted-color, #6b7a75);
	font-size: 14px;
}

.emerald-testimonial-card__quote {
	margin: 0;
	color: var(--emerald-text-color, #1f2d2a);
	line-height: 1.6;
}

/* Hamburger (hidden on desktop) */
.emerald-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.emerald-hamburger__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	border-radius: 2px;
	background: #ffffff;
}

/* Mobile overlay drawer */
.emerald-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(18, 40, 34, 0.55);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	backdrop-filter: blur(20px) saturate(140%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.mobile-nav-open .emerald-mobile-overlay {
	opacity: 1;
	visibility: visible;
}

body.mobile-nav-open {
	overflow: hidden;
}

.emerald-mobile-close {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 1;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	line-height: 1;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	cursor: pointer;
}

.emerald-mobile-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	width: 100%;
	padding: 40px 24px;
}

.emerald-mobile-menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.emerald-mobile-menu a {
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
}

.emerald-cta--mobile {
	margin-top: 12px;
}

/* Keep the close button clear of the WP admin bar. */
.admin-bar .emerald-mobile-close {
	top: calc(24px + 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .emerald-mobile-close {
		top: calc(24px + 46px);
	}
}

@media (max-width: 768px) {
	.emerald-header__actions {
		gap: 12px;
	}

	.emerald-nav,
	.emerald-header__actions .emerald-cta {
		display: none;
	}

	.emerald-hamburger {
		display: flex;
	}
}
