/* About page motion and structure. Copy, images, and colors stay in Elementor. */

.dm-about-hero {
	position: relative;
	overflow: hidden;
}

.dm-about-hero::before,
.dm-about-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.dm-about-hero::before {
	width: 28rem;
	height: 28rem;
	top: -12rem;
	right: -8rem;
	border: 1px solid rgba(143, 107, 48, 0.18);
	animation: dm-about-drift 22s ease-in-out infinite;
}

.dm-about-hero::after {
	width: 16rem;
	height: 16rem;
	left: -6rem;
	bottom: 4rem;
	background: rgba(231, 221, 210, 0.7);
	animation: dm-about-drift 26s ease-in-out infinite reverse;
}

.dm-about-hero > .e-con-inner,
.dm-about-banner {
	position: relative;
	z-index: 1;
}

/* Breadcrumb sits on the photograph, not in a band above it. */
.dm-about-hero.e-con {
	--padding-top: 0px;
	padding-top: 0 !important;
	padding-block-start: 0 !important;
}

.elementor-widget.dm-about-banner {
	--margin-top: 0px;
	margin-top: 0 !important;
}

.dm-about-hero > .e-con:first-child {
	position: absolute;
	z-index: 3;
	top: 1.35rem;
	left: 0;
	right: 0;
	width: 100%;
	pointer-events: none;
}

.dm-about-hero > .e-con:first-child .dm-about-crumb,
.dm-about-hero > .e-con:first-child a {
	pointer-events: auto;
}

.dm-about-hero::before {
	content: "" !important;
	top: 0;
	right: 0;
	left: 0;
	width: auto !important;
	height: 8.5rem !important;
	border: 0;
	border-radius: 0;
	background: linear-gradient(to bottom, rgba(42, 33, 24, 0.62), rgba(42, 33, 24, 0));
	animation: none;
	z-index: 2;
}

.dm-about-hero::after {
	content: none !important;
}

.dm-about-crumb p,
.dm-about-crumb a,
.dm-about-crumb__sep {
	color: #f4ece5;
	text-shadow: 0 1px 10px rgba(28, 20, 12, 0.4);
}

.dm-about-crumb p {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.dm-about-crumb a {
	text-decoration: none;
}

.dm-about-crumb a:hover,
.dm-about-crumb a:focus-visible {
	color: #ffffff;
}

.dm-about-crumb__sep {
	margin: 0 0.55rem;
}

.dm-about-photo {
	overflow: hidden;
	border-radius: 18px;
}

/* Specialty columns use the selected white card. */
.dm-about-specs > .e-con {
	background: #ffffff;
	border-radius: 20px;
	padding: 14px 14px 22px;
	box-shadow: 0 16px 40px rgba(58, 46, 36, 0.08);
	gap: 8px;
}

/* Doctors team keeps the original off-white section and the white specialty cards. */
.elementor-8 .elementor-element.elementor-element-1ff04d3:not(.elementor-motion-effects-element-type-background),
.elementor-8 .elementor-element.elementor-element-1ff04d3 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: #f4ece5;
}

.dm-doctors-team.dm-about-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.dm-doctors-team.dm-about-specs > .e-con {
	width: auto !important;
	max-width: none;
	background: #ffffff;
}

.elementor .dm-doctors-team > .e-con .elementor-widget-image img {
	height: 320px;
	object-fit: cover;
	object-position: center;
}

.elementor .dm-doctors-team > .e-con:nth-child(3) .elementor-widget-image img {
	object-position: 86% center;
}

@media (max-width: 767px) {
	.dm-doctors-team.dm-about-specs {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.elementor .dm-doctors-team > .e-con .elementor-widget-image img {
		height: 240px;
	}
}

.dm-about-specs > .e-con > .elementor-widget-image {
	margin-bottom: 8px;
}

.elementor .dm-about-specs > .e-con .dm-about-photo,
.elementor .dm-about-specs > .e-con .dm-about-photo img {
	border-radius: 18px;
}

.dm-about-photo.dm-about-banner,
.dm-about-photo.dm-about-banner img {
	border-radius: 0;
}

.dm-banner-end img {
	object-position: 78% center;
}

html.dm-animate .dm-reveal {
	opacity: 0;
	transform: translateY(18px);
	animation: dm-about-rise 0.8s ease forwards;
	animation-play-state: paused;
}

html.dm-animate .dm-reveal.is-in {
	animation-play-state: running;
}

.dm-about-photo img {
	transition: transform 0.7s ease;
}

.dm-about-photo:hover img,
.dm-about-photo:focus-within img {
	transform: scale(1.045);
}

.dm-about-parallax img {
	transform: scale(1.06);
	will-change: transform;
}

.dm-about-steps {
	position: relative;
}

.dm-about-steps::before {
	content: "";
	position: absolute;
	top: 27px;
	left: 7%;
	right: 7%;
	height: 1px;
	background: rgba(143, 107, 48, 0.35);
	transform-origin: left center;
	animation: dm-about-line 1.1s ease both;
}

.dm-about-step-num {
	position: relative;
	z-index: 1;
}

.dm-about-cta {
	position: relative;
	overflow: hidden;
}

.dm-about-cta::before {
	content: "";
	position: absolute;
	width: 22rem;
	height: 22rem;
	right: -6rem;
	top: -8rem;
	border: 1px solid rgba(244, 236, 229, 0.16);
	border-radius: 50%;
	pointer-events: none;
	animation: dm-about-drift 20s ease-in-out infinite;
}

.dm-about-cta > .e-con-inner {
	position: relative;
	z-index: 1;
}

@keyframes dm-about-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes dm-about-drift {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}

	50% {
		transform: translate3d(0, 18px, 0);
	}
}

@keyframes dm-about-line {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.dm-about-steps::before {
		display: none;
	}
}

@media (max-width: 767px) {
	.dm-about-steps::before {
		top: 0;
		bottom: 0;
		left: 27px;
		right: auto;
		width: 1px;
		height: auto;
		transform: none;
		animation: none;
	}

	.dm-about-hero > .e-con:first-child {
		top: 1rem;
	}
}

body .elementor .dm-about-why .dm-about-card .elementor-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-sizing: border-box;
	background-color: #d7e8f8;
	color: #3d6ea5;
}

body .elementor .dm-about-why .dm-about-card .elementor-icon svg {
	display: none;
}

body .elementor .dm-about-why .dm-about-card .elementor-icon::before {
	content: "";
	width: 28px;
	height: 28px;
	background-color: currentColor;
	-webkit-mask: var(--dm-icon) center / contain no-repeat;
	mask: var(--dm-icon) center / contain no-repeat;
}

body .elementor .dm-about-why .dm-about-card:nth-child(1) .elementor-icon {
	background-color: #fde8ee;
	color: #c45c78;
	--dm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19.2s-6.4-3.9-6.4-8.2a3.5 3.5 0 0 1 6.4-2 3.5 3.5 0 0 1 6.4 2c0 4.3-6.4 8.2-6.4 8.2z'/%3E%3C/svg%3E");
}

body .elementor .dm-about-why .dm-about-card:nth-child(2) .elementor-icon {
	background-color: #f8efd4;
	color: #9a7040;
	--dm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l8.2 4.5L12 12.5 3.8 8 12 3.5z'/%3E%3Cpath d='M3.8 12l8.2 4.5L20.2 12'/%3E%3Cpath d='M3.8 16l8.2 4.5 8.2-4.5'/%3E%3C/svg%3E");
}

body .elementor .dm-about-why .dm-about-card:nth-child(3) .elementor-icon {
	background-color: #d7e8f8;
	color: #3d6ea5;
	--dm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Cpath d='M12 7.2V13M7.5 10.2h9M12 13l-3.2 6.2M12 13l3.2 6.2'/%3E%3C/svg%3E");
}

body .elementor .dm-about-why .dm-about-card:nth-child(4) .elementor-icon {
	background-color: #e3f5ea;
	color: #2f8a62;
	--dm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 18.5C5.5 18.5 6.4 11.2 12 7.4 17.2 3.9 19 6.2 19 6.2s.6 5.4-2.6 9.2-10.9 3.1-10.9 3.1z'/%3E%3Cpath d='M9.2 14.8c1.8-1.8 3.6-4.4 5.4-7'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
	.dm-about-hero::before,
	.dm-about-hero::after,
	.dm-about-cta::before,
	.dm-about-steps::before,
	.dm-about-photo img,
	.dm-about-parallax img,
	html.dm-animate .dm-reveal {
		animation: none;
		transition: none;
		transform: none;
		opacity: 1;
	}
}

.dm-contact-form {
	display: grid;
	gap: 0.95rem;
	margin: 0;
	padding: 1.75rem 1.6rem;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(58, 46, 36, 0.07);
}

.dm-contact-form label {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	color: #8f6b30;
	font-family: Inter, sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.dm-contact-form input,
.dm-contact-form textarea {
	width: 100%;
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(143, 107, 48, 0.28);
	border-radius: 8px;
	background: #f4ece5;
	color: #000;
	font-family: Inter, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
}

.dm-contact-form textarea {
	min-height: 8.5rem;
	resize: vertical;
}

.dm-contact-form input:focus,
.dm-contact-form textarea:focus {
	outline: none;
	border-color: #8f6b30;
	box-shadow: 0 0 0 3px rgba(143, 107, 48, 0.16);
}

.dm-contact-form button {
	justify-self: start;
	margin-top: 0.35rem;
	padding: 16px 28px;
	border: 1px solid #e4c894;
	border-radius: 2px;
	background: #e4c894;
	color: #2a2118;
	font-family: Inter, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.4px;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.dm-contact-form button:hover,
.dm-contact-form button:focus-visible {
	background: #c9a56a;
	border-color: #c9a56a;
}

.dm-contact-form__note {
	margin: 0;
	color: #8f6b30;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
}

.elementor-widget:has(.dm-contact-map) {
	width: 100%;
}

.dm-contact-map,
.dm-contact-map iframe {
	width: 100%;
}

.dm-contact-map iframe {
	display: block;
	height: 380px;
	border: 0;
	border-radius: 16px;
}

@media (max-width: 767px) {
	.dm-contact-form {
		padding: 1.25rem 1rem;
	}

	.dm-contact-form button {
		width: 100%;
	}

	.dm-contact-map iframe {
		height: 260px;
	}
}

.dm-contact-details {
	display: grid;
	gap: 0.85rem;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	background: transparent;
}

.dm-contact-details__item {
	display: grid;
	grid-template-columns: 1.7rem minmax(0, 1fr);
	column-gap: 0.75rem;
	align-items: start;
	margin: 0;
	color: #6e655c;
	font-family: Inter, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.45;
}

.dm-contact-details__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.45rem;
}

.dm-contact-details__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.dm-contact-details__item--phone .dm-contact-details__icon {
	color: #14b8a6;
}

.dm-contact-details__item--email .dm-contact-details__icon {
	color: #8b6cf6;
}

.dm-contact-details__item--address .dm-contact-details__icon {
	color: #ef5b52;
}

.dm-contact-details__item a {
	color: #6e655c;
	text-decoration: none;
}

.dm-contact-details__item a:hover,
.dm-contact-details__item a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

