/* =========================================================
   HOME SERVICES SECTION
========================================================= */

.alston-home-services {
	position: relative;
	width: 100%;
	padding: 140px 0;
	background: #141210;
	overflow: hidden;
}

.alston-home-services * {
	box-sizing: border-box;
}

.alston-home-services__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding-left: 64px;
	padding-right: 64px;
	position: relative;
	z-index: 2;
}

/* =========================================================
   TOP
========================================================= */

.alston-home-services__top {
	display: grid;
	grid-template-columns: 52px minmax(0, 860px) 420px;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 64px;
}

.alston-home-services__label {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #7E6C56;
	font-weight: 600;
	align-self: flex-end;
	padding-bottom: 4px;
}

.alston-home-services__heading {
	margin: 0;
	color: #F4EFE7;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(42px, 5vw, 78px);
	line-height: 1;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.alston-home-services__heading em {
	font-style: italic;
	color: #C9A961;
}

.alston-home-services__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 24px;
	padding-top: 8px;
}

.alston-home-services__top-button {
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: 16px 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	background: transparent;
	transition:
		background 0.35s ease,
		border-color 0.35s ease,
		color 0.35s ease;
}

.alston-home-services__top-button:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #141210;
}

.alston-home-services__description {
	max-width: 240px;
	color: #8F8170;
	font-size: 13px;
	line-height: 24px;
	font-weight: 400;
	text-align: right;
}

/* =========================================================
   RULE
========================================================= */

.alston-home-services__rule {
	width: 100%;
	height: 1px;
	background: #2E2820;
	margin-bottom: 0;
}

/* =========================================================
   GRID
========================================================= */

.alston-home-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-left: 1px solid #2E2820;
}

/* =========================================================
   CARD
========================================================= */

.alston-home-services__card {
	position: relative;
	border-right: 1px solid #2E2820;
	border-bottom: 1px solid #2E2820;
	background: transparent;
	overflow: hidden;
}

.alston-home-services__card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 0;
	background: #C9A961;
	transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 0;
}

.alston-home-services__card:hover::after {
	height: 100%;
}

.alston-home-services__card-inner {
	position: relative;
	z-index: 2;
	padding: 34px 30px 30px;
}

.alston-home-services__number {
	margin-bottom: 24px;
	color: #6F5F4A;
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: color 0.35s ease;
}

.alston-home-services__card:hover .alston-home-services__number {
	color: #6E532C;
}

.alston-home-services__image-wrap {
	display: block;
	width: 100%;
	margin-bottom: 24px;
	overflow: hidden;
	background: #1B1815;
	aspect-ratio: 1.45 / 1;
}

.alston-home-services__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.alston-home-services__card:hover .alston-home-services__image {
	transform: scale(1.06);
}

.alston-home-services__card-title {
	margin: 0 0 16px;
}

.alston-home-services__card-title a {
	color: #F4EFE7;
	text-decoration: none;
	font-family: "Cormorant Garamond", serif;
	font-size: 34px;
	line-height: 38px;
	font-weight: 500;
	letter-spacing: -0.015em;
	transition: color 0.35s ease;
}

.alston-home-services__card-description {
	color: #8F8170;
	font-size: 14px;
	line-height: 26px;
	font-weight: 400;
	transition: color 0.35s ease;
}

.alston-home-services__card-link {
	margin-top: 22px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #6F5F4A;
	text-decoration: none;
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition:
		color 0.35s ease,
		gap 0.35s ease;
}

.alston-home-services__card-link::after {
	content: "→";
	font-size: 12px;
	line-height: 1;
}

.alston-home-services__card:hover .alston-home-services__card-title a,
.alston-home-services__card:hover .alston-home-services__card-description,
.alston-home-services__card:hover .alston-home-services__card-link {
	color: #141210;
}

.alston-home-services__card:hover .alston-home-services__card-link {
	gap: 16px;
}

/* =========================================================
   FOOTER
========================================================= */

.alston-home-services__footer {
	grid-column: 1 / -1;
	padding: 38px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	border-right: 1px solid #2E2820;
	border-bottom: 1px solid #2E2820;
}

.alston-home-services__footer-title {
	margin: 0;
	color: #F4EFE7;
	font-family: "Cormorant Garamond", serif;
	font-size: 34px;
	line-height: 1.1;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.015em;
}

.alston-home-services__footer-description {
	margin-top: 6px;
	color: #8F8170;
	font-size: 13px;
	line-height: 24px;
	font-weight: 400;
}

.alston-home-services__footer-button {
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: 16px 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	background: transparent;
	transition:
		background 0.35s ease,
		border-color 0.35s ease,
		color 0.35s ease;
}

.alston-home-services__footer-button:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #141210;
}

/* =========================================================
   ENTRANCE ANIMATION
========================================================= */

.alston-home-services-reveal {
	opacity: 0;
	transform: translateY(42px);
	transition:
		opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.alston-home-services-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.alston-home-services__grid .alston-home-services-reveal:nth-child(1) {
	transition-delay: 0.05s;
}

.alston-home-services__grid .alston-home-services-reveal:nth-child(2) {
	transition-delay: 0.1s;
}

.alston-home-services__grid .alston-home-services-reveal:nth-child(3) {
	transition-delay: 0.15s;
}

.alston-home-services__grid .alston-home-services-reveal:nth-child(4) {
	transition-delay: 0.2s;
}

.alston-home-services__grid .alston-home-services-reveal:nth-child(5) {
	transition-delay: 0.25s;
}

.alston-home-services__grid .alston-home-services-reveal:nth-child(6) {
	transition-delay: 0.3s;
}

/* =========================================================
   LAPTOP
========================================================= */

@media (min-width: 1025px) and (max-width: 1366px) {

	.alston-home-services {
		padding: 120px 0;
	}

	.alston-home-services__inner {
		padding-left: 40px;
		padding-right: 40px;
	}

	.alston-home-services__top {
		grid-template-columns: 70px minmax(0, 1fr) 220px;
	}

	.alston-home-services__card-title a {
		font-size: 30px;
		line-height: 34px;
	}
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

	.alston-home-services {
		padding: 100px 0;
	}

	.alston-home-services__inner {
		padding-left: 28px;
		padding-right: 28px;
	}

	.alston-home-services__top {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-bottom: 56px;
	}

	.alston-home-services__label {
		writing-mode: initial;
		transform: none;
		padding-bottom: 0;
	}

	.alston-home-services__side {
		align-items: flex-start;
	}

	.alston-home-services__description {
		max-width: 420px;
		text-align: left;
	}

	.alston-home-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.alston-home-services__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.alston-home-services__card-title a {
		font-size: 30px;
		line-height: 34px;
	}
}

/* =========================================================
   MOBILE LARGE
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {

	.alston-home-services {
		padding: 82px 0;
	}

	.alston-home-services__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.alston-home-services__top {
		grid-template-columns: 1fr;
		gap: 26px;
		margin-bottom: 42px;
	}

	.alston-home-services__label {
		writing-mode: initial;
		transform: none;
		font-size: 10px;
	}

	.alston-home-services__side {
		align-items: flex-start;
	}

	.alston-home-services__description {
		max-width: 100%;
		text-align: left;
	}

	.alston-home-services__grid {
		grid-template-columns: 1fr;
	}

	.alston-home-services__card-title a {
		font-size: 30px;
		line-height: 34px;
	}

	.alston-home-services__footer {
		padding: 34px 24px;
		flex-direction: column;
		align-items: flex-start;
	}

	.alston-home-services__footer-title {
		font-size: 30px;
	}
	
		.alston-home-services__top-button {
		width: 100%;
	}
}

/* =========================================================
   MOBILE SMALL
========================================================= */

@media (min-width: 0px) and (max-width: 480px) {

	.alston-home-services {
		padding: 72px 0;
	}

	.alston-home-services__inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.alston-home-services__top {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 38px;
	}

	.alston-home-services__label {
		writing-mode: initial;
		transform: none;
		font-size: 10px;
		letter-spacing: 0.24em;
	}

	.alston-home-services__side {
		align-items: flex-start;
	}

	.alston-home-services__description {
		max-width: 100%;
		font-size: 13px;
		line-height: 24px;
		text-align: left;
	}

	.alston-home-services__grid {
		grid-template-columns: 1fr;
	}

	.alston-home-services__card-inner {
		padding: 28px 22px 24px;
	}

	.alston-home-services__number {
		margin-bottom: 18px;
	}

	.alston-home-services__image-wrap {
		margin-bottom: 20px;
	}

	.alston-home-services__card-title a {
		font-size: 28px;
		line-height: 32px;
	}

	.alston-home-services__card-description {
		font-size: 14px;
		line-height: 24px;
	}

	.alston-home-services__footer {
		padding: 30px 22px;
		flex-direction: column;
		align-items: flex-start;
	}

	.alston-home-services__footer-title {
		font-size: 28px;
		line-height: 32px;
	}

	.alston-home-services__footer-description {
		font-size: 13px;
		line-height: 23px;
	}

	.alston-home-services__footer-button {
		width: 100%;
		padding: 18px 24px;
	}
}