/* The architecture photograph is decorative; a deep-green overlay keeps every
   link readable while allowing the glazing and garden to remain visible. */
.ew-footer {
	background-image: linear-gradient(90deg, rgb(19 42 31 / 0.97) 0%, rgb(19 42 31 / 0.91) 43%, rgb(19 42 31 / 0.72) 100%), url('../img/brand/footer-architecture.webp');
	background-position: center, center;
	background-size: cover;
	color: #faf7f2;
	padding-top: clamp(3.5rem, 7vw, 7rem);
}

.ew-footer__inner {
	position: relative;
}

.ew-footer .ew-wordmark--brand {
	margin-bottom: 1.5rem;
}

.ew-footer .ew-wordmark--brand .ew-wordmark__lockup {
	width: min(15rem, 100%);
}

.ew-footer__intro {
	max-width: 36rem;
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.ew-footer .ew-footer__statement {
	max-width: 16ch;
	margin: 0 0 0.8rem;
	font-family: var(--ew-font-display);
	font-size: clamp(2.4rem, 5vw, 4.5rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: #faf7f2;
}

.ew-footer .ew-footer__place {
	max-width: 30rem;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgb(250 247 242 / 0.82);
}

.ew-footer ul.ew-footer__social {
	margin-top: 1.5rem;
}

.ew-footer__grid {
	grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	padding-block: clamp(2.25rem, 4vw, 3.5rem);
	border-top: 1px solid rgb(250 247 242 / 0.26);
}

.ew-footer__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 4rem);
}

.ew-footer h2 {
	margin: 0 0 1.25rem;
	font-family: var(--ew-font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgb(250 247 242 / 0.68);
}

.ew-footer ul {
	gap: 0.75rem;
}

.ew-footer li a,
.ew-footer__contact p a,
.ew-footer__contact-secondary a {
	color: #faf7f2;
	text-decoration: none;
	text-underline-offset: 0.3em;
}

.ew-footer li a:hover,
.ew-footer__contact p a:hover,
.ew-footer__contact-secondary a:hover {
	color: #faf7f2;
	text-decoration: underline;
}

.ew-footer__contact {
	margin: 0;
	padding: 0;
	border: 0;
}

.ew-footer__contact p {
	margin: 0 0 0.55rem;
}

.ew-footer .ew-footer__contact-primary {
	font-family: var(--ew-font-display);
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	font-weight: 600;
}

.ew-footer__contact-secondary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.2rem;
	margin-top: 1.25rem;
	font-size: 0.84rem;
}

.ew-footer .ew-footer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.75rem;
	min-height: 44px;
	margin-top: 1.75rem;
	padding: 0.75rem 1.1rem;
	border-radius: 999px;
	background: #faf7f2;
	color: #143528;
	font-weight: 700;
	text-decoration: none;
}

.ew-footer .ew-footer__cta:hover {
	background: #e8d9b8;
	color: #143528;
}

.ew-footer__legal {
	margin: 0;
	padding-top: 1.25rem;
	border-color: rgb(250 247 242 / 0.26);
}

.ew-footer__legal p {
	max-width: none;
}

@media (max-width: 48em) {
	.ew-footer {
		background-image: linear-gradient(180deg, rgb(19 42 31 / 0.90), rgb(19 42 31 / 0.97) 45%), url('../img/brand/footer-architecture.webp');
		background-position: center, 66% top;
	}
	.ew-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 30em) {
	.ew-footer__nav {
		grid-template-columns: minmax(0, 1fr);
	}
	.ew-footer__contact p a {
		overflow-wrap: anywhere;
	}
}
