/* Layout: container, sections, header, mobile menu, footer, banners, grids. */

.ea-container {
	width: 100%;
	max-width: calc(var(--ea-container) + var(--ea-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ea-gutter);
}

.ea-container--narrow {
	max-width: calc(800px + var(--ea-gutter) * 2);
}

.ea-section {
	padding-block: var(--ea-section-y);
}

/* Zero specificity so layout classes (.ea-split, .ea-contact-grid…) on the same element win. */
:where(.ea-section > .ea-container) {
	display: flex;
	flex-direction: column;
	gap: var(--ea-space-3xl);
}

.ea-section--muted { background: var(--ea-bg-muted); }
.ea-section--surface { background: var(--ea-bg-surface); }
.ea-section--accent { background: var(--ea-bg-accent); }
.ea-section--brand { background: var(--ea-bg-brand); }
.ea-section--inverse { background: var(--ea-bg-inverse); }

.ea-section__head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--ea-space-lg);
}

/*
 * Ewan Art widgets always take the full width of their Elementor container.
 * Without this, a container with "align items: center" shrinks them to their
 * content — and the image collage (absolutely positioned) collapses to 0.
 */
.elementor-widget[class*="elementor-widget-ea-"] {
	width: 100%;
}

/* Elementor widgets that stack a heading above content. */
.ea-widget-stack {
	display: flex;
	flex-direction: column;
	gap: var(--ea-space-3xl);
	width: 100%;
}

.ea-single-image {
	width: 100%;
	aspect-ratio: 620 / 520;
	object-fit: cover;
}

.ea-team__photo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ea-team__photo .ea-team__placeholder {
	width: 30%;
	height: auto;
	opacity: 0.3;
}

.ea-nav-widget {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Elementor-built header: keep the theme's sticky behaviour and spacing. */
.ea-header--elementor {
	border-bottom: 0;
}

/* Grids */
.ea-grid {
	display: grid;
	gap: var(--ea-space-lg);
}

.ea-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ea-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ea-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.ea-grid--3,
	.ea-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.ea-grid--2,
	.ea-grid--3,
	.ea-grid--4 { grid-template-columns: minmax(0, 1fr); }

	.ea-section__head-row {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Horizontal swipe on mobile (cards peek from the left). */
	.ea-carousel-mobile {
		display: grid;
		grid-auto-columns: 78%;
		grid-auto-flow: column;
		grid-template-columns: none;
		gap: 16px;
		margin-inline: calc(var(--ea-gutter) * -1);
		padding-inline: var(--ea-gutter);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.ea-carousel-mobile > * {
		scroll-snap-align: start;
	}
}

/* Split: media + text */
.ea-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--ea-space-4xl);
}

.ea-split--top { align-items: start; }

.ea-split__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ea-space-xl);
}

@media (max-width: 1024px) {
	.ea-split {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--ea-space-2xl);
	}

	/* Mobile shows the image above the text. */
	.ea-split__media {
		order: -1;
	}
}

/* ---------- Header ---------- */
.ea-header {
	position: relative;
	z-index: 100;
	background: var(--ea-bg-page);
	border-bottom: 1px solid var(--ea-border-default);
}

.ea-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ea-space-xl);
	height: var(--ea-header-h);
	transition: height 0.3s var(--ea-ease);
}

.ea-header .ea-logo img {
	width: 176px;
	height: auto;
	transition: width 0.3s var(--ea-ease);
}

.ea-logo--light { display: none; }

.ea-nav ul {
	display: flex;
	gap: 40px;
	list-style: none;
}

.ea-nav a {
	position: relative;
	display: inline-block;
	padding-block: 6px;
	color: var(--ea-text-primary);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: var(--ea-lh-label);
}

.ea-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -2px;
	width: 16px;
	height: 1.5px;
	margin-inline: auto;
	background: currentColor;
	opacity: 0;
	transition: opacity 0.2s var(--ea-ease);
}

.ea-nav .current-menu-item > a,
.ea-nav .current-menu-ancestor > a,
.ea-nav .current_page_parent > a {
	color: var(--ea-text-brand);
	font-weight: 500;
}

.ea-nav .current-menu-item > a::after,
.ea-nav .current-menu-ancestor > a::after,
.ea-nav .current_page_parent > a::after,
.ea-nav a:hover::after {
	opacity: 1;
}

/* Dropdown */
.ea-nav li {
	position: relative;
}

.ea-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -20px;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 220px;
	padding: 12px 0;
	background: var(--ea-bg-surface);
	box-shadow: var(--ea-shadow-sm);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s var(--ea-ease);
}

.ea-nav li:hover > .sub-menu,
.ea-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ea-nav .sub-menu a {
	display: block;
	padding: 8px 20px;
	color: var(--ea-text-primary) !important;
}

.ea-nav .sub-menu a::after {
	display: none;
}

.ea-header__actions {
	display: flex;
	align-items: center;
	gap: var(--ea-space-md);
}

.ea-menu-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ea-text-primary);
	cursor: pointer;
}

/* Transparent header over the hero/banner */
.has-transparent-header .ea-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	background: transparent;
	border-bottom-color: transparent;
}

.admin-bar.has-transparent-header .ea-header:not(.is-stuck) { top: 32px; }

@media (max-width: 782px) {
	.admin-bar.has-transparent-header .ea-header:not(.is-stuck) { top: 46px; }
}

.has-transparent-header .ea-header:not(.is-stuck) .ea-logo--dark { display: none; }
.has-transparent-header .ea-header:not(.is-stuck) .ea-logo--light { display: block; }
.has-transparent-header .ea-header:not(.is-stuck) .ea-nav a { color: var(--ea-text-on-dark-muted); }
.has-transparent-header .ea-header:not(.is-stuck) .ea-nav .current-menu-item > a,
.has-transparent-header .ea-header:not(.is-stuck) .ea-nav .current-menu-ancestor > a,
.has-transparent-header .ea-header:not(.is-stuck) .ea-nav .current_page_parent > a,
.has-transparent-header .ea-header:not(.is-stuck) .ea-nav a:hover { color: var(--ea-text-on-dark); }
.has-transparent-header .ea-header:not(.is-stuck) .ea-menu-toggle { color: var(--ea-text-on-dark); }
.has-transparent-header .ea-header:not(.is-stuck) .ea-header__cta { background: var(--ea-beige-50); color: var(--ea-text-on-light); }

/* Sticky state (after scrolling) */
.ea-header.is-stuck {
	position: fixed;
	inset-inline: 0;
	top: 0;
	background: var(--ea-bg-page);
	border-bottom-color: transparent;
	box-shadow: var(--ea-shadow-sm);
	animation: ea-slide-down 0.35s var(--ea-ease);
}

.ea-header.is-stuck .ea-header__inner {
	height: var(--ea-header-sticky-h);
}

.ea-header.is-stuck .ea-logo img {
	width: 144px;
}

.admin-bar .ea-header.is-stuck {
	top: 32px;
}

@keyframes ea-slide-down {
	from { transform: translateY(-100%); }
	to { transform: none; }
}

@media (max-width: 1100px) {
	.ea-nav ul { gap: 24px; }
}

@media (max-width: 991px) {
	.ea-nav,
	.ea-header__cta {
		display: none;
	}

	.ea-menu-toggle {
		display: inline-flex;
	}

	.ea-header .ea-logo img {
		width: 132px;
	}

	.ea-header.is-stuck .ea-logo img {
		width: 120px;
	}
}

@media (max-width: 782px) {
	.admin-bar .ea-header.is-stuck { top: 46px; }
}

/* ---------- Mobile menu (full screen, On Dark) ---------- */
.ea-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	background: var(--ea-bg-accent);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--ea-ease), visibility 0.3s;
	overflow-y: auto;
}

.ea-mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
}

.ea-mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	padding-inline: 20px;
}

.ea-mobile-menu__top .ea-logo img {
	width: 132px;
}

.ea-mobile-menu__close {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ea-icon-brand);
	cursor: pointer;
}

.ea-mobile-menu nav {
	padding: 16px 20px 0;
}

.ea-mobile-menu nav ul {
	list-style: none;
}

.ea-mobile-menu nav > ul > li {
	border-bottom: 1px solid var(--ea-border-default);
}

.ea-mobile-menu nav > ul > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	color: var(--ea-text-secondary);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.65;
}

.ea-mobile-menu nav > ul > li > a::after {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 12H5'/%3E%3Cpath d='m10 7-5 5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 12H5'/%3E%3Cpath d='m10 7-5 5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ea-mobile-menu nav .current-menu-item > a,
.ea-mobile-menu nav .current-menu-ancestor > a {
	color: var(--ea-text-primary);
	font-weight: 500;
}

.ea-mobile-menu .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 16px 18px 0;
}

.ea-mobile-menu .sub-menu a {
	color: var(--ea-text-secondary);
	font-size: 1rem;
}

.ea-mobile-menu__bottom {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: auto;
	padding: 32px 20px;
}

/* Phone on top, social icons on their own row (up to 6 icons don't fit beside the number). */
.ea-mobile-menu__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.ea-mobile-menu__contact .ea-social {
	flex-wrap: wrap;
}

.ea-mobile-menu__phone small {
	display: block;
	color: var(--ea-text-secondary);
	font-size: 0.75rem;
}

.ea-mobile-menu__phone a {
	color: var(--ea-text-primary);
	font-weight: 500;
	direction: ltr;
	display: inline-block;
}

body.ea-menu-open {
	overflow: hidden;
}

/* Social squares */
.ea-social {
	display: flex;
	gap: 8px;
	list-style: none;
}

.ea-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ea-border-default);
	color: var(--ea-icon-brand);
	transition: border-color 0.3s var(--ea-ease), background-color 0.3s var(--ea-ease), color 0.3s var(--ea-ease), transform 0.3s var(--ea-ease);
}

.ea-social a:hover {
	border-color: var(--ea-border-strong);
	background-color: var(--ea-border-strong);
	color: var(--ea-bg-inverse);
	transform: translateY(-2px);
}

.ea-mobile-menu .ea-social a {
	width: 36px;
	height: 36px;
}

/* ---------- Footer ---------- */
.ea-footer {
	padding: 96px 0 32px;
	background: var(--ea-bg-inverse);
}

.ea-footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: var(--ea-space-3xl);
}

.ea-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.ea-footer__brand .ea-logo img {
	width: 220px;
}

.ea-footer__brand p {
	max-width: 360px;
	color: var(--ea-text-secondary);
}

.ea-footer h3 {
	margin-bottom: 20px;
	font-size: var(--ea-fs-h4);
}

.ea-footer ul {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
}

.ea-footer .ea-social {
	flex-direction: row;
	gap: 8px;
}

.ea-footer a,
.ea-footer li {
	color: var(--ea-text-secondary);
}

.ea-footer a:hover {
	color: var(--ea-text-primary);
}

.ea-footer__contact li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ea-footer__contact small {
	color: var(--ea-text-secondary);
	font-size: 0.8125rem;
	opacity: 0.7;
}

.ea-footer__contact span,
.ea-footer__contact a {
	color: var(--ea-text-primary);
}

.ea-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 64px;
	padding-top: 32px;
	padding-inline-end: 72px; /* clear the floating call/WhatsApp buttons */
	border-top: 1px solid var(--ea-border-on-dark);
	color: var(--ea-text-secondary);
	font-size: var(--ea-fs-small);
}

.ea-footer__bottom .ea-script {
	color: var(--ea-text-secondary);
	font-size: 1.75rem;
}

@media (max-width: 991px) {
	.ea-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ea-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.ea-footer {
		padding-top: 56px;
	}

	.ea-footer__cols {
		gap: 32px 24px;
	}

	.ea-footer__contact {
		grid-column: 1 / -1;
	}

	.ea-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
		margin-top: 40px;
	}
}

/* Image layer for hero + page banners (separate element so it can zoom/parallax). */
.ea-hero,
.ea-page-hero {
	isolation: isolate;
	overflow: hidden;
}

.ea-hero__bg {
	position: absolute;
	inset: -6% 0;
	z-index: -1;
	background: var(--ea-bg-inverse) center / cover no-repeat;
	will-change: transform;
}

/* ---------- Page hero (inner pages) ---------- */
.ea-page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 560px;
	padding-top: var(--ea-header-h);
	padding-bottom: 88px;
	background: var(--ea-bg-inverse) center / cover no-repeat;
	color: var(--ea-text-on-dark);
}

.ea-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(22, 22, 22, 0.62);
}

.ea-page-hero > .ea-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.ea-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--ea-text-on-dark-muted);
	font-size: var(--ea-fs-small);
	font-weight: 400;
	list-style: none;
}

.ea-breadcrumb li + li::before {
	content: "/";
	margin-inline-end: 10px;
}

.ea-breadcrumb a:hover {
	color: var(--ea-text-on-dark);
}

.ea-page-hero__title {
	color: var(--ea-text-on-dark);
	font-size: var(--ea-fs-display);
	font-weight: 300;
	line-height: var(--ea-lh-display);
}

.ea-page-hero__subtitle {
	max-width: 640px;
	color: var(--ea-text-on-dark-muted);
	font-size: var(--ea-fs-body-lg);
}

@media (max-width: 767px) {
	.ea-page-hero {
		min-height: 340px;
		padding-bottom: 40px;
	}

	.ea-page-hero__title {
		font-size: 2.5rem;
	}
}

/* Simple head (default pages, articles) */
.ea-page-head {
	padding-block: 96px 72px;
	background: var(--ea-bg-muted);
}

.ea-page-head .ea-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ea-page-head .ea-breadcrumb {
	color: var(--ea-text-secondary);
}

@media (max-width: 767px) {
	.ea-page-head {
		padding-block: 48px 40px;
	}
}

/* ---------- CTA band ---------- */
.ea-cta-band {
	position: relative;
	overflow: hidden;
	padding-block: 96px;
	background: var(--ea-bg-brand);
}

.ea-cta-band__pattern {
	position: absolute;
	top: -60px;
	inset-inline-end: 40%;
	width: 260px;
	opacity: 0.08;
	pointer-events: none;
}

.ea-cta-band .ea-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.ea-cta-band__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 620px;
}

.ea-cta-band__text p {
	color: var(--ea-text-secondary);
	font-size: var(--ea-fs-body-lg);
}

@media (max-width: 767px) {
	.ea-cta-band {
		padding-block: 64px;
	}

	.ea-cta-band .ea-container {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.ea-cta-band .ea-actions {
		flex-direction: column;
	}

	.ea-cta-band .ea-btn {
		width: 100%;
	}
}
