/* RWH components: slider, people, documents, quotes, practice info, call box. */

.rwh-empty {
	padding: 1rem 1.25rem;
	border: 1px dashed #9ab;
	border-radius: 6px;
	color: #456;
	font-size: .9rem;
}

.rwh-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.rwh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 44px;
	padding: .65em 1.4em;
	border: 2px solid var(--rwh-blue-dark, #1f6fd6);
	border-radius: 999px;
	background: var(--rwh-blue-dark, #1f6fd6);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}

.rwh-btn:hover,
.rwh-btn:focus-visible {
	background: var(--rwh-navy, #0e4a96);
	border-color: var(--rwh-navy, #0e4a96);
	color: #fff;
}

.rwh-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--rwh-navy, #0e4a96);
}

/* ---------- Slider ---------- */

.rwh-slider {
	--rwh-radius: 0px;
	position: relative;
	overflow: hidden;
	border-radius: var(--rwh-radius);
	background: var(--rwh-light, #eaf6fa);
}

.rwh-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.rwh-slider__track::-webkit-scrollbar {
	display: none;
}

.rwh-slider__track:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
	box-shadow: inset 0 0 0 6px var(--rwh-focus-dark, #0b2a55);
}

.rwh-slider__slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: var(--rwh-ratio-m, 4/3);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

@media (min-width: 768px) {
	.rwh-slider__slide {
		aspect-ratio: var(--rwh-ratio, 16/7);
	}
}

.rwh-slider__slide {
	overflow: hidden;
}

.rwh-slider .rwh-slider__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.rwh-slider--contain .rwh-slider__img {
	object-fit: contain;
}

.rwh-slider__caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 2.5rem 1.25rem 3rem;
	background: linear-gradient(to top, rgba(10, 40, 80, .7), rgba(10, 40, 80, 0));
	color: #fff;
}

@media (min-width: 768px) {
	.rwh-slider__caption {
		padding: 4rem 3rem 3.5rem;
		max-width: 46rem;
	}
}

.rwh-slider__title {
	margin: 0 0 .35rem;
	font-family: var(--rwh-font-head, inherit);
	font-size: clamp(1.6rem, 3.5vw, 2.6rem);
	line-height: 1.1;
}

.rwh-slider__text {
	margin: 0 0 1rem;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.rwh-slider__arrow {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--rwh-navy, #0e4a96);
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	transition: background-color .2s;
}

.rwh-slider__arrow:hover {
	background: #fff;
}


.rwh-slider__arrow--prev {
	left: .75rem;
}

.rwh-slider__arrow--prev .rwh-icon {
	transform: scaleX(-1);
}

.rwh-slider__arrow--next {
	right: .75rem;
}

@media (max-width: 599px) {
	.rwh-slider__arrow {
		display: none;
	}
}

.rwh-slider__dots {
	position: absolute;
	left: 50%;
	bottom: .75rem;
	display: flex;
	gap: .25rem;
	transform: translateX(-50%);
}

.rwh-slider__dot {
	position: relative;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: width .3s ease;
}

.rwh-slider__dot[aria-current="true"] {
	width: 44px;
}

.rwh-slider__dot::before,
.rwh-slider__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 7px;
	right: 7px;
	height: 10px;
	border-radius: 5px;
	transform: translateY(-50%);
}

.rwh-slider__dot::after {
	border: 2px solid #fff;
	background: rgba(255, 255, 255, .35);
	box-shadow: 0 0 3px rgba(0, 0, 0, .35);
	transition: background-color .2s;
}

/* Timer fill: runs across the active dot while autoplay waits. */
.rwh-slider__dot::before {
	z-index: 1;
	background: #fff;
	transform: translateY(-50%) scaleX(0);
	transform-origin: left center;
}

.rwh-slider__dot[aria-current="true"]::after {
	background: rgba(255, 255, 255, .5);
}

.rwh-slider:not(.is-timing) .rwh-slider__dot[aria-current="true"]::before {
	transform: translateY(-50%) scaleX(1);
}

.rwh-slider.is-timing .rwh-slider__dot[aria-current="true"]::before {
	animation: rwh-dot-fill var(--rwh-interval, 6s) linear forwards;
}

/* Pause / play (WCAG 2.2.2) */
.rwh-slider__pause {
	position: absolute;
	left: .75rem;
	bottom: .75rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 40, 80, .6);
	color: #fff;
	cursor: pointer;
}

.rwh-slider__pause:hover {
	background: rgba(10, 40, 80, .8);
}

.rwh-slider__pause[hidden] {
	display: none;
}

/* Two bars while playing; a triangle once paused. */
.rwh-slider__pause-icon {
	position: relative;
	width: 12px;
	height: 14px;
}

.rwh-slider__pause-icon::before,
.rwh-slider__pause-icon::after {
	content: "";
	position: absolute;
	top: 0;
	width: 4px;
	height: 14px;
	border-radius: 1px;
	background: currentColor;
}

.rwh-slider__pause-icon::before {
	left: 0;
}

.rwh-slider__pause-icon::after {
	right: 0;
}

.rwh-slider__pause[aria-pressed="true"] .rwh-slider__pause-icon::before {
	left: 2px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent currentColor;
	border-radius: 0;
	background: none;
}

.rwh-slider__pause[aria-pressed="true"] .rwh-slider__pause-icon::after {
	display: none;
}

@keyframes rwh-dot-fill {
	from {
		transform: translateY(-50%) scaleX(0);
	}

	to {
		transform: translateY(-50%) scaleX(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rwh-slider__track {
		scroll-behavior: auto;
	}
}

/* ---------- Physicians ---------- */

.rwh-people {
	display: grid;
	gap: 2rem;
}

.rwh-people--grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

@media (min-width: 900px) {
	.rwh-people--grid {
		grid-template-columns: repeat(var(--rwh-cols, 3), minmax(0, 1fr));
	}
}

.rwh-person {
	display: grid;
	gap: 1rem 2rem;
}

.rwh-people--list .rwh-person {
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--rwh-line, #d6e6f5);
}

.rwh-people--list .rwh-person:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

@media (min-width: 700px) {
	.rwh-people--list .rwh-person {
		grid-template-columns: 240px 1fr;
		align-items: start;
	}
}

.rwh-person .rwh-person__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4/5;
	object-fit: cover;
	object-position: top center;
	border-radius: 8px;
	background: var(--rwh-light, #eaf6fa);
}

.rwh-people--list .rwh-person__photo {
	max-width: 240px;
}

.rwh-person__name {
	margin: 0 0 .25rem;
	font-family: var(--rwh-font-head, inherit);
	color: var(--rwh-navy, #0e4a96);
	line-height: 1.15;
}

.rwh-person__role {
	margin: 0 0 1rem;
	color: var(--rwh-muted, #5a6b7d);
	font-weight: 700;
}

.rwh-person__bio > :last-child {
	margin-bottom: 0;
}

.rwh-people--grid .rwh-person {
	padding: 1rem 1rem 1.5rem;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(14, 74, 150, .08), 0 6px 20px rgba(14, 74, 150, .06);
}

@media (max-width: 599px) {
	.rwh-people--grid {
		gap: .75rem;
	}

	.rwh-people--grid .rwh-person {
		grid-template-columns: 76px 1fr;
		align-items: center;
		gap: .9rem;
		padding: .75rem;
	}

	.rwh-people--grid .rwh-person__photo img {
		aspect-ratio: 1;
		border-radius: 50%;
	}

	.rwh-people--grid .rwh-person__name {
		font-size: 1.25rem;
	}

	.rwh-people--grid .rwh-person__role {
		margin: 0;
		font-size: .875rem;
	}

	.rwh-people--list .rwh-person__photo {
		max-width: 180px;
	}
}

/* ---------- Documents ---------- */

.rwh-docs__group {
	margin: 1.75rem 0 .75rem;
	font-size: 1.35rem;
}

.rwh-docs__group:first-child {
	margin-top: 0;
}

.rwh-docs__list {
	display: grid;
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rwh-docs--cards .rwh-docs__list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.rwh-doc {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--rwh-line, #d6e6f5);
	border-radius: 10px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.rwh-doc:hover,
.rwh-doc:focus-within {
	border-color: var(--rwh-blue, #4293f5);
	box-shadow: 0 4px 16px rgba(14, 74, 150, .1);
}

.rwh-docs--list .rwh-doc {
	padding: .6rem 0;
	border: 0;
	border-bottom: 1px solid var(--rwh-line, #d6e6f5);
	border-radius: 0;
	box-shadow: none;
}

.rwh-doc__icon {
	color: var(--rwh-pink, #d42a7f);
}

.rwh-doc__icon .rwh-icon {
	width: 28px;
	height: 28px;
}

.rwh-doc__body {
	display: grid;
	flex: 1;
	gap: .15rem;
	min-width: 0;
}

.rwh-doc__link {
	font-weight: 700;
	color: var(--rwh-navy, #0e4a96);
	text-decoration: none;
}

.rwh-doc__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.rwh-doc__link:hover {
	text-decoration: underline;
}

.rwh-doc__meta,
.rwh-doc__desc {
	font-size: .875rem;
	color: var(--rwh-muted, #5a6b7d);
}

.rwh-doc__download {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -.5rem -.5rem -.5rem 0;
	border-radius: 50%;
	color: var(--rwh-blue-dark, #1f6fd6);
}

.rwh-doc__download:hover,
.rwh-doc__download:focus-visible {
	background: var(--rwh-light, #eaf6fa);
}

/* ---------- Testimonials ---------- */

.rwh-quotes {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.rwh-quotes {
		grid-template-columns: repeat(var(--rwh-cols, 1), minmax(0, 1fr));
	}
}

.rwh-quote {
	margin: 0;
}

.rwh-quote__text {
	margin: 0 0 .5rem;
	padding: 0 0 0 1rem;
	border-left: 3px solid var(--rwh-pink, #d42a7f);
	font-style: italic;
}

.rwh-quote__text p {
	margin: 0 0 .5em;
}

.rwh-quote__text p:last-child {
	margin: 0;
}

.rwh-quote__cite {
	padding-left: 1rem;
	font-size: .9rem;
	font-weight: 700;
	color: var(--rwh-muted, #5a6b7d);
}

.rwh-quotes--cards .rwh-quote {
	padding: 1.5rem;
	border-radius: 10px;
	background: var(--rwh-light, #eaf6fa);
}

.rwh-quotes--cards .rwh-quote__text {
	padding: 0;
	border: 0;
}

.rwh-quotes--cards .rwh-quote__cite {
	padding: 0;
}

/* ---------- Practice info ---------- */

.rwh-info {
	display: grid;
	gap: 1.1rem;
}

.rwh-info--inline {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 1.5rem 2rem;
}

.rwh-info__row {
	display: flex;
	gap: .85rem;
	align-items: flex-start;
}

.rwh-info__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	background: var(--rwh-light, #eaf6fa);
	color: var(--rwh-blue-dark, #1f6fd6);
}

.rwh-info__icon .rwh-icon {
	width: 20px;
	height: 20px;
}

.rwh-info__label {
	display: block;
	margin-bottom: .1rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .75;
}

.rwh-info__value address {
	font-style: normal;
}

.rwh-info__value a {
	color: inherit;
}

.rwh-info__note {
	margin: .35rem 0 0;
	font-size: .9rem;
	opacity: .85;
}

.rwh-hours-list {
	display: grid;
	gap: .15rem;
	margin: 0;
}

.rwh-hours-list > div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .75rem;
}

.rwh-hours-list dt {
	min-width: 9.5rem;
	font-weight: 700;
}

.rwh-hours-list dd {
	margin: 0;
}

/* Closed days read lighter through weight and style, not opacity (keeps the contrast). */
.rwh-hours-list .is-closed,
.rwh-hours-list .is-closed dt {
	font-weight: 400;
	font-style: italic;
}

.rwh-social {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rwh-social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rwh-accent, #f4a93f);
	color: #1d2b3a;
	transition: transform .2s, background-color .2s;
}

.rwh-social a:hover,
.rwh-social a:focus-visible {
	transform: translateY(-2px);
	background: #ffc163;
}

/* ---------- Call the office ---------- */

.rwh-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.5rem;
	border-radius: 12px;
}

@media (min-width: 768px) {
	.rwh-cta {
		padding: 2rem 2.5rem;
	}
}

.rwh-cta--blue {
	background: var(--rwh-navy, #0e4a96);
	color: #fff;
}

.rwh-cta--blue .rwh-cta__button {
	background: #fff;
	border-color: #fff;
	color: var(--rwh-navy, #0e4a96);
}

.rwh-cta--blue .rwh-cta__button:hover,
.rwh-cta--blue .rwh-cta__button:focus-visible {
	background: var(--rwh-light, #eaf6fa);
	border-color: var(--rwh-light, #eaf6fa);
	color: var(--rwh-navy, #0e4a96);
}

.rwh-cta--light {
	background: var(--rwh-light, #eaf6fa);
}

.rwh-cta--outline {
	border: 2px solid var(--rwh-blue, #4293f5);
}

.rwh-cta__body {
	flex: 1 1 18rem;
}

.rwh-cta__heading {
	margin: 0 0 .25rem;
	font-family: var(--rwh-font-head, inherit);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
}

.rwh-cta__text,
.rwh-cta__hours {
	margin: 0;
}

.rwh-cta__hours {
	margin-top: .35rem;
	font-size: .95rem;
	opacity: .9;
}

.rwh-cta__hours-row {
	white-space: nowrap;
}

.rwh-cta__body {
	min-width: 0;
}

.rwh-cta__sep {
	padding-inline: .4em;
	opacity: .6;
}

@media (max-width: 599px) {
	.rwh-cta__hours-row {
		display: block;
		white-space: normal;
	}

	.rwh-cta__hours {
		font-size: .9rem;
	}

	.rwh-cta__sep {
		display: none;
	}

	.rwh-cta__button {
		width: 100%;
	}
}

.rwh-cta__button {
	flex: none;
	font-size: 1.05rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Phone and address links: at least 24px tall to tap. */
.rwh-info__value a {
	display: inline-block;
	min-height: 24px;
	padding-block: 1px;
}

/* Patient notice above the form downloads */
.rwh-notice {
	display: grid;
	gap: 16px 32px;
	margin: 0 0 28px;
	padding: 20px 24px;
	border: 1px solid #f0d9a8;
	border-left: 6px solid #b26a00;
	border-radius: 12px;
	background: #fff8e8;
	color: #2b2110;
}

@media (min-width: 768px) {
	.rwh-notice:has(> :nth-child(2)) {
		grid-template-columns: 1fr 1fr;
	}
}

.rwh-notice__text > :first-child {
	margin-top: 0;
}

.rwh-notice__text > :last-child {
	margin-bottom: 0;
}

.rwh-notice a {
	color: #0e4a96;
	font-weight: 700;
	white-space: nowrap;
}
