/**
 * About Us page styles.
 */

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.dit-about-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(420px, 62vh, 580px);
	padding-block: clamp(3rem, 7vw, 5.25rem);
	background-color: #eef5f6;
	background-image: url("../assets/img/about-hero.png");
	background-repeat: no-repeat;
	background-position: center right;
	background-size: cover;
}

.dit-about-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(247, 251, 251, 0.97) 0%,
		rgba(247, 251, 251, 0.92) 36%,
		rgba(247, 251, 251, 0.55) 54%,
		rgba(247, 251, 251, 0.12) 70%,
		transparent 84%
	);
}

.dit-about-hero::after {
	content: "";
	position: absolute;
	right: -8%;
	bottom: -22%;
	width: min(50vw, 520px);
	height: min(32vw, 260px);
	background: var(--dit-teal);
	border-radius: 55% 45% 0 70% / 70% 40% 0 60%;
	opacity: 0.95;
	z-index: 0;
	pointer-events: none;
	transform: translateY(var(--dit-hero-shift, 0)) rotate(-8deg);
	will-change: transform;
}

.dit-about-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	align-items: center;
	width: 100%;
	min-height: inherit;
}

.dit-about-hero__content {
	position: relative;
	z-index: 2;
	max-width: 38rem;
	opacity: 0;
	transform: translateY(1.1rem);
	animation: dit-about-hero-in 0.85s var(--dit-ease) forwards;
	animation-delay: 0.08s;
}

.dit-about-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.1rem;
	color: var(--dit-teal);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.dit-about-hero__title {
	color: var(--dit-navy);
	font-size: clamp(2rem, 4.2vw, 3.05rem);
	line-height: 1.15;
	margin: 0 0 1.15rem;
	max-width: 16ch;
}

.dit-about-hero__title-accent,
.dit-about-hero__title em {
	color: var(--dit-teal);
	font-style: normal;
}

.dit-about-hero__lead {
	color: var(--dit-navy);
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	line-height: 1.6;
	margin: 0 0 0.9rem;
	max-width: 34rem;
	font-weight: 600;
}

.dit-about-hero__text {
	color: var(--dit-muted);
	font-size: clamp(1rem, 1.6vw, 1.1rem);
	line-height: 1.65;
	margin: 0;
	max-width: 36rem;
}

@keyframes dit-about-hero-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1023px) {
	.dit-about-hero {
		background-position: 70% center;
		background-size: cover;
		min-height: auto;
		padding-bottom: 3.25rem;
	}

	.dit-about-hero::before {
		background: linear-gradient(
			180deg,
			rgba(247, 251, 251, 0.97) 0%,
			rgba(247, 251, 251, 0.94) 55%,
			rgba(247, 251, 251, 0.82) 100%
		);
	}

	.dit-about-hero__title {
		max-width: 18ch;
	}

	.dit-about-hero::after {
		width: 70vw;
		height: 110px;
		right: -28%;
		bottom: -18%;
		opacity: 0.45;
	}
}

/* -------------------------------------------------------------------------- */
/* Who we are                                                                 */
/* -------------------------------------------------------------------------- */

.dit-about-who {
	background: var(--dit-white);
}

.dit-about-who__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
	width: 100%;
}

.dit-about-who__content {
	max-width: 38rem;
}

.dit-about-who .dit-section__title {
	max-width: 18ch;
}

.dit-about-who .dit-section__text {
	margin-bottom: 1rem;
}

.dit-about-who__closing {
	margin-bottom: 0;
	padding-top: 1.15rem;
	border-top: 1px solid var(--dit-line);
	color: var(--dit-navy);
	font-weight: 600;
}

.dit-about-who__media {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(11, 42, 74, 0.1);
}

.dit-about-who__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
}

@media (max-width: 900px) {
	.dit-about-who__grid {
		grid-template-columns: 1fr;
	}

	.dit-about-who__media img {
		min-height: 240px;
	}
}

/* -------------------------------------------------------------------------- */
/* Purpose                                                                    */
/* -------------------------------------------------------------------------- */

.dit-about-purpose {
	background: var(--dit-white);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.dit-about-purpose__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	padding: clamp(2.25rem, 5vw, 3.75rem);
	border-radius: 22px;
	background:
		linear-gradient(115deg, rgba(13, 115, 119, 0.94) 0%, rgba(13, 115, 119, 0.84) 48%, rgba(10, 74, 90, 0.78) 100%),
		url("../assets/img/why.jpg") center / cover no-repeat;
	color: var(--dit-white);
}

.dit-about-purpose__panel::after {
	content: "";
	position: absolute;
	right: -6%;
	bottom: -28%;
	width: min(42vw, 340px);
	height: min(28vw, 200px);
	border-radius: 50% 50% 0 60%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.dit-about-purpose__copy {
	position: relative;
	z-index: 1;
	max-width: 44rem;
}

.dit-about-purpose__copy .dit-section__title {
	max-width: 22ch;
}

.dit-about-purpose__copy .dit-section__text {
	margin-inline: 0;
	max-width: 42rem;
}

.dit-about-purpose__copy .dit-section__text:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Approach                                                                   */
/* -------------------------------------------------------------------------- */

.dit-about-approach {
	background: #f5f8f9;
}

.dit-about-approach .dit-section__title {
	max-width: 20ch;
	margin-bottom: 2rem;
}

.dit-approach-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--dit-line);
}

.dit-approach-list__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem 1.15rem;
	padding: 1.65rem 1.35rem 1.65rem 0;
	border-bottom: 1px solid var(--dit-line);
}

.dit-approach-list__item:nth-child(odd) {
	padding-right: 1.75rem;
	border-right: 1px solid var(--dit-line);
}

.dit-approach-list__item:nth-child(even) {
	padding-left: 1.75rem;
}

.dit-approach-list__index {
	color: var(--dit-teal);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.dit-approach-list__title {
	margin: 0 0 0.45rem;
	color: var(--dit-navy);
	font-size: 1.15rem;
	line-height: 1.3;
}

.dit-approach-list__text {
	margin: 0;
	color: var(--dit-muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

@media (max-width: 800px) {
	.dit-approach-list {
		grid-template-columns: 1fr;
	}

	.dit-approach-list__item,
	.dit-approach-list__item:nth-child(odd),
	.dit-approach-list__item:nth-child(even) {
		padding: 1.4rem 0;
		border-right: 0;
	}
}

/* -------------------------------------------------------------------------- */
/* Values                                                                     */
/* -------------------------------------------------------------------------- */

.dit-about-values {
	background: var(--dit-white);
}

.dit-about-values .dit-section__title {
	max-width: 16ch;
	margin-bottom: 2rem;
}

.dit-values-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--dit-line);
}

.dit-value {
	padding: 1.75rem 1.5rem 1.75rem 0;
	border-bottom: 1px solid var(--dit-line);
}

.dit-value:nth-child(odd) {
	padding-right: 1.75rem;
	border-right: 1px solid var(--dit-line);
}

.dit-value:nth-child(even) {
	padding-left: 1.75rem;
}

.dit-value__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 3.75rem;
	margin-bottom: 0.85rem;
	border-radius: 50%;
	background: var(--dit-mist);
	color: var(--dit-teal);
}

.dit-value__icon svg {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
}

.dit-value__title {
	margin: 0 0 0.5rem;
	color: var(--dit-navy);
	font-size: 1.2rem;
	line-height: 1.3;
}

.dit-value__text {
	margin: 0;
	color: var(--dit-muted);
	font-size: 0.98rem;
	line-height: 1.6;
	max-width: 28rem;
}

@media (max-width: 800px) {
	.dit-values-grid {
		grid-template-columns: 1fr;
	}

	.dit-value,
	.dit-value:nth-child(odd),
	.dit-value:nth-child(even) {
		padding: 1.4rem 0;
		border-right: 0;
	}
}

/* -------------------------------------------------------------------------- */
/* Desktop: close the Approach and Values grids with left / right edge lines  */
/* (two-column layout only; single column below 800px is unchanged)           */
/* -------------------------------------------------------------------------- */

@media (min-width: 801px) {
	.dit-approach-list,
	.dit-values-grid {
		border-left: 1px solid var(--dit-line);
		border-right: 1px solid var(--dit-line);
	}

	/* Keep text clear of the new edge lines */
	.dit-approach-list__item:nth-child(odd),
	.dit-value:nth-child(odd) {
		padding-left: 1.75rem;
	}

	.dit-approach-list__item:nth-child(even),
	.dit-value:nth-child(even) {
		padding-right: 1.75rem;
	}
}

/* -------------------------------------------------------------------------- */
/* Connect CTA                                                                */
/* -------------------------------------------------------------------------- */

.dit-about-connect {
	background: #f5f8f9;
}

.dit-about-connect__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: center;
	width: 100%;
}

.dit-about-connect__copy {
	max-width: 38rem;
}

.dit-about-connect .dit-section__title {
	max-width: 18ch;
}

.dit-about-connect .dit-section__text {
	margin-bottom: 1rem;
}

.dit-about-connect__actions {
	margin-top: 0.5rem;
}

.dit-about-connect__media {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(11, 42, 74, 0.1);
}

.dit-about-connect__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

@media (max-width: 900px) {
	.dit-about-connect__inner {
		grid-template-columns: 1fr;
	}

	.dit-about-connect__media img {
		min-height: 240px;
	}
}

@media (max-width: 520px) {
	.dit-about-connect__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.dit-about-connect__actions .wp-block-button,
	.dit-about-connect__actions .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* -------------------------------------------------------------------------- */
/* Reduced motion                                                             */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dit-about-hero__content {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Block-editor conversion: explicit margins                                  */
/* These elements used to sit in Custom HTML blocks. As core blocks they live */
/* in flow-layout groups, so block-gap margins are reset here.                */
/* -------------------------------------------------------------------------- */

.dit-approach-list__item,
.dit-approach-list__index,
.dit-approach-list__body,
.dit-value {
	margin-block: 0;
}

.dit-value__icon {
	margin-block-start: 0;
}
