/*
 * Site footer: brand and contact details, two link columns, and the enquiry
 * form, over a deep brand gradient with a thin accent line on top.
 */

.am-footer {
	position: relative;
	background:
		radial-gradient(900px 420px at 12% -10%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(170deg, var(--am-green-dark) 0%, #176a24 55%, #10521c 100%);
	color: var(--am-on-dark);
}

.am-footer::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--am-green) 0%, var(--am-yellow) 50%, var(--am-green) 100%);
}

/* Buttons are excluded: they carry their own colours, and this file loads
   after the component, so a bare `.am-footer a` rule would repaint them. */
.am-footer a:not(.am-btn) {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
	transition: color var(--am-fast) var(--am-ease);
}

.am-footer a:not(.am-btn):hover,
.am-footer a:not(.am-btn):focus-visible {
	color: var(--am-yellow);
	text-decoration: none;
}

.am-footer-main {
	padding: 40px 0 28px;
}

.am-footer-grid {
	display: grid;
	gap: 32px 40px;
	grid-template-columns: 1.35fr 0.85fr 1fr 1.05fr;
	align-items: start;
}

/* ---------------------------------------------------------- brand column */
.am-footer-logo {
	width: 148px;
	height: auto;
	margin-bottom: 10px;
}

.am-footer-blurb {
	margin: 0 0 12px;
	max-width: 36ch;
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--am-text-sm);
	line-height: 1.45;
}

.am-footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.am-footer-contact li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 6px;
	color: rgba(255, 255, 255, 0.88);
	font-size: var(--am-text-sm);
	line-height: 1.35;
}

.am-footer-contact .am-icon {
	flex: 0 0 auto;
	margin-top: 3px;
	width: 16px;
	height: 16px;
	color: #8fe39b;
}

/* ----------------------------------------------------------- link columns */
.am-footer-title {
	position: relative;
	margin: 0 0 12px;
	padding-bottom: 8px;
	color: var(--am-on-dark);
	font-size: var(--am-text-sm);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.am-footer-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 32px;
	height: 2px;
	background: #8fe39b;
}

.am-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.am-footer-links li {
	margin: 0 0 4px;
}

.am-footer-links a {
	position: relative;
	display: inline-block;
	padding-left: 0;
	font-size: var(--am-text-sm);
	line-height: 1.35;
	transition: padding-left var(--am-fast) var(--am-ease), color var(--am-fast) var(--am-ease);
}

.am-footer-links a::before {
	content: "›";
	position: absolute;
	left: -12px;
	opacity: 0;
	transition: opacity var(--am-fast) var(--am-ease);
}

.am-footer-links a:hover {
	padding-left: 8px;
}

.am-footer-links a:hover::before {
	opacity: 1;
}

/* ---------------------------------------------------------------- socials */
.am-footer-social-row {
	display: flex;
	gap: var(--am-space-2);
	margin-top: 10px;
}

.am-footer-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: var(--am-on-dark);
	font-size: var(--am-text-sm);
	transition: background var(--am-fast) var(--am-ease), color var(--am-fast) var(--am-ease), transform var(--am-fast) var(--am-ease);
}

.am-footer-social:hover {
	transform: translateY(-2px);
	background: var(--am-surface);
	color: var(--am-green-dark);
}

/* ---------------------------------------------------------- office column */
.am-office-list {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.am-office-list li {
	margin: 0 0 10px;
	padding-left: 12px;
	border-left: 2px solid rgba(255, 255, 255, 0.28);
}

.am-office-list-name {
	display: block;
	margin-bottom: 2px;
	color: var(--am-on-dark);
	font-size: var(--am-text-sm);
	font-weight: 600;
}

.am-office-list-phone {
	display: inline-flex;
	gap: var(--am-space-2);
	align-items: center;
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--am-text-sm);
}

.am-office-list-phone .am-icon {
	width: 14px;
	height: 14px;
	color: #8fe39b;
}

.am-footer-cta {
	width: 100%;
	justify-content: center;
}

/* ------------------------------------------------------------- bottom bar */
.am-footer-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.am-footer-bar .am-container {
	display: flex;
	flex-wrap: wrap;
	gap: var(--am-space-4);
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	padding-bottom: 12px;
}

.am-copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
}

.am-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--am-space-4);
	align-items: center;
	font-size: 13px;
}

.am-to-top {
	display: inline-flex;
	gap: var(--am-space-2);
	align-items: center;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--am-radius-pill);
	font-size: 13px;
}

.am-to-top:hover {
	background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
	.am-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.am-footer-main {
		padding: 32px 0 24px;
	}

	.am-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.am-footer-bar .am-container {
		flex-direction: column;
		align-items: flex-start;
	}
}
