/* Components — one block per Figma component. */

.ea-flip {
	transform: scaleX(-1);
}

/* ---------- Button ---------- */
.ea-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ea-space-sm);
	padding: 16px 32px;
	border: 1px solid transparent;
	border-radius: var(--ea-radius-none);
	font-family: var(--ea-font-ar);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: var(--ea-lh-label);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s var(--ea-ease), color 0.25s var(--ea-ease), border-color 0.25s var(--ea-ease);
}

.ea-btn .ea-icon {
	flex: none;
	transition: transform 0.25s var(--ea-ease);
}

.ea-btn:hover .ea-icon {
	transform: translateX(-4px);
}

.ea-btn--primary { background: var(--ea-bg-brand); color: var(--ea-text-on-dark); }
.ea-btn--primary:hover { background: var(--ea-bg-brand-hover); color: var(--ea-text-on-dark); }

/* Light stays burgundy-on-cream even inside .ea-on-dark sections. */
.ea-btn--light { background: var(--ea-beige-50); color: var(--ea-text-on-light); }
.ea-btn--light:hover { background: var(--ea-beige-200); color: var(--ea-text-on-light); }

/* Fill on hover is a right-to-left sweep (background-image + background-size). Don't use the
   `background` shorthand on :hover — it would reset that image and leave light text on a light background. */
.ea-btn--outline {
	border-color: var(--ea-border-strong);
	color: var(--ea-text-brand);
	background-color: transparent;
	background-image: linear-gradient(var(--ea-bg-brand), var(--ea-bg-brand));
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 0% 100%;
}

.ea-btn--outline:hover {
	border-color: var(--ea-bg-brand);
	color: var(--ea-text-on-dark);
	background-size: 100% 100%;
}

.ea-btn--link { padding: 8px 0; color: var(--ea-text-brand); }
.ea-btn--link:hover { color: var(--ea-text-primary); text-decoration: underline; text-underline-offset: 6px; }

.ea-btn--block { width: 100%; }

.ea-btn[disabled],
.ea-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.ea-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ea-space-md);
}

/* ---------- Section heading ---------- */
.ea-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ea-space-md);
	max-width: 720px;
}

.ea-heading--center {
	align-items: center;
	margin-inline: auto;
	text-align: center;
}

.ea-heading__title {
	font-size: var(--ea-fs-h2);
	font-weight: 400;
	line-height: 1.65;
}

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

/* ---------- Form fields ---------- */
.ea-field {
	display: flex;
	flex-direction: column;
	gap: var(--ea-space-sm);
	min-width: 0;
}

.ea-field label {
	color: var(--ea-text-primary);
	font-size: var(--ea-fs-small);
	font-weight: 400;
}

.ea-field input,
.ea-field select,
.ea-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--ea-border-default);
	border-radius: 0;
	background: var(--ea-bg-surface);
	color: var(--ea-text-primary);
	font-size: var(--ea-fs-body);
	font-weight: 300;
	line-height: 1.6;
	transition: border-color 0.2s var(--ea-ease);
	appearance: none;
}

.ea-field textarea {
	min-height: 140px;
	resize: vertical;
}

.ea-field select {
	padding-inline-start: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B675F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 16px center;
}

.ea-field input::placeholder,
.ea-field textarea::placeholder {
	color: var(--ea-text-secondary);
	opacity: 1;
}

.ea-field input:focus,
.ea-field select:focus,
.ea-field textarea:focus {
	outline: none;
	border-color: var(--ea-border-strong);
}

.ea-field input[type="tel"],
.ea-field input[type="email"] {
	direction: ltr;
	text-align: right;
}

.ea-field__error {
	display: none;
	color: var(--ea-text-error);
	font-size: 0.8125rem;
	font-weight: 400;
}

.ea-field.has-error input,
.ea-field.has-error select,
.ea-field.has-error textarea {
	border-color: var(--ea-border-error);
}

.ea-field.has-error .ea-field__error {
	display: block;
}

/* ---------- Cards ---------- */
.ea-card-service {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ea-bg-surface);
}

.ea-card-service__media,
.ea-card-blog__media {
	display: block;
	aspect-ratio: 384 / 280;
	overflow: hidden;
	background: var(--ea-bg-muted);
}

.ea-card-service__media img,
.ea-card-blog__media img,
.ea-card-project img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ea-ease);
}

.ea-card-service:hover img,
.ea-card-blog:hover img,
.ea-card-project:hover img {
	transform: scale(1.04);
}

.ea-card-service__body,
.ea-card-blog__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: var(--ea-space-xl);
}

.ea-card-service__num {
	font-family: var(--ea-font-latin-caps);
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	color: var(--ea-text-brand);
}

.ea-card-service__title,
.ea-card-blog__title {
	font-size: var(--ea-fs-h3);
}

.ea-card-blog__title {
	font-size: var(--ea-fs-h4);
}

.ea-card-service__desc,
.ea-card-blog__excerpt {
	flex: 1;
	color: var(--ea-text-secondary);
}

.ea-card-blog__excerpt {
	font-size: var(--ea-fs-small);
	font-weight: 400;
}

.ea-card-blog {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ea-bg-surface);
}

.ea-card-blog__body {
	padding: 28px;
}

.ea-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: var(--ea-text-secondary);
	font-size: var(--ea-fs-small);
	font-weight: 400;
}

.ea-meta__cat {
	color: var(--ea-text-brand);
	font-weight: 500;
}

.ea-meta__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ea-border-default);
}

/* Project card: full-bleed image with bottom-anchored text inside padding. */
.ea-card-project {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 480px;
	padding: var(--ea-space-xl);
	overflow: hidden;
	background: var(--ea-bg-accent);
	color: var(--ea-text-on-dark);
}

.ea-card-project--sm {
	min-height: 420px;
}

.ea-card-project__img {
	position: absolute;
	inset: 0;
}

.ea-card-project::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(22, 22, 22, 0) 45%, rgba(22, 22, 22, 0.85) 100%);
	pointer-events: none;
}

.ea-card-project__info {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ea-card-project__cat {
	color: var(--ea-text-on-dark-muted);
	font-size: var(--ea-fs-small);
	font-weight: 500;
}

.ea-card-project__title {
	color: var(--ea-text-on-dark);
	font-size: var(--ea-fs-h3);
}

.ea-card-project:hover {
	color: var(--ea-text-on-dark);
}

/* Feature (icon + title + text) */
.ea-feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ea-space-md);
}

.ea-feature--boxed {
	height: 100%;
	padding: 40px;
	border: 1px solid var(--ea-border-default);
	background: var(--ea-bg-surface);
}

.ea-icon-box {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--ea-border-default);
	color: var(--ea-icon-brand);
}

.ea-feature__title {
	font-size: var(--ea-fs-h4);
}

.ea-feature__desc {
	color: var(--ea-text-secondary);
}

/* Team */
.ea-team__photo {
	aspect-ratio: 300 / 360;
	overflow: hidden;
	background: var(--ea-bg-muted);
}

.ea-team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ea-team__name {
	margin-top: 20px;
	font-size: var(--ea-fs-h4);
}

.ea-team__role {
	color: var(--ea-text-brand);
	font-size: var(--ea-fs-small);
	font-weight: 400;
}

/* Testimonial */
.ea-testimonial {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	padding: var(--ea-space-xl);
	border: 1px solid var(--ea-border-default);
	background: var(--ea-bg-surface);
}

.ea-testimonial__mark {
	height: 32px;
	color: var(--ea-text-brand);
	font-family: var(--ea-font-script);
	font-size: 4.5rem;
	line-height: 0.9;
}

.ea-testimonial__quote {
	flex: 1;
	font-size: var(--ea-fs-body-lg);
}

.ea-testimonial__name {
	font-size: var(--ea-fs-h4);
}

.ea-testimonial__role {
	color: var(--ea-text-secondary);
	font-size: var(--ea-fs-small);
	font-weight: 400;
}

/* ---------- Stats: equal spacing on both sides of each divider ---------- */
.ea-stats {
	--ea-stat-gap: 32px;
	display: flex;
	flex-wrap: wrap;
	row-gap: var(--ea-space-lg);
}

.ea-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ea-stat + .ea-stat {
	margin-inline-start: var(--ea-stat-gap);
	padding-inline-start: var(--ea-stat-gap);
	border-inline-start: 1px solid var(--ea-border-strong);
}

.ea-stat__num {
	color: var(--ea-text-brand);
	font-size: var(--ea-fs-h1);
	font-weight: 400;
	line-height: 1.4;
	direction: ltr;
	text-align: right;
}

.ea-stat__label {
	color: var(--ea-text-secondary);
}

.ea-stats--center {
	justify-content: center;
	--ea-stat-gap: 72px;
}

@media (max-width: 767px) {
	.ea-stats {
		--ea-stat-gap: 16px;
	}

	.ea-stat__num {
		font-size: 1.875rem;
	}

	.ea-stat__label {
		font-size: 0.8125rem;
	}

	/* 2-column grid: dividers stay aligned between rows. */
	.ea-stats--grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ea-stats--grid .ea-stat + .ea-stat {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.ea-stats--grid .ea-stat:nth-child(even) {
		padding-inline-start: 24px;
		border-inline-start: 1px solid var(--ea-border-strong);
	}

	.ea-stats--grid .ea-stat:nth-child(odd) {
		padding-inline-end: 24px;
	}
}

/* ---------- Filter tabs / chips ---------- */
.ea-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.ea-tab {
	position: relative;
	padding: 0 0 12px;
	border: 0;
	background: none;
	color: var(--ea-text-secondary);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: var(--ea-lh-label);
	cursor: pointer;
}

.ea-tab::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	width: 24px;
	height: 1.5px;
	margin-inline: auto;
	background: var(--ea-bg-brand);
	opacity: 0;
	transition: opacity 0.2s var(--ea-ease);
}

.ea-tab:hover,
.ea-tab.is-active {
	color: var(--ea-text-brand);
}

.ea-tab.is-active {
	font-weight: 500;
}

.ea-tab.is-active::after {
	opacity: 1;
}

@media (max-width: 767px) {
	.ea-tabs {
		flex-wrap: nowrap;
		gap: 8px;
		margin-inline: calc(var(--ea-gutter) * -1);
		padding-inline: var(--ea-gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ea-tab {
		flex: none;
		padding: 8px 18px;
		border: 1px solid var(--ea-border-default);
		color: var(--ea-text-primary);
		font-size: var(--ea-fs-small);
	}

	.ea-tab::after {
		display: none;
	}

	.ea-tab.is-active {
		border-color: var(--ea-bg-brand);
		background: var(--ea-bg-brand);
		color: var(--ea-text-on-dark);
		font-weight: 400;
	}
}

/* ---------- Chips ---------- */
.ea-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ea-chip {
	padding: 8px 16px;
	border: 1px solid var(--ea-border-default);
	color: var(--ea-text-primary);
	font-size: var(--ea-fs-small);
	font-weight: 400;
}

/* ---------- Check list ---------- */
.ea-checklist {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
}

.ea-checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ea-checklist .ea-icon {
	flex: none;
	color: var(--ea-icon-brand);
}

/* ---------- FAQ ---------- */
.ea-faq__item {
	border-bottom: 1px solid var(--ea-border-default);
}

.ea-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 24px 0;
	border: 0;
	background: none;
	color: var(--ea-text-primary);
	font-size: var(--ea-fs-h4);
	font-weight: 500;
	line-height: var(--ea-lh-h4);
	text-align: right;
	cursor: pointer;
}

.ea-faq__q .ea-icon {
	flex: none;
	color: var(--ea-icon-brand);
}

.ea-faq__q .ea-icon--minus,
.ea-faq__item.is-open .ea-faq__q .ea-icon--plus {
	display: none;
}

.ea-faq__item.is-open .ea-faq__q .ea-icon--minus {
	display: block;
}

.ea-faq__a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s var(--ea-ease);
}

.ea-faq__a > div {
	overflow: hidden;
	color: var(--ea-text-secondary);
}

.ea-faq__item.is-open .ea-faq__a {
	grid-template-rows: 1fr;
}

.ea-faq__item.is-open .ea-faq__a > div {
	padding-bottom: 24px;
}

/* ---------- Pagination ---------- */
.ea-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ea-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	border: 1px solid var(--ea-border-default);
	font-weight: 500;
}

.ea-pagination .page-numbers.current {
	border-color: var(--ea-bg-brand);
	background: var(--ea-bg-brand);
	color: var(--ea-text-on-dark);
}

.ea-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ---------- Floating contact ---------- */
.ea-floating {
	position: fixed;
	inset-inline-end: 24px;
	bottom: 24px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ea-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ea-bg-brand);
	color: #fff;
	box-shadow: var(--ea-shadow-fab);
	transition: transform 0.25s var(--ea-ease);
}

.ea-fab:hover {
	color: #fff;
	transform: translateY(-3px);
}

.ea-fab--whatsapp {
	background: var(--ea-whatsapp-500);
}

.ea-fab .ea-icon {
	stroke-width: 1.6;
}

@media (max-width: 767px) {
	.ea-floating {
		inset-inline-end: 16px;
		bottom: 20px;
	}
}

/* ---------- Form success ---------- */
.ea-form-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 48px 32px;
	text-align: center;
}

.ea-form-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 1.5px solid var(--ea-icon-success);
	border-radius: 50%;
	color: var(--ea-icon-success);
}

.ea-form-success p {
	max-width: 400px;
	color: var(--ea-text-secondary);
}
