/* Page sections shared by Home and Signs. Breakpoints: tablet ≤1024, mobile ≤767. */

/* ---------- Rich text (Elementor text-editor, paragraph spacing 0) ---------- */

.aew-richtext {
	font-family: var(--aew-font-ui);
	font-size: var(--aew-text-size);
	font-weight: 300;
	line-height: var(--aew-text-line);
}

.aew-richtext p {
	margin: 0;
}

.aew-richtext a {
	text-decoration: underline;
}

/* ---------- Buttons ---------- */

.aew-btn--rounded {
	border-radius: 8px;
}

/* ---------- Hero ---------- */

.aew-hero {
	position: relative;
	display: flex;
	margin-top: -110px;
	padding: 0 50px;
	background-color: var(--aew-color-primary);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.aew-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(at center right, #22559C22 0%, var(--aew-color-primary) 90%);
}

.aew-hero__inner {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
}

.aew-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	width: 100%;
}

.aew-hero__heading {
	color: var(--aew-color-white);
	font-size: 55px;
	font-weight: 700;
}

.aew-hero__text {
	color: var(--aew-color-white);
}

/* Home hero */
.aew-hero--home {
	min-height: 80vh;
}

/* Fix: the original's 80px top padding let the header overlap the heading; the button also sat on the bottom edge. */
.aew-hero--home .aew-hero__content {
	padding: 190px 0 80px;
}

.aew-hero--home .aew-hero__heading {
	width: 67%;
	font-family: var(--aew-font-heading);
	line-height: 1.05em;
}

.aew-hero--home .aew-hero__text {
	margin-bottom: 20px;
	font-size: 18px;
}

/* Signs hero */
.aew-hero--signs {
	min-height: 900px;
	margin-top: -140px;
	padding: 100px 50px 60px;
}

.aew-hero--signs::before {
	background-image: radial-gradient(at center right, #22559C22 0%, #1B2E49E6 90%);
}

.aew-hero--signs .aew-hero__content {
	width: 70%;
	padding-top: 80px;
}

.aew-hero--signs .aew-hero__heading {
	font-family: var(--aew-font-accent);
	line-height: 1.05em;
}

.aew-hero--signs .aew-hero__text {
	font-family: var(--aew-font-text);
	font-size: var(--aew-type-lead-size);
	line-height: var(--aew-type-lead-line);
}

.aew-hero--signs .aew-hero__text p {
	margin-bottom: 10px;
}

/* ---------- Bullet list (Elementor icon-list) ---------- */

.aew-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aew-list__item {
	display: flex;
	align-items: center;
}

.aew-list__item:not(:last-child)  { padding-bottom: 5px; }
.aew-list__item:not(:first-child) { margin-top: 5px; }

.aew-list__icon {
	display: flex;
	flex-shrink: 0;
	padding-inline-end: 7px;
}

.aew-list__icon svg {
	width: 12px;
	height: 12px;
	margin-inline-end: 3px;
}

.aew-list--circle .aew-list__icon {
	color: var(--aew-color-accent);
}

.aew-list--circle .aew-list__icon svg {
	fill: currentColor;
}

.aew-list__text {
	padding-inline-start: 5px;
	color: var(--aew-color-text);
	font-family: var(--aew-font-ui);
	font-size: var(--aew-text-size);
	font-weight: 300;
	line-height: var(--aew-text-line);
	text-transform: capitalize;
}

/* ---------- Split section ---------- */

.aew-split {
	padding: 100px 20px;
	background-color: var(--aew-color-white);
}

.aew-split--square {
	background-color: transparent;
}

.aew-split__inner {
	display: flex;
	gap: 60px;
	max-width: 1240px;
	margin-inline: auto;
}

.aew-split--img-left .aew-split__inner {
	flex-direction: row-reverse;
}

/* 50% basis (border-box) so padding stays inside each column, as in Elementor's 50% containers. */
.aew-split__text,
.aew-split__media {
	display: flex;
	flex: 0 1 50%;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.aew-split__text {
	justify-content: center;
}

.aew-split__heading {
	margin-bottom: -10px;
}

.aew-split__media {
	text-align: center;
}

.aew-split__img {
	display: inline-block;
	align-self: center;
	width: 800px;
	max-width: 100%;
	height: 500px;
	/* Fix: the original's 500px rounded images had no object-fit and were squashed. */
	object-fit: cover;
	border-radius: 20px;
}

.aew-split--square .aew-split__img {
	height: 550px;
	border-radius: 0;
}

/* Taller button used by the "square" style. */
.aew-split--square .aew-split__button .aew-btn {
	padding: 19px 20px 20px;
	line-height: 18px;
}

/* Intro variant (first section on Home) */
.aew-split--intro .aew-split__inner {
	gap: 0;
}

.aew-split--intro .aew-split__text {
	padding-right: 60px;
}

.aew-split--intro .aew-split__img {
	height: 550px;
}

/* ---------- CV download box ---------- */

.aew-cv {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 12px;
	padding: 20px;
	border: 2px solid #FCD909;
	border-radius: 16px;
	background-color: var(--aew-color-white);
}

.aew-cv__info {
	display: flex;
	align-self: flex-start;
	align-items: center;
	gap: 14px;
}

.aew-cv__icon {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.aew-cv__icon svg {
	width: 50px;
	height: 50px;
}

.aew-cv__title {
	margin-bottom: 4px;
	font-size: 20px;
	font-weight: 500;
	line-height: 22px;
}

.aew-cv__text {
	margin: 0;
	font-size: 17px;
	line-height: calc(var(--aew-text-size) * 1.75);
}

.aew-cv__btn {
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
	gap: 8px;
}

.aew-cv__btn svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- Service cards ---------- */

.aew-cards {
	padding: 100px 20px;
	background-color: #FFF8F3;
	background-image: url("../img/spin-shape.png");
	background-position: bottom right;
	background-repeat: no-repeat;
}

.aew-cards__inner {
	max-width: 1240px;
	margin-inline: auto;
}

.aew-cards__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 48.952%;
	margin-bottom: 35px;
}

.aew-cards__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 20px;
}

/* An odd last card spans the full row (as the third card in the original). */
.aew-card:last-child:nth-child(odd) {
	grid-column: span 2;
}

.aew-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 30px 33px;
	background-color: var(--aew-color-white);
	box-shadow: 0 0 20px 0 rgba(173, 173, 173, .15);
}

.aew-card__icon {
	display: inline-flex;
	align-self: flex-start;
	padding: 18px;
	border-radius: 12px 0;
	background-color: var(--aew-color-accent);
	color: var(--aew-color-white);
	line-height: 1;
}

.aew-card__icon svg {
	display: block;
	width: 36px;
	height: 36px;
	fill: currentColor;
}

/* Fix: the first card's heading used Libre Baskerville, the other two Lora; all now use Lora. */
.aew-card__heading {
	margin: 0 40px -10px 0;
	font-family: var(--aew-font-accent);
	font-size: 24px;
	line-height: 28px;
}

.aew-card__heading a {
	color: inherit;
}

/* Lists typed inside rich text (card 3) */
.aew-card .aew-richtext ul {
	margin: 0;
}

/* ---------- Content sections (Signs page) ---------- */

.aew-content {
	padding: 100px 20px;
	background-color: var(--aew-color-white);
}

.aew-content--bg-cream {
	background-color: #FFF8F3;
	background-image: url("../img/spin-shape.png");
	background-position: bottom right;
	background-repeat: no-repeat;
}

.aew-content__inner {
	display: flex;
	gap: 60px;
	max-width: 1240px;
	margin-inline: auto;
}

.aew-content--img-left .aew-content__inner {
	flex-direction: row-reverse;
}

.aew-content__text,
.aew-content__media {
	display: flex;
	flex: 0 1 50%;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.aew-content__text {
	justify-content: center;
}

.aew-content__media {
	text-align: center;
}

.aew-content__heading {
	margin-bottom: -10px;
}

.aew-content__img {
	display: inline-block;
	align-self: center;
	max-width: 100%;
	height: var(--aew-img-h, 500px);
	object-fit: cover;
	border-radius: 20px;
}

/* Signs typography: body font (Roboto Slab), lists not capitalised. */
.aew-content .aew-richtext {
	font-family: var(--aew-font-text);
}

.aew-content .aew-list__text {
	font-family: var(--aew-font-text);
	text-transform: none;
}

.aew-richtext--spaced p {
	margin-bottom: .9rem;
}

/* Intro: no column gap; text column padded and spaced 24px. */
.aew-content--intro .aew-content__inner {
	gap: 0;
}

.aew-content--intro .aew-content__text {
	gap: 24px;
	padding-right: 60px;
}

/* Feature + profile: side by side on all screens above phones, black headings, narrower text. */
.aew-content--feature .aew-content__inner {
	justify-content: center;
	gap: 10px;
}

.aew-content--profile .aew-content__inner {
	justify-content: space-between;
	gap: 45px;
}

.aew-content--feature .aew-content__heading,
.aew-content--profile .aew-content__heading {
	width: 95%;
	color: var(--aew-color-black);
}

.aew-content--feature .aew-block-text,
.aew-content--profile .aew-block-text {
	align-self: flex-start;
	width: 90%;
}

.aew-content--feature .aew-content__heading + .aew-block-text,
.aew-content--profile .aew-content__heading + .aew-block-text {
	width: 89%;
}

.aew-content--profile .aew-content__button {
	margin-top: 8px;
}

/* Boxed: text in a white box on cream. */
.aew-content--boxed .aew-content__inner {
	justify-content: center;
	gap: 10px;
}

.aew-content__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 82%;
	padding: 32px;
	border-radius: 12px;
	background-color: var(--aew-color-white);
}

.aew-content__head,
.aew-content__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.aew-content__head {
	margin-bottom: 23px;
}

/* Boxed headings keep the full 20px gap except on phones. */
.aew-content--boxed .aew-content__heading {
	margin-bottom: 0;
}

/* ---------- Entrance animations (Elementor fadeInUp / fadeIn), only when JS runs ---------- */

.aew-js .aew-anim:not(.is-visible) {
	visibility: hidden;
}

.aew-js .aew-anim.is-visible {
	animation: aew-fade-in-up 1.25s both;
	animation-delay: var(--aew-delay, 0s);
}

.aew-js .aew-anim--fade.is-visible {
	animation-name: aew-fade-in;
}

.aew-anim--d200 { --aew-delay: .2s; }
.aew-anim--d300 { --aew-delay: .3s; }
.aew-anim--d400 { --aew-delay: .4s; }
.aew-anim--d600 { --aew-delay: .6s; }

@keyframes aew-fade-in-up {
	from { opacity: 0; transform: translate3d(0, 100%, 0); }
	to   { opacity: 1; transform: none; }
}

@keyframes aew-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.aew-js .aew-anim:not(.is-visible) { visibility: visible; }
	.aew-js .aew-anim.is-visible { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.aew-hero {
		padding: 0 20px;
	}

	/* Fix: the tablet header is 116px tall, so -110px left a 6px white strip above the hero. */
	.aew-hero--home {
		margin-top: -116px;
	}

	.aew-split {
		padding: 60px 20px;
	}

	.aew-split__inner,
	.aew-split--img-left .aew-split__inner {
		flex-direction: column;
	}

	.aew-split--intro .aew-split__inner {
		gap: 32px;
	}

	.aew-split__text,
	.aew-split__media {
		flex: none;
	}

	.aew-cards {
		padding: 60px 20px;
	}

	.aew-cards__head {
		width: 80%;
	}

	.aew-hero--signs {
		padding: 60px 20px 0;
	}

	.aew-hero--signs .aew-hero__content {
		width: 100%;
	}

	.aew-content {
		padding: 60px 20px;
	}

	.aew-content--intro .aew-content__inner,
	.aew-content--standard .aew-content__inner,
	.aew-content--intro.aew-content--img-left .aew-content__inner,
	.aew-content--standard.aew-content--img-left .aew-content__inner {
		flex-direction: column;
	}

	.aew-content--intro .aew-content__inner {
		gap: 32px;
	}

	.aew-content--intro .aew-content__text,
	.aew-content--intro .aew-content__media,
	.aew-content--standard .aew-content__text,
	.aew-content--standard .aew-content__media {
		flex: none;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.aew-hero--home {
		min-height: 90vh;
		margin-top: -106px;
		background-position: 44% 0;
	}

	.aew-hero--home .aew-hero__content {
		padding: 130px 0 80px;
	}

	.aew-hero__heading {
		margin-bottom: -10px;
		font-size: 30px;
	}

	.aew-hero--home .aew-hero__heading {
		line-height: 1.4em;
	}

	.aew-hero--home .aew-hero__text {
		font-size: 15px;
	}

	.aew-split {
		padding: 40px 20px;
	}

	.aew-split--square {
		padding-bottom: 60px;
	}

	.aew-split__inner,
	.aew-split--img-left .aew-split__inner {
		flex-direction: column-reverse;
		gap: 34px;
	}

	.aew-split--intro .aew-split__inner {
		gap: 32px;
	}

	.aew-split--intro .aew-split__text {
		padding-right: 0;
	}

	.aew-split--intro .aew-split__img {
		height: auto;
	}

	.aew-split--square .aew-split__img {
		height: 350px;
	}

	.aew-cv {
		flex-wrap: wrap;
	}

	.aew-cv__title {
		font-size: 18px;
	}

	.aew-cv__btn {
		width: 100%;
	}

	.aew-cards {
		padding: 40px 20px;
	}

	.aew-cards__head {
		width: 100%;
		margin-bottom: 30px;
	}

	.aew-cards__heading {
		margin-bottom: -10px;
	}

	/* Fix: the original kept two columns on phones (card 1 squeezed to ~66px) with equal-height rows. */
	.aew-cards__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
	}

	.aew-card:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.aew-hero--signs {
		min-height: 0;
		margin-top: -120px;
		padding: 20px 20px 0;
		background-position: 44% 0;
	}

	.aew-hero--signs .aew-hero__content {
		padding: 130px 0 40px;
	}

	.aew-hero--signs .aew-hero__heading {
		line-height: 1.2em;
	}

	.aew-content {
		padding: 40px 20px;
	}

	.aew-content__inner,
	.aew-content--img-left .aew-content__inner,
	.aew-content--intro .aew-content__inner,
	.aew-content--standard .aew-content__inner,
	.aew-content--intro.aew-content--img-left .aew-content__inner,
	.aew-content--standard.aew-content--img-left .aew-content__inner {
		flex-direction: column-reverse;
		gap: 24px;
	}

	.aew-content--standard .aew-content__inner,
	.aew-content--standard.aew-content--img-left .aew-content__inner {
		gap: 34px;
	}

	.aew-content--feature .aew-content__inner,
	.aew-content--profile .aew-content__inner {
		gap: 24px;
	}

	.aew-content--boxed .aew-content__inner {
		flex-direction: row;
		gap: 10px;
	}

	.aew-content__text,
	.aew-content__media {
		flex: none;
	}

	.aew-content--intro .aew-content__text {
		gap: 20px;
		padding-right: 0;
	}

	.aew-content__img {
		height: var(--aew-img-h-m, auto);
	}

	.aew-content--feature .aew-content__heading,
	.aew-content--profile .aew-content__heading,
	.aew-content--feature .aew-block-text,
	.aew-content--profile .aew-block-text,
	.aew-content--feature .aew-content__heading + .aew-block-text,
	.aew-content--profile .aew-content__heading + .aew-block-text {
		width: 100%;
	}

	.aew-content__box {
		width: 100%;
	}

	.aew-content__head {
		margin-bottom: 30px;
	}

	.aew-content--boxed .aew-content__heading {
		margin-bottom: -10px;
	}
}
