/*
 * The text and content components (template/text/, category «متن و محتوا»).
 * base.css comes first.
 */

/* text-1, text-2: text beside a picture. */
.hd-split-in {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 3.5rem 4.5rem;
	align-items: center;
}

@media (min-width: 992px) {
	.hd-split.is-start .hd-split-in {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	}

	.hd-split.is-start .hd-split-media {
		order: -1;
	}
}

.hd-split-sub {
	margin-top: 1.6rem;
}

.hd-split-text > .step-title + .hd-split-sub,
.hd-story-text > .hd-split-sub:first-child {
	margin-top: 0;
}

.hd-split-media {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 1.7rem 0;
}

.hd-photo {
	position: relative;
	width: 100%;
	max-width: 27rem;
	aspect-ratio: 1;
	object-fit: cover;
	border: .55rem solid #fff;
	border-radius: 3.1rem;
	box-shadow: 0 2.85rem 5rem -2.6rem rgba(19, 53, 80, .55), 0 0 0 1px #E2EEF8;
}

.hd-round {
	position: relative;
	width: 100%;
	max-width: 27rem;
	aspect-ratio: 1;
	padding: 1.3rem;
	border-radius: 50%;
	background: #F6FBFF;
	box-shadow: inset 5rem 5rem 10rem -9rem #D9EBF9, 0 2.85rem 5rem -2.85rem rgba(19, 53, 80, .4);
}

.hd-round img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

/* The features under the text of text-2, in two columns. */
.hd-feats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2.3rem;
	margin-top: 1.6rem;
}

.hd-feats li {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #D5E5F0;
}

.hd-feats .hd-ic {
	--s: 3.15rem;
}

.hd-feats b,
.hd-feats small {
	display: block;
}

.hd-feats b {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--hd-ink);
}

.hd-feats small {
	margin-top: .1rem;
	font-size: .9rem;
	font-weight: 500;
	color: var(--hd-text);
}

/* text-3: a centred statement. */
.hd-intro {
	text-align: center;
}

.hd-intro-mark {
	width: 4.6rem;
	height: 4.6rem;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--hd-yellow);
	box-shadow: 0 0 0 .55rem rgba(255, 204, 0, .16);
}

.hd-intro-mark img {
	width: 2rem;
	height: auto;
}

.hd-intro-title {
	max-width: 62rem;
	margin: 1.5rem auto 0;
	font-size: 2.7rem;
	line-height: 1.75;
	font-weight: 800;
	color: var(--hd-navy);
	text-wrap: balance;
}

.hd-intro .hd-lead {
	max-width: 51rem;
	margin: 1.5rem auto 0;
	font-size: 1.15rem;
	text-align: center;
}

/* text-4: a story beside milestones. */
.hd-story-in {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.85rem 4rem;
	align-items: center;
}

.hd-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.45rem;
}

.hd-tiles li {
	padding: 1.7rem 1.7rem 1.55rem;
	border-radius: 2rem;
}

.hd-tiles .hd-ic {
	--s: 3.15rem;
}

.hd-tiles b,
.hd-stats-list b {
	display: block;
	font-weight: 800;
	line-height: 1.3;
	color: var(--hd-navy);
}

.hd-tiles b {
	margin-top: 1.15rem;
	font-size: 2.15rem;
}

.hd-tiles span:not(.hd-ic),
.hd-stats-list span:not(.hd-ic) {
	display: block;
	margin-top: .3rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--hd-text);
}

/* text-5: figures in cards. */
.hd-stats-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.85rem 1.7rem;
	padding-top: 1.3rem;
}

.hd-stats-list li {
	padding: 2.6rem 1.4rem 2.15rem;
	text-align: center;
}

.hd-stats-list .hd-ic {
	--s: 5.4rem;
	margin: 0 auto 1.6rem;
}

.hd-stats-list .hd-ic:not(.is-y) {
	color: #fff;
}

.hd-stats-list b {
	font-size: 2.3rem;
}

.hd-stats-list small {
	font-size: 1.3rem;
	font-weight: 700;
}

.hd-stats-list span:not(.hd-ic) {
	font-size: 1.05rem;
}

/* text-6: numbered steps joined by a dashed line. */
.hd-steps-list {
	display: grid;
	grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
	gap: 1.7rem;
}

.hd-steps-list li {
	padding: 1.85rem 1.7rem;
}

.hd-step-head {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin-bottom: 1.3rem;
}

.hd-step-head:not(.is-done)::after {
	content: "";
	flex: 1;
	border-top: 2px dashed #C6DAE9;
}

.hd-step-num,
.hd-step-done {
	width: 3.4rem;
	height: 3.4rem;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--hd-dark);
	color: #fff;
	font-size: 1.3rem;
	font-weight: 800;
}

.hd-step-done {
	position: relative;
	background: var(--hd-yellow);
	box-shadow: 0 0 0 .5rem rgba(255, 204, 0, .18);
}

.hd-step-done::after {
	content: "";
	width: 1.4rem;
	height: 1.4rem;
	background: var(--hd-dark);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hd-step-label {
	font-size: .9rem;
	font-weight: 700;
	color: var(--hd-text);
}

.hd-steps-list .hd-h3 {
	font-size: 1.15rem;
}

/* text-7: questions in two columns, the items of main.css (.qa). */
.hd-faq-title {
	margin-bottom: 3rem;
	text-align: center;
	font-size: 2rem;
	font-weight: 700;
	color: var(--hd-ink);
}

.hd-faq-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 3rem;
	align-items: start;
}

.hd-faq-help {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.1rem 1.4rem;
	border-radius: 2rem;
}

.hd-faq-help .hd-ic {
	--s: 2.6rem;
}

.hd-faq-help p {
	flex: 1;
	font-size: 1rem;
	font-weight: 700;
	color: var(--hd-ink);
}

/* text-8: a testimonial. */
.hd-quote-box {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	margin: 0;
	border-radius: 2.4rem;
}

.hd-quote-who {
	flex: 1 1 18rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.6rem;
	padding: 2.6rem 2.3rem;
	background: var(--hd-dark);
	color: #fff;
}

.hd-quote-logo {
	align-self: flex-start;
	padding: .6rem 1rem;
	border-radius: 1rem;
	background: #fff;
}

.hd-quote-logo img {
	max-height: 2.6rem;
	width: auto;
}

.hd-quote-person {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.hd-quote-person .hd-ic {
	--s: 4rem;
}

.hd-quote-photo img {
	width: 4rem;
	height: 4rem;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid var(--hd-yellow);
}

.hd-quote-person b,
.hd-quote-person small {
	display: block;
}

.hd-quote-person b {
	font-size: 1.2rem;
	font-weight: 800;
}

.hd-quote-person small {
	margin-top: .15rem;
	font-size: .93rem;
	font-weight: 500;
	color: #9EBFD7;
}

.hd-quote-text {
	position: relative;
	flex: 999 1 32rem;
	padding: 3.1rem 3.4rem 2.85rem;
}

.hd-quote-text::before {
	content: "\201D";
	display: block;
	height: 2.6rem;
	font-size: 5.5rem;
	line-height: 1;
	font-weight: 800;
	color: #D6E6F3;
}

.hd-quote-text blockquote {
	margin: 1.3rem 0 0;
	font-size: 1.5rem;
	line-height: 2;
	font-weight: 600;
	color: var(--hd-navy);
}

.hd-quote-service {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin-top: 1.6rem;
	font-size: .93rem;
	font-weight: 700;
	color: var(--hd-text);
}

.hd-quote-service::before {
	content: "";
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--hd-yellow);
}

@media (max-width: 991.98px) {
	.hd-split-in,
	.hd-story-in,
	.hd-faq-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.hd-split-in {
		gap: 1.5rem;
	}

	.hd-photo,
	.hd-round {
		max-width: 21rem;
	}

	.hd-stats-list,
	.hd-steps-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-intro-title {
		font-size: 2rem;
	}

	.hd-faq-title {
		font-size: 1.5rem;
	}

	.hd-quote-text {
		padding: 2.2rem 1.7rem 2rem;
	}

	.hd-quote-text blockquote {
		font-size: 1.2rem;
	}
}

@media (max-width: 575.98px) {
	.hd-feats,
	.hd-steps-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.hd-stats-list {
		gap: 2.2rem 1rem;
	}

	.hd-stats-list li {
		padding: 2rem .8rem 1.6rem;
	}

	.hd-stats-list .hd-ic {
		--s: 4rem;
		margin-bottom: 1rem;
	}

	.hd-stats-list b {
		font-size: 1.8rem;
	}

	.hd-tiles {
		gap: 1rem;
	}

	.hd-tiles li {
		padding: 1.3rem 1.1rem;
	}

	.hd-tiles b {
		font-size: 1.7rem;
	}

	.hd-faq-help {
		flex-wrap: wrap;
	}
}
