/**
 * Pieces every inner page of the design is built from.
 *
 * The grey intro band (About, the two service pages, Contact), the plain page title (Team, Sold,
 * Leased, Video Channel), and the card that every grid on those pages uses: a photo with 4px corners,
 * a red 8px marker under its right edge, then a title and a line or two of detail.
 *
 * Measured from https://allardsheltondemo2.framer.website/ in October 2026 at 1440, 1200, 810 and 390.
 */

.as-page {
	--as-page-ink: #101a2e;          /* every heading and paragraph on the inner pages */
	--as-page-muted: #6a635d;        /* listing type, team roles, the team intro */
	--as-page-band: #e3e3e3;         /* the intro band; Contact's is #e2e2e2, see below */
	--as-page-marker: #ee2c3d;       /* the card marker and the statement rule; one off --as-red */
	--as-page-border: #d9d9d9;
}

/* The home page's copy is set in 500; the inner pages' running text is 400 throughout. */
.as-page .as-main {
	font-weight: 400;
}

/* ---------------------------------------------------------------------------------------------
 * The intro band.
 *
 * A heading on the left of the 1110 column and a 468 text column pushed to its right edge. Three
 * versions: About sets its heading at 56/84 with a 32 gap, the two service pages at 56/78.4 with
 * an 8 gap, and Contact at 72 with its own colour and a narrower 460 column.
 * ------------------------------------------------------------------------------------------- */

.as-intro {
	display: flex;
	justify-content: center;
	padding: 196px 32px 144px;
	background: var(--as-page-band);
	color: var(--as-page-ink);
}

/*
 * Photograph behind the intro, as on Sale / Lease and the live About page. The overlay keeps the
 * white type readable; the inner column sits above both.
 */
.as-intro--photo {
	position: relative;
	overflow: hidden;
	background: #0a1329;
	color: var(--as-white);
}

.as-intro__photo,
.as-intro__photo img,
.as-intro__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.as-intro__photo img {
	object-fit: cover;
	object-position: center;
}

.as-intro__overlay {
	background: linear-gradient(rgba(8, 14, 28, 0.55) 0%, rgba(8, 14, 28, 0.35) 45%, rgba(8, 14, 28, 0.65) 100%);
	pointer-events: none;
}

.as-intro--photo .as-intro__inner {
	position: relative;
	z-index: 1;
}

.as-intro__inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: var(--as-container-narrow);
}

.as-intro__title {
	margin: 0;
	font-size: 56px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.as-intro__row {
	display: flex;
	justify-content: flex-end;
}

.as-intro__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 468px;
}

/*
 * A page with a button puts it under the heading on the left, level with the text on the right.
 * Both columns start at the top of the row.
 */
.as-intro__row--cta {
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	margin-top: 16px;
}

.as-intro__cta {
	flex: 0 0 auto;
	height: 48px;
}

.as-intro__text p {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.as-intro--about .as-intro__inner {
	gap: 32px;
}

.as-intro--about .as-intro__title {
	line-height: 1.5;
}

.as-intro--about .as-intro__text {
	gap: 18px;
}

.as-intro--contact {
	background: #e2e2e2;
	color: var(--as-ink);
}

.as-intro--contact .as-intro__title {
	font-size: 72px;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.as-intro--contact .as-intro__text {
	width: 460px;
}

.as-intro--contact .as-intro__text p {
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
}

/* ---------------------------------------------------------------------------------------------
 * The plain page title, on the pages that open straight onto their content.
 * ------------------------------------------------------------------------------------------- */

.as-page-title {
	margin: 0;
	font-size: 56px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--as-page-ink);
}

/* The white block those pages sit in: 196 from the top, so the title clears the fixed header. */
.as-page-body {
	display: flex;
	justify-content: center;
	padding: 196px 32px 120px;
}

.as-page-body__inner {
	display: flex;
	flex-direction: column;
	gap: 72px;
	width: 100%;
	max-width: var(--as-container-narrow);
}

/*
 * A bulleted list as the design draws one: no list marker, a "•" in the first 1.256em of padding.
 */
.as-bullets {
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-bullets li {
	position: relative;
	padding-left: 1.256em;
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: -0.01em;
}

.as-bullets li::before {
	position: absolute;
	left: 0;
	content: "•";
}

/* ---------------------------------------------------------------------------------------------
 * The card.
 *
 * The marker is a sibling above the text, aligned to the end, so it sits under the photo's right
 * edge and pushes the text down by its own 8px. The team card aligns it to the start instead and
 * indents the text, which is the only difference between the two.
 * ------------------------------------------------------------------------------------------- */

.as-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	color: var(--as-page-ink);
	text-decoration: none;
}

.as-card__photo {
	position: relative;
	overflow: hidden;
	height: var(--as-card-photo-h, 207px);
	border-radius: 4px;
	background: #e3e3e3;
}

.as-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.as-card__info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.as-card__marker {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 1px;
	background: var(--as-page-marker);
}

.as-card__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: stretch;
}

.as-card__heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.as-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.as-card__sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.25;
}

/* The badge in the photo's top-left corner: Sale, Lease, Sold, Leased. */
.as-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(2, 8, 22, 0.8);
}

.as-card__badge p {
	margin: 0;
	font-size: 12px;
	line-height: 1.32;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--as-mist);
}

@media (max-width: 1199px) {
	.as-intro {
		padding: 160px 32px 96px;
	}

	.as-intro__title {
		font-size: 48px;
	}

	.as-intro--about .as-intro__inner {
		gap: 40px;
	}

	.as-intro--about .as-intro__title {
		font-size: 56px;
	}

	/* At 746 wide the About heading fits on one line, and the design lets it. */
	.as-intro--about .as-intro__break {
		display: none;
	}

	.as-intro--contact .as-intro__title {
		font-size: 60px;
	}

	.as-page-body {
		padding: 160px 32px 96px;
	}

	.as-page-body__inner {
		gap: 56px;
	}

	.as-page-title {
		font-size: 48px;
	}
}

@media (max-width: 809px) {
	.as-intro {
		padding: 128px 20px 56px;
	}

	.as-intro__inner,
	.as-intro--about .as-intro__inner {
		gap: 24px;
	}

	.as-intro__title {
		font-size: 36px;
		line-height: 1.25;
	}

	.as-intro--about .as-intro__title {
		font-size: 40px;
		line-height: 1.3;
	}

	.as-intro--about .as-intro__break {
		display: inline;
	}

	.as-intro__row {
		justify-content: flex-start;
	}

	.as-intro__row--cta {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		margin-top: 0;
	}

	.as-intro__cta {
		height: auto;
		min-height: 48px;
		padding-top: 8px;
		padding-bottom: 8px;
		white-space: normal;
	}

	.as-intro__text,
	.as-intro--contact .as-intro__text {
		width: 100%;
	}

	.as-intro--contact {
		padding-top: 136px;
	}

	.as-intro--contact .as-intro__inner {
		gap: 16px;
	}

	.as-intro--contact .as-intro__title {
		font-size: 44px;
		line-height: 1.15;
	}

	.as-page-body {
		padding: 128px 20px 80px;
	}

	.as-page-body__inner {
		gap: 40px;
	}

	.as-page-title {
		font-size: 36px;
	}
}
