/* Site-wide top utility bar — small dark strip above the navbar with key
   trust signals (left) and quick-contact links (right). Hides the left
   items on small mobile to keep the bar clean. */

/* Utility bar is currently hidden — kept in header.php so we can flip it
   back on later via a theme mod (or by removing this rule). */
.rehab-utility-bar {
	display: none;
	background: var(--rehab-warm-charcoal);
	color: var(--rehab-utility-fg);
	font-family: var(--rehab-font-body);
	font-size: 0.8rem;
	font-weight: 300;
}

.rehab-utility-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.55rem 1.5rem;
	max-width: 1440px;
	margin: 0 auto;
	gap: 1rem;
}

.rehab-utility-bar__left {
	display: flex;
	gap: 1.75rem;
	align-items: center;
	flex-wrap: wrap;
}

.rehab-utility-bar__left span {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	opacity: 0.8;
}

.rehab-utility-bar__dot {
	color: var(--rehab-sage);
	font-size: 0.55rem;
}

.rehab-utility-bar__right {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	flex-shrink: 0;
}

.rehab-utility-bar a {
	color: var(--rehab-utility-fg);
	text-decoration: none;
}

.rehab-utility-bar a:hover {
	color: var(--rehab-sage);
}

@media (max-width: 720px) {
	.rehab-utility-bar__left {
		display: none;
	}
	.rehab-utility-bar__inner {
		justify-content: center;
	}
	.rehab-utility-bar__right {
		gap: 1rem;
	}
}

/* Sticky bottom mobile CTA — only visible on small screens. */
.rehab-sticky-cta {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--rehab-color-bg);
	padding: 0.75rem 1rem;
	border-top: 1px solid rgba(190, 179, 158, 0.3);
	box-shadow: 0 -4px 30px -8px rgba(0, 0, 0, 0.08);
	gap: 0.5rem;
}

.rehab-sticky-cta .rehab-btn {
	flex: 1;
	padding: 0.85rem 0.8rem;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

@media (max-width: 720px) {
	.rehab-sticky-cta {
		display: flex;
	}
	/* Reserve space for the bar only where it renders — the contact page
	   suppresses it (REH-126). */
	body:has(.rehab-sticky-cta) {
		padding-bottom: 76px;
	}
}

/* ── Mobile contact chooser (bottom sheet) ─────────────────────────────────
   Opened from the sticky "Talk with admissions" CTA. Lets people pick how to
   reach us (call / form / WhatsApp) instead of being bounced to another page. */
.rehab-contact-sheet {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.rehab-contact-sheet[hidden] {
	display: none;
}
body.rehab-sheet-open {
	overflow: hidden;
}

.rehab-contact-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 29, 26, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.rehab-contact-sheet.is-open .rehab-contact-sheet__backdrop {
	opacity: 1;
}

.rehab-contact-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: var(--rehab-color-bg);
	border-radius: 18px 18px 0 0;
	padding: 1.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
	box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.25);
	transform: translateY(100%);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.rehab-contact-sheet.is-open .rehab-contact-sheet__panel {
	transform: translateY(0);
}

.rehab-contact-sheet__title {
	font-family: var(--rehab-font-display);
	font-weight: 300;
	font-size: 1.35rem;
	color: var(--rehab-warm-charcoal);
	margin: 0 0 1.1rem;
}

.rehab-contact-sheet__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	background: transparent;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--rehab-soft-charcoal);
	cursor: pointer;
}

.rehab-contact-sheet__options {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.rehab-contact-sheet__option {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(190, 179, 158, 0.4);
	border-radius: 12px;
	text-decoration: none;
	color: var(--rehab-warm-charcoal);
	transition: background 0.2s ease, border-color 0.2s ease;
}
.rehab-contact-sheet__option:hover,
.rehab-contact-sheet__option:focus-visible {
	background: var(--rehab-color-cream);
	border-color: var(--rehab-sage);
}

.rehab-contact-sheet__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--rehab-ethereal-sage);
	color: var(--rehab-sage-text);
}
.rehab-contact-sheet__icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

.rehab-contact-sheet__label {
	display: flex;
	flex-direction: column;
}
.rehab-contact-sheet__label-main {
	font-size: 1rem;
	font-weight: 500;
}
.rehab-contact-sheet__label-sub {
	font-size: 0.8rem;
	color: var(--rehab-soft-charcoal);
}

.rehab-contact-sheet__assurance {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1.1rem 0 0;
	font-size: 0.82rem;
	color: var(--rehab-soft-charcoal);
}
.rehab-contact-sheet__assurance svg {
	width: 0.95rem;
	height: 0.95rem;
	flex: none;
}

@media (prefers-reduced-motion: reduce) {
	.rehab-contact-sheet__panel,
	.rehab-contact-sheet__backdrop {
		transition: none;
	}
}
